Problems with Sendmail and Dovecot LDA.

05.02.2008 – 14:05

According to http://wiki.dovecot.org/LDA/Sendmail the mailertable setup should be as follow:
virtualdomain.example.com dovecot:dovecot

It means:

domain mailer:user

Well, this setup seems to be incorrect, since you can deliver to username only using local mailer.

Therefore I have used Sendmail’s feature “local_procmail” to replace default local mailer with Dovecot’s deliver:

This is what I have configured in my sendmail.mc:

FEATURE(`local_procmail’, `/usr/libexec/dovecot/deliver’, `deliver -d $u’, `SPhnu9′)dnl
MODIFY_MAILER_FLAGS(`LOCAL’, `-f’)
MAILER(local)dnl

This is output of cat /etc/mail/sendmail.cf | grep Mlocal:

Mlocal, P=/usr/libexec/dovecot/deliver, F=lsDFMAw5:/|@qSPhnu9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,

Well, the documentation on Dovecot’s site also forgets to mention that for this to work the target hostname cannot be in Sendmail’s class w.

The mailertable support in the documentation seems to aim to direct all the mail coming to a particular domain to mailer dovecot and user dovecot which I accomplished.

However:

In the dovecot.log we may see that while we are sending email to test@example.com it not performs lookup for the addressee but for user dovecot!

dovecot: Feb 05 13:36:23 Info: auth(default): passwd-file(dovecot): lookup: user=dovecot file=/etc/passwd-dovecot
dovecot: Feb 05 13:36:23 Info: auth(default): passwd-file(dovecot): unknown user
dovecot: Feb 05 13:36:23 Info: auth(default): master out: NOTFOUND 1

Please follow and like us:

Facebook Comments

Opublikuj komentarz

Captcha Captcha Reload