all is working fine, we fixed it by adding our own auth mechanism in mbdb.c (sendmail)... he looks up user/pass instead of /etc/passwd in /opt/dovecot/etc/passwd.dovecot now
alias file = empty virtusertable = empty mailertable = empty for more info look at the book sendmail performance tuning... On Thu, 2009-02-19 at 14:50 +0100, Steffen Kaiser wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Thu, 19 Feb 2009, ben wrote: > > you need to make sure first, which way to go (see below). > Also check out post by "[pl>en Andrew] Andrzej Adam Filip" in > comp.mail.sendmail about Dovecot, he is good :) > > > 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 > > You _want_ to use the dovecot: mailer after all, don't you? > > > 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 > > This is the other approach by replacing the procmail LDA. In this case > testmail.com has to go into local-host-names ;-) > > In Debian these lines are sufficient for local domains: > dnl -f $g -- sender > dnl -d $u -- destination user account name > dnl -m $h -- mailbox to deliver to (+detail part of address) > dnl -n -- don't create new mailbox > FEATURE(`local_procmail', `/etc/mail/smrsh/dovecot-deliver', > `/etc/mail/smrsh/dovecot-deliver -f $g -d $u')dnl > MAILER_DEFINITIONS > MAILER(`local')dnl > MAILER(`smtp')dnl > > No need to specify procmail etc. Check the results in sendmail.cf: > > Mlocal, P=/etc/mail/smrsh/dovecot-deliver, > F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, > T=DNS/RFC822/X-Unix, > A=/etc/mail/smrsh/dovecot-deliver -f $g -d $u > > No procmail in there, except in various comments. However, I have > experience with virtual users in this scenario. > > You have to choose, whether you can replace the LDA for all users > (local_procmail approach) or need to pick Dovecot for specific users > (aka domains) -> dovecot: mailer approach. > > > ============= > > > > /etc/mail/mailterable : > > testdomain.com dovecot:dovecot > > Do you use mailertable and relay-domains?? For the dovecot: mailer > approach only. > > FEATURE(`mailertable')dnl > define(`confCR_FILE', `/etc/mail/relayonly-relay-domains')dnl > > > I think I have this error becaue local-host-names (sendmail.cw) is > > emtpy ... > > see echo \$=w | sendmail -d0.1 -bt > > you should see at least localhost, the $(hostname) and the interfaces > in brackets. > > > > > =========LOG========== > > > > Feb 19 13:27:45 hostname sm-mta[1223]: n1JCRXkt001223: > > from=t...@testdomain.com, > > size=5, class=0, nrcpts=1, > > msgid=<200902191227.n1jcrxkt001...@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=t...@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 > > Mailertable does not kick in, you have no > FEATURE(`mailertable')dnl > I guess. Therefore the default esmtp: mailer gets used. > > trace with: sendmail -d60.5 -bv a...@testdom.com > > map_lookup(dequote, root, %0=root) => NOT FOUND (0) > map_lookup(host, testdom.com, %0=testdom.com) => testdom.com. (0) > map_lookup(virtuser, u...@testdom.com, %0=u...@testdom.com, %1=user) => NOT > FOUND (68) > map_lookup(virtuser, @testdom.com, %...@testdom.com, %1=user) => NOT FOUND > (68) > map_lookup(mailertable, testdom.com, %0=testdom.com) => esmtp:testdom.com (0) > u...@testdom.com... deliverable: mailer esmtp, host testdom.com, user > u...@testdom.com > > If I had testdom.com in mailertable, the result would override the > esmtp output. > > Bye, > > - -- > Steffen Kaiser > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > > iQEVAwUBSZ1jtnWSIuGy1ktrAQK6eggAlvv+kcePZVOGhS/sagm+lP2N6RRKObqm > jED4ulfI47mwcumCRnh40Y1FD4B4zTMLjPKNocdkPh8ibjOEowK5fXxMwx0EPhr9 > c+kaYbKdOxsiCrbGR0/uyOeKQR3RpMxGuW/6Iw0r/mSFmpSTYvODCCD42lZkJ0s6 > yvzO/hGxVywbyW5ZlJmAEYpBkRsqyVZuyeCnsm4cKvaQsVHa/9wNt/gkhbnTeV36 > GqewDfItcsVRUWlaMA3Md/eATeGMN0Pv2Bn3xAIwiWXGfC/sa9CA5N5rkm3iX5O1 > chFXuUHMjwI9bdIdyKEJe1WVQ3BaU/Fplh1URLSxzRxk5HYKqco1TQ== > =O8su > -----END PGP SIGNATURE-----