LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fetchmail - postfix - imap (https://www.linuxquestions.org/questions/linux-newbie-8/fetchmail-postfix-imap-494587/)

etam 10-22-2006 07:43 AM

fetchmail - postfix - imap
 
my first post, hi to all.

i have a problem with fetchmail, postfix and courier-imap. fetchmail work correctly and put mail in a file stored in /var/mail but if i open courier-imap with telnet he says don't found maildir. i think the problem is in postfix. The mail that i receive must store in /var/mail/USER/in-out-ecc.., right? how must configure postfix to shunt the mail in the right maildir?

Sorry for my bad english...:study:

Berhanie 10-22-2006 06:23 PM

Hi, etam.

Fetchmail is not the one putting the mail in /var/mail. It's postfix. But, it sounds like your first problem is not having a maildir where courier-imap expects it. Courier-imap is probably looking for it in $HOME/Maildir. You can verify this with either
Code:

authtest etam
or
Code:

authtest etam@domain
depending on whether you authenticate with your full address or not (you did configure courier-authlib, right?). Once you know the location, the maildir needs to be created, using something like maildirmake. Finally, you have to arrange to have mail delivered to that maildir. If postfix is doing the delivery itself -- i.e. if it's not calling an outside delivery agent, such as maildrop -- then postfix needs to be told where to deliver. In the simplest case, you are using the postfix 'local' delivery agent. In that case, assuming your maildir is $HOME/Maildir, you would have the following in main.cf:
Code:

home_mailbox = Maildir/

etam 10-23-2006 12:35 PM

no. i didn't configure courier-authlib. how can i do it?

debian:~# authtest etam
-bash: authtest: command not found


All times are GMT -5. The time now is 04:56 AM.