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
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/