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 pe...@imap.local it is not delivered
to the goldfisch-mailer.
pe...@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
pe...@mist.test.at and pe...@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 pe...@mist.test.at
Mar 27 14:50:23 phoenix sendmail[32681]: m2RDoHGM032681: from=root,
size=5, class=0, nrcpts=1,
msgid=<200803271350....@phoenix.local>, relay=root@localhost
Mar 27 14:50:29 phoenix sendmail[32682]: m2RDoNxT032682:
from=<ro...@phoenix.local>, size=280, class=0, nrcpts=1,
msgid=<200803271350....@phoenix.local>, proto=ESMTP,
daemon=MTA_l, relay=localhost [127.0.0.1]
Mar 27 14:50:29 phoenix sendmail[32681]: m2RDoHGM032681:
to=pe...@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=<pe...@mist.test.at>, ctladdr=<ro...@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 pe...@imap.local
Mar 27 15:14:34 phoenix sendmail[340]: m2REEYRx000340: from=root,
size=5, class=0, nrcpts=1,
msgid=<200803271414....@phoenix.local>, relay=root@localhost
Mar 27 15:14:34 phoenix sendmail[341]: m2REEYEX000341:
<pe...@phoenix.local>... User unknown
Mar 27 15:14:34 phoenix sendmail[340]: m2REEYRx000340:
to=pe...@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=<ro...@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....@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=<ro...@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@ postm...@phoenix.local
# cat access
local RELAY
127.0.0.1 RELAY
To:mist.test.at RELAY
To:imap.local RELAY
> 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 pe...@imap.local it is not delivered
> to the goldfisch-mailer.
>
> pe...@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
> pe...@mist.test.at and pe...@imap.local and then all my sendmail-confs.
>
> thnx for any advice,
> [...]
Use the debug command below:
echo '3,0 pe...@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 : an...@priv.onet.pl : an...@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Non-Determinism is not meant to be reasonable.
-- M. J. 0'Donnell
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 : an...@priv.onet.pl : an...@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