PDA

View Full Version : [ubuntu] courier pop postfix problem



bluethundr
November 27th, 2008, 02:10 AM
Hi guys,

I've given up on my pursuit of setting up exim and switched to postfix.

I really do need to setup a mailserver as a smarthost.

If I telnet mail.mydomain.com 110 in order to test pop, I try logging in but am unable.

I enter my password (which comes up in cleartext so I am sure that I am typing it correctly) and I get an authentication error.

-------------------------------

-ERR chdir Maildir failed


------------------------------

can someone please help me to resolve this issue? :confused:

Drezard
November 27th, 2008, 07:50 AM
Check this:

https://help.ubuntu.com/community/PostfixBasicSetupHowto

I know theres something in there about setting up Maildirs correctly.

bluethundr
November 27th, 2008, 01:55 PM
Thanks for the tip! That was actually the exact guide I was using to set everything up! :lolflag: Just not sure where I was going wrong!

I _DID_ do some more reading.. and I came across the maildirmake command.


But I couldn't find a decent example of it's usage.

for instance, should I be typing maildirmake thunderboltha ?

If so, what if any options should I be using in that directive? Also, instead of just a user name I am wondering if I need to enter a full path or which path I should specify? Also, when this step is done, won't I need to change my postfix conf file some where either with the postconf -e command or by editing the file directly?

Thanks in advance

eric_stewart
November 28th, 2008, 06:05 AM
Thanks for the tip! That was actually the exact guide I was using to set everything up! :lolflag: Just not sure where I was going wrong!

I _DID_ do some more reading.. and I came across the maildirmake command.


But I couldn't find a decent example of it's usage.

for instance, should I be typing maildirmake thunderboltha ?

If so, what if any options should I be using in that directive? Also, instead of just a user name I am wondering if I need to enter a full path or which path I should specify? Also, when this step is done, won't I need to change my postfix conf file some where either with the postconf -e command or by editing the file directly?

Thanks in advance

Just go to the mail user's directory and type in the command there. It automatically sets up the appropriate directories. Make sure you change the directories and files' owner to the user's.

/Eric

bluethundr
November 28th, 2008, 06:13 AM
Thanks for the reply. I went to my home directory and typed maildirmake username. When I ls -l'd I saw :

drwx------ 2 username username 4096 2008-11-22 20:14 Mail

and no change in result. :mad: this is driving me NUTS! Any other hints?

I'd appreciate any advice.

bluethundr
November 28th, 2008, 06:18 AM
in addendum. After creating Mail in /home/username I also issued the following commaind:

sudo /etc/init.d/postfix restart
sudo /etc/init.d/courier-pop restart
sudo /etc/initd/courier-authdaemon restart

NO LOVE. Same error. Epic fail.:(

hyper_ch
November 28th, 2008, 10:50 AM
any reason why you use POP3 over IMAP?

bluethundr
November 28th, 2008, 03:20 PM
Well, the reason I'm using pop 3 is that it's not for me. :) I want other people to use this system, and for my mail to be easily usable pop3 has to work. But so does IMAP. I want to get both working!

hyper_ch
November 28th, 2008, 03:24 PM
IMAP with Maildir support and you won't have a 2gb problem as each message will be stored in an individual file.

bluethundr
November 29th, 2008, 01:21 AM
Manually added Maildir to my home directory. Changed mode to 700. Voila!Both POP and IMAP now work. :)


:guitar::guitar::guitar: