[Dovecot] Sendmail + Deliver as an LDA probs

ben mailing at gigaspeeds.be
Thu Feb 19 15:26:32 EET 2009


couple of tests :

root at test:/etc/mail# sendmail -Am -bv ben at testdomain.com
Notice: -bv may give misleading output for non-privileged user
test at testdomain.com... deliverable: mailer esmtp, host testdomain.com.,
user test at testdomain.com .

----

# echo '$={w}' | sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> hostname
localhost
[127.0.0.1]
[xxx.xxx.Xxx.xxx]
hostname.testdomain.com



On Thu, 2009-02-19 at 13:45 +0100, ben wrote:
> Ok,
> 
> aliases file = empty and rebuilded
> virtusertable = empty + rebuilded
> sendmail.cw = emtpy
> added testdomain.com --> relay-domains
> 
> I also removed my MAILER(dovecot)dnl entry and adjusted my sendmail.mc
> to :
> DOMAIN(`testdomain')dnl
> MODIFY_MAILER_FLAGS(`LOCAL', `-f')dnl
> FEATURE(`local_procmail',
> `/opt/dovecot/libexec/dovecot/deliver',`deliver
> -c /opt/dovecot/etc/dovecot.conf -d $u', `SPhnu9')dnl
> define(`confDONT_PROBE_INTERFACES',`True')dnl
> define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
> dnl MAILER(`local')dnl
> MAILER(`smtp')dnl
> MAILER(`procmail')dnl
> dnl #MAILER(`dovecot')dnl
> 
> I also commented in domain.m4
> dnl #define(`LOCAL_MAILER_PATH',`/usr/bin/procmail')
> dnl #define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
> 
> =============
> 
> /etc/mail/mailterable :
> testdomain.com dovecot:dovecot
> 
> =============
> 
> 
> restarted sendmail and sended a testmail :
> 
> I think I have this error becaue local-host-names (sendmail.cw) is
> emtpy ...
> 
> =========LOG==========
> 
> Feb 19 13:27:45 hostname sm-mta[1223]: n1JCRXkt001223:
> from=test at testdomain.com,
>  size=5, class=0, nrcpts=1,
> msgid=<200902191227.n1JCRXkt001223 at hostname.xxxxx.
> com>, proto=SMTP, daemon=MTA, relay=localhost [127.0.0.1]
> Feb 19 13:27:46 hostname sm-mta[1223]: n1JCRXkt001223: SYSERR(root):
> mail.testdomain.com. config error: mail loops back to me (MX problem?)
> Feb 19 13:27:46 hostname sm-mta[1223]: n1JCRXkt001223:
> to=test at testdomain.com, delay=0
> 0:00:04, xdelay=00:00:01, mailer=esmtp, pri=30005,
> relay=mail.testdomain.com. [195.207
> .136.102], dsn=5.3.5, stat=Local configuration error
> Feb 19 13:27:46 hostname sm-mta[1225]: n1JCRjV1001225:
> hostname.xxxxx.com [195
> .207.136.102] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
> Feb 19 13:27:46 hostname sm-mta[1223]: n1JCRXkt001223: to=postmaster,
> delay=00:0
> 0:04, mailer=local, pri=30005, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:46 hostname sm-mta[1223]: n1JCRXkt001223: n1JCRXku001223:
> DSN: User
>  unknown
> Feb 19 13:27:51 hostname sm-mta[1223]: STARTTLS=client,
> relay=mail.testdomain.co
> m., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA,
> bits=256/256
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223:
> to=test at testdomain.com, d
> elay=00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31029,
> relay=mail.testdomain.c
> om. [xxx.xxx.xxx.xxx], dsn=2.0.0, stat=Sent (n1JCQXWE016132 Message
> accepted for
>  delivery)
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223: to=MAILER-DAEMON,
> delay=0
> 0:00:06, mailer=local, pri=31029, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223: to=postmaster,
> delay=00:0
> 0:06, mailer=local, pri=31029, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223: n1JCRXkv001223:
> return to
>  sender: User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkv001223: to=MAILER-DAEMON,
> delay=0
> 0:00:00, mailer=local, pri=2053, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223:
> Losing ./qfn1JCRXku001223
> : savemail panic
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXku001223: SYSERR(root):
> savemail: c
> annot save rejected email anywhere
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkt001223: to=Postmaster,
> delay=00:0
> 0:10, mailer=local, pri=30005, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkt001223: n1JCRXkw001223:
> postmaste
> r notify: User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkw001223: to=MAILER-DAEMON,
> delay=0
> 0:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkw001223: to=postmaster,
> delay=00:0
> 0:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkw001223: n1JCRXkx001223:
> return to
>  sender: User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkx001223: to=MAILER-DAEMON,
> delay=0
> 0:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkw001223:
> Losing ./qfn1JCRXkw001223
> : savemail panic
> Feb 19 13:27:52 hostname sm-mta[1223]: n1JCRXkw001223: SYSERR(root):
> savemail: c
> annot save rejected email anywhere
> 
> =========END==========
> 
> On Thu, 2009-02-19 at 12:48 +0100, Steffen Kaiser wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On Thu, 19 Feb 2009, ben wrote:
> > 
> > > aliases/aliases.db :
> > >
> > > blaatuser | /opt/dovecot/libexec/dovecot/deliver -d $u
> > 
> > In my eyes, there are two problems here:
> > 
> > 1) This line should read
> > 
> > blaatuser: "| /opt..."
> > 
> > 2) you cannot use $u in aliases
> > 
> > Also, delivering in Aliases means that sendmail is using a non-root / 
> > non-virtuser-uid UID. So you probably have to SetUID-root deliver, in 
> > order to give deliver a) permission to the auth socket and b) permission 
> > to spool the message into the mailbox.
> > 
> > ====
> > 
> > Actually you never told sendmail to use the dovecot: mailer you've 
> > configured.
> > 
> > Remove both the virtuser and alias entry, so sendmail even tries to hit 
> > mailertable you have configuered the dovecot: mailer in.
> > 
> > Also, remove the domain from local-host-names and place it into 
> > relay-domains.
> > 
> > Check the requireness of SetUID-root of deliver. (s. above)
> > 
> > Bye,
> > 
> > - -- 
> > Steffen Kaiser
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.6 (GNU/Linux)
> > 
> > iQEVAwUBSZ1G9HWSIuGy1ktrAQL9fwf8CLD+bMo6C5GrLSiZ1GWRp6rV4nJalfpL
> > Lzpe0B/274nYjMkMzh+8xOgDxdkyNOweEJYfzULJu+jFIWARmNJNq1CczCCH3paR
> > RQExE2sF/1UD4ZzVptdI86CQ0k90G8EfDKzxR7QQj7Dyo9uCLGfI4P+njVyRmNCL
> > YqWg58p0bAQF6BF6PEFg8ZwBxuLj2NPc1YJ0R7xt00luT2up0QSoFahv0Gq06/yR
> > SfMfJh/lcB63vpERwgnkubMPn0grhafoS7fLZqZfsXdzphZ0GlNFCKRWs41N5G3l
> > 4KUTnFaoy9AHN4+Dmn/Rn7bGcBQTMQz8cLOtYLO7UngufLW/A2lSNQ==
> > =74TF
> > -----END PGP SIGNATURE-----
> 



More information about the dovecot mailing list