|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have a sendmail-setup with several domains to handle. Servername is phoenix.local and mailertable tells how domains should be handled. (goldfisch:standard is my own mailer) fetchmaildeliver.local procmail:/etc/procmail_rc/mail.ext imap.local goldfisch:standard mist.test.at goldfisch:standard However now when I send a mail to peter@imap.local it is not delivered to the goldfisch-mailer. peter@mist.test.at however is delivered proper. Why is that? imap.local is not in class{w}, altough it resolves to 10.1.1.2, which is IP of the server. I just want have emails to imap.local sent to my mailer proper. I guess I could use a workaround with virtusertable @imap.local %1@something.stupid and in mailertable something.stupid goldfisch:standard but this is now what I want. First of all I like to know why imap.local is threatened different. Below I give my sendmail-class{w}, the maillogs from sending mails to peter@mist.test.at and peter@imap.local and then all my sendmail-confs. thnx for any advice, peter # echo \$=w | /usr/sbin/sendmail -bt -d0.1 Version 8.14.2 Compiled with: DNSMAP LOG MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SASLv2 SCANF STARTTLS USERDB XDEBUG ============ SYSTEM IDENTITY (after readcf) ============ (short domain name) $w = phoenix (canonical domain name) $j = phoenix.local (subdomain name) $m = local (node name) $k = phoenix.local ================================================== ====== ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > server.local localhost phoenix.local [10.1.1.2] #echo hans | sendmail peter@mist.test.at Mar 27 14:50:23 phoenix sendmail[32681]: m2RDoHGM032681: from=root, size=5, class=0, nrcpts=1, msgid=<200803271350.m2RDoHGM032681@phoenix.local>, relay=root@localhost Mar 27 14:50:29 phoenix sendmail[32682]: m2RDoNxT032682: from=<root@phoenix.local>, size=280, class=0, nrcpts=1, msgid=<200803271350.m2RDoHGM032681@phoenix.local>, proto=ESMTP, daemon=MTA_l, relay=localhost [127.0.0.1] Mar 27 14:50:29 phoenix sendmail[32681]: m2RDoHGM032681: to=peter@mist.test.at, ctladdr=root (0/0), delay=00:00:12, xdelay=00:00:06, mailer=relay, pri=30005, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (m2RDoNxT032682 Message accepted for delivery) Mar 27 14:50:29 phoenix sendmail[32684]: m2RDoNxT032682: to=<peter@mist.test.at>, ctladdr=<root@phoenix.local> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=goldfisch, pri=120280, relay=standard, dsn=2.0.0, stat=Sent #echo hans | sendmail peter@imap.local Mar 27 15:14:34 phoenix sendmail[340]: m2REEYRx000340: from=root, size=5, class=0, nrcpts=1, msgid=<200803271414.m2REEYRx000340@phoenix.local>, relay=root@localhost Mar 27 15:14:34 phoenix sendmail[341]: m2REEYEX000341: <peter@phoenix.local>... User unknown Mar 27 15:14:34 phoenix sendmail[340]: m2REEYRx000340: to=peter@imap.local, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30005, relay=localhost [127.0.0.1], dsn=5.1.1, stat=User unknown Mar 27 15:14:34 phoenix sendmail[341]: m2REEYEX000341: from=<root@phoenix.local>, size=5, class=0, nrcpts=0, proto=ESMTP, daemon=MTA_l, relay=localhost [127.0.0.1] Mar 27 15:14:34 phoenix sendmail[340]: m2REEYRx000340: m2REEYS0000340: DSN: User unknown Mar 27 15:14:34 phoenix sendmail[341]: m2REEYEZ000341: from=<>, size=1936, class=0, nrcpts=1, msgid=<200803271414.m2REEYS0000340@phoenix.local>, proto=ESMTP, daemon=MTA_l, relay=localhost [127.0.0.1] Mar 27 15:14:34 phoenix sendmail[340]: m2REEYS0000340: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31029, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (m2REEYEZ000341 Message accepted for delivery) Mar 27 15:14:34 phoenix sendmail[342]: m2REEYEZ000341: to=<root@phoenix.local>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32118, dsn=2.0.0, stat=Sent #cat sendmail.mc: VERSIONID(`peter.goldfisch v1.0') OSTYPE(linux) define(`STATUS_FILE', `/etc/mail/statistics') FEATURE(`no_default_msa') DAEMON_OPTIONS(`Port=smtp, Name=MTA_l, Address=127.0.0.1') DAEMON_OPTIONS(`Port=smtp, Name=MTA_i, Address=10.1.1.2') DAEMON_OPTIONS(`Port=587, Name=MSA_lo, M=E, Address=127.0.0.1') define(`ALIAS_FILE',`/etc/mail/aliases') GENERICS_DOMAIN_FILE(/etc/mail/genericsdomain) FEATURE(genericstable, hash /etc/mail/genericstable) FEATURE(`mailertable', hash /etc/mail/mailertable) FEATURE(`virtusertable',hash /etc/mail/virtusertable) FEATURE(access_db, hash -T<TMPF> /etc/mail/access) FEATURE(`blacklist_recipients') FEATURE(`use_cw_file') FEATURE(`use_ct_file') FEATURE(local_procmail, /usr/bin/procmail) FEATURE(`dnsbl') define(`confDONT_PROBE_INTERFACES',`True') TRUST_AUTH_MECH(`PLAIN LOGIN DIGEST-MD5 CRAM-MD5') define(`confAUTH_MECHANISMS', `PLAIN LOGIN CRAM-MD5 SSAPI DIGEST-MD5') MAILER(smtp) MAILER(cyrus) MAILER(local) MAILER(procmail) MAILER(goldfisch) # cat local-host-names phoenix.local localhost server.local # cat virtusertable postmaster@ postmaster@phoenix.local # cat access local RELAY 127.0.0.1 RELAY To:mist.test.at RELAY To:imap.local RELAY |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
peter pilsl <pilsl@goldfisch.at> wrote:
> I have a sendmail-setup with several domains to handle. > > Servername is phoenix.local and mailertable tells how domains should be > handled. (goldfisch:standard is my own mailer) > > fetchmaildeliver.local procmail:/etc/procmail_rc/mail.ext > imap.local goldfisch:standard > mist.test.at goldfisch:standard > > However now when I send a mail to peter@imap.local it is not delivered > to the goldfisch-mailer. > > peter@mist.test.at however is delivered proper. > > Why is that? imap.local is not in class{w}, altough it resolves to > 10.1.1.2, which is IP of the server. I just want have emails to > imap.local sent to my mailer proper. I guess I could use a workaround > with virtusertable > > @imap.local %1@something.stupid > > and in mailertable > > something.stupid goldfisch:standard > > but this is now what I want. First of all I like to know why > imap.local is threatened different. > > Below I give my sendmail-class{w}, the maillogs from sending mails to > peter@mist.test.at and peter@imap.local and then all my sendmail-confs. > > thnx for any advice, > [...] Use the debug command below: echo '3,0 peter@imap.local' | sendmail -d21.12 -d8.20 -d60.5 -bt -d21.12 - tracking R lines processing in sendmail.cf -d8.20 - tracking DNS queries -d60.5 - tracking map lookups -- [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl Open-Sendmail: http://open-sendmail.sourceforge.net/ Non-Determinism is not meant to be reasonable. -- M. J. 0'Donnell |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Andrzej Adam Filip wrote:
>> [...] > > Use the debug command below: > echo '3,0 peter@imap.local' | sendmail -d21.12 -d8.20 -d60.5 -bt > > -d21.12 - tracking R lines processing in sendmail.cf > -d8.20 - tracking DNS queries > -d60.5 - tracking map lookups > thnx a lot !! this lead me to my problem. imap.local was a CNAME to phoenix.local and so sendmail "translated" imap.local to its canonical hostname phoenix.local, which is in class{w} and therefore mailertable does not apply anymore. changing imap.local to a A-record in my zonefile solved the problem. thnx a lot peter |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
peter pilsl <pilsl@goldfisch.at> wrote:
> Andrzej Adam Filip wrote: >>> [...] >> >> Use the debug command below: >> echo '3,0 peter@imap.local' | sendmail -d21.12 -d8.20 -d60.5 -bt >> >> -d21.12 - tracking R lines processing in sendmail.cf >> -d8.20 - tracking DNS queries >> -d60.5 - tracking map lookups >> > > thnx a lot !! this lead me to my problem. > > imap.local was a CNAME to phoenix.local and so sendmail "translated" > imap.local to its canonical hostname phoenix.local, which is in > class{w} and therefore mailertable does not apply anymore. > > changing imap.local to a A-record in my zonefile solved the problem. > > thnx a lot > peter I would suggest you using such pseudo domains only internally (e.g. in virtusertable rewrites) with rejecting them in SMTP session. *.mc file: LOCAL_CONFIG CPlocal access: # aasumes lack of FEATURE(`relay_hosts_only') to:local reject from:local reject -- [pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl Open-Sendmail: http://open-sendmail.sourceforge.net/ Horse sense is the thing a horse has which keeps it from betting on people. -- W. C. Fields |
|
![]() |
| Outils de la discussion | |
|
|