goldfisch.at-knowledgebase   (by peter pilsl)


  sendmail ignores mailertable and threatens domain as local

keywords : sendmail domain local class{w} mailertable

I just had a local domainname that was setup in mailertable to a specific mailer, but sendmail always threatened this domain like a local domain, although I made sure that it is not !!

short solution: sendmail converts domains to its canoical forms. if your domain is a cname for another domain, then sendmail converts the name internally. if you send to user@imap.local and imap.local is a cname for server.local then sendmail in fact thinks you send to user@server.local. So give all your domains a A-record that should not be in your class{w}.

long story:


mailertable:

imap.local goldfisch:standard

nevertheless mails to imap.local where not feeded to the goldfisch-mailer but to the local mailer by making sure that it is not in local-host-names-file (FEATURE(`use_cw_file')) and I setup define(`confDONT_PROBE_INTERFACES',`True')

and really, the domain did not show up in:

echo \$=w | /usr/sbin/sendmail -bt -d0.1

But then - as pointed out in KB-377 - I got a debug-command for debugging adresses: (replace peter@imap.local with the adress you want to test !!!)


echo '3,0 peter@imap.local' | sendmail -d21.12 -d8.20 -d60.5 -bt

and this showed me that sendmail looks up the caonical hostname for every domain and that my imap.local was just a CNAME for server.local which was in class{w}. So sendmail internally converted imap.local to server.local and the mail was trapped in class{w} again.

I had to change the zonefile so that imap.local got a real A-record instead of a CNAME and everything was fine.

peter at 2008-03-27 (updated 2008-03-27)

serial : 378


If you found any nonsense in this entry or want to see important improvements, I would appreatiate to receive your comments at knowledge@goldfisch.at

disclaimer : all these entries are part of my very private knowledgebase that I created while solving problems. Many solutions are taken from other webpages or from usenet. There is no warranty for this entries of course. Some of the articles are even stupid and one day you might even find the name of my prefered pizza-service in here, cause I always forget about it. Remember : This is my knowledgebase. If you need professional support and are willing to pay for it just email me at pilsl@goldfisch.at
For enlightment take a look at http://leblogsportif.sportnation.at