I'm now working on fetchmail and basically it works except when I use maildrop to deliver the mail to its destination. It says it's OK but the mail is nowhere to be found. If I use sendmail it gets delivered as it should.
As said I use ldap for user info, authentication etc. Since I wanted the mail separated from the direct userdirectories (some have a linux one in /home others a samba one in /home/samba/users and a few have both and mail without either should be possible). In /etc/courier/authlib/authldaprc I have set LDAP_MAILROOT=/home/samba/maildirs. Under that root every mailaccount has his own mailuser directory with a Maildir in it. As said this works OK. except with maildrop, which comes from courier. Even if I use maildrop as 'maildrop -a -d <username>', where -a should force it to go past authlib, I don't see anything in the log. With sendmail I see it retrieving the maildir through authlib, as it must.
I haven't been able to get maildrop more telling on what it does. I've searched all alternative home locations, /var/mail and more. It seems it sends it to /dev/null. Also the documentation on maildrop as MDA is scares.
Fetchmail works with sendmail, but I need maildrop (according to the courier documentation) for filtering (spamassassin and clamav) or does somebody know how to do it without. An alternative way is through esmtp, but I can't get the authentication part working. Probably because of ldap, esmtp still wants authentication if I turn it of. And adding esmtpuser and asmtppassword to fetchmailrc gives me a syntaxerror.
Working fetchmailrc with sendmail with the maildrop alternative remarked out:
Code: Select all
set postmaster root
set no bouncemail
# set daemon 90
# set syslog
defaults proto pop3 no dns fetchall no rewrite
poll pop.kpnmail.nl
user so9oz0@kpnmail.nl
pass xxxxxxxx
mda sendmail hika
# mda maildrop -a -d hikaCode: Select all
set postmaster root
set no bouncemail
# set daemon 90
# set syslog
esmtpname hika
esmtppassword xxxxxx
defaults proto pop3 no dns fetchall no rewrite
poll pop.kpnmail.nl
user so9oz0@kpnmail.nl
pass xxxxxxxxx
smtpname hikaAny thoughts?
Hika

