Afficher un message
Vieux 27/03/2008, 15h18   #1
peter pilsl
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut sendmail ignores mailertable for some "semilocal" domains



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





  Réponse avec citation
 
Page generated in 0,11126 seconds with 9 queries