Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
sendmail ignores mailertable for some "semilocal" domains
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
peter pilsl  
View profile  
 More options Mar 27 2008, 9:18 am
Newsgroups: comp.mail.sendmail
From: peter pilsl <pi...@goldfisch.at>
Date: Thu, 27 Mar 2008 14:18:39 +0100
Local: Thurs, Mar 27 2008 9:18 am
Subject: 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 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  %...@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.m2RDoHGM032...@phoenix.local>, relay=root@localhost
Mar 27 14:50:29 phoenix sendmail[32682]: m2RDoNxT032682:
from=<r...@phoenix.local>, size=280, class=0, nrcpts=1,
msgid=<200803271350.m2RDoHGM032...@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=<r...@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.m2REEYRx000...@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=<r...@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.m2REEYS0000...@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=<r...@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@                     postmas...@phoenix.local

# cat access
local RELAY
127.0.0.1 RELAY
To:mist.test.at RELAY
To:imap.local RELAY


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Mar 27 2008, 9:32 am
Newsgroups: comp.mail.sendmail
From: Andrzej Adam Filip <a...@onet.eu>
Date: Thu, 27 Mar 2008 14:32:52 +0100
Local: Thurs, Mar 27 2008 9:32 am
Subject: Re: sendmail ignores mailertable for some "semilocal" domains

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 : a...@priv.onet.pl : a...@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
Non-Determinism is not meant to be reasonable.
  -- M. J. 0'Donnell


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
peter pilsl  
View profile  
 More options Mar 27 2008, 10:47 am
Newsgroups: comp.mail.sendmail
From: peter pilsl <pi...@goldfisch.at>
Date: Thu, 27 Mar 2008 15:47:31 +0100
Local: Thurs, Mar 27 2008 10:47 am
Subject: Re: sendmail ignores mailertable for some "semilocal" domains

Andrzej Adam Filip wrote:
>> [...]

> 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

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Adam Filip  
View profile  
 More options Mar 27 2008, 11:13 am
Newsgroups: comp.mail.sendmail
From: Andrzej Adam Filip <a...@onet.eu>
Date: Thu, 27 Mar 2008 16:13:35 +0100
Local: Thurs, Mar 27 2008 11:13 am
Subject: Re: sendmail ignores mailertable for some "semilocal" domains

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 : a...@priv.onet.pl : a...@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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »