[Dovecot] TECRA-A9 -- devcot LDA/sendmail

dovecot at guice.ath.cx dovecot at guice.ath.cx
Wed Aug 20 21:26:36 EEST 2008


On Wed, Aug 20, 2008 at 08:45:54AM -0700, SM wrote:
> At 05:48 20-08-2008, dovecot at guice.ath.cx wrote:
> >You are correct.  Allow me to provide just a little more detail.
> >We're assuming that dovecot.confs' 'Mail_location:' has nothing to do
> >with the MTA handing off to the 'deliver' LDA.  With that being said, no
> >matter what the dovecot.confs' 'mail_location:' is set to, and with:
> 
> There are two stages:
> 
>  1. MTA handing off the message to the LDA
> 
>  2. 'deliver' LDA taking the message and delivering it to the 
> appropriate mailbox.
> 
> The first stage is not determined by the dovecot.conf mail_location setting.
> 
> >the local mailer continues to handle and send the mail to
> >/var/mail/<user-name>. Yes we did create another hostname.cf. :=)
> 
> Add the following line to your sendmail .mc file:
> 
> define(`confDONT_PROBE_INTERFACES',`True')dnl
> 
> and generate a new configuration.  Then restart sendmail and test.
> 
> Regards,
> -sm 
>

Per your suggestion:

---------
hostname.mc contains:
---------

define(`confDONT_PROBE_INTERFACES',`True')dnl

dnl MAILER(local)
MAILER(smtp)
MAILER(dovecot)
dnl MAILER(procmail)dnl

---------
restarting services
-----------
# make cf && make install restart && sleep 10 && 
/usr/local/etc/rc.d/dovecot restart
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/   
/usr/share/sendmail/cf/m4/cf.m4 /etc/mail/WORKSTATION.mc > 
/etc/mail/WORKSTATION.cf
install -m 444 /etc/mail/WORKSTATION.cf /etc/mail/sendmail.cf
install -m 444 /etc/mail/WORKSTATION.submit.cf /etc/mail/submit.cf
Restarting: sendmail sendmail-clientmqueue.
Stopping dovecot.
Waiting for PIDS: 5008.
Starting dovecot.

--------
tail -f /var/log/maillog
--------
Aug 20 14:06:06 WORKSTATION sm-mta[5017]: m7KI66XM005017: 
from=<bl2245 at gmail.com>, size=1770, class=0, nrcpts=1, 
msgid=<11f5b03c0808201206o6357fb8ancd95f3798396dc45 at mail.gmail.com>, 
proto=ESMTP, daemon=IPv4, relay=rv-out-0506.google.com 
[209.85.198.232]
Aug 20 14:06:07 WORKSTATION sm-mta[5018]: m7KI66XM005017: 
to=<305pm at guice.ath.cx>, delay=00:00:01, xdelay=00:00:00, 
mailer=local, pri=32013, relay=local, dsn=2.0.0, stat=Sent

Well you can see 'Mailer(local)' is still in the loop (above)

-----------
Below, just for giggles I checked the ~/Maildir; nothing there.  the 
test mail for the above is no doubt in /var/log/maillog.
------------
Aug 20 14:06:56 WORKSTATION dovecot: imap-login: Login: user=<email>, 
method=PLAIN, rip=192.168.1.112, lip=192.168.1.112, TLS
Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): Effective uid=1006, 
gid=1006, home=/home/email
Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): maildir: 
data=/home/email/Maildir
Aug 20 14:06:56 WORKSTATION dovecot: IMAP(email): maildir: 
root=/home/email/Maildir, index=/home/email/Maildir, control=, inbox=

END.


More information about the dovecot mailing list