Sendmail: August 2005 Archives

Problem


My SMTP server, sendmail 8.13.4, is trying to add the domain name to
the recipient's email address when it is not able to find the domain
name.

Here, for example:

**********************************************
** THIS IS A WARNING MESSAGE ONLY **
** YOU DO NOT NEED TO RESEND YOUR MESSAGE **
**********************************************

The original message was received at Mon, 8 Aug 2005 06:47:30 -0700
from superman [202.163.211.54]

----- Transcript of session follows -----
< endu...@anotherdomain.com >... Deferred: Connection timed out with
anotherdomain.com.mydomain.com.
Warning: message still undelivered after 12 hours
Will keep trying until message is 5 days old

[r...@mydomain.com cf]# sendmail -bt -C /etc/mail/sendmail.cf
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter < ruleset > < address >
> /try smtp s...@thisdomainnotexistatall.com

Trying envelope recipient address s...@thisdomainnotexistatall.com for
mailer smtp
canonify input: super @ thisdomainnotexistatall . com
Canonify2 input: super < @ thisdomainnotexistatall . com >
Canonify2 returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
canonify returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
2 input: super < @ thisdomainnotexistatall . com . mydomain . com . >
2 returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
EnvToSMTP input: super < @ thisdomainnotexistatall . com . mydomain . com . >
PseudoToReal input: super < @ thisdomainnotexistatall . com . mydomain . com . >
PseudoToReal returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
MasqSMTP input: super < @ thisdomainnotexistatall . com . mydomain . com . >
MasqSMTP returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
EnvToSMTP returns: super < @ thisdomainnotexistatall . com . mydomain . com . >
final input: super < @ thisdomainnotexistatall . com . mydomain . com . >
final returns: super @ thisdomainnotexistatall . com . mydomain . com

Now, where did anotherdomain.com.mydomain.com come from ? Also, why is it adding mydomain.com ?

Solution

Now, This could be because the domain, mydomain.com has got wildcard entry (*.mydomain.com). So, edit the option in /etc/mail/sendmail.cf to the following:

O ResolverOptions=+AAONLY -DNSRCH HasWildcardMX

from the doc:

The ResolverOptions ( I) option allows you to tweak name server options. The command line takes a series of flags as documented in resolver(3) (with the leading RES_ deleted). Each can be preceded by an optional `+' or `-'. For example, the line

O ResolverOptions=+AAONLY -DNSRCH

turns on the AAONLY (accept authoritative answers only) and turns off the DNSRCH (search the domain path) options. Most resolver libraries default DNSRCH, DEFNAMES, and RECURSE flags on and all others off. You can also include HasWildcardMX to specify that there is a wildcard MX record matching your domain; this turns off MX matching when canonifying names, which can lead to inappropriate canonifications.

About this Archive

This page is a archive of entries in the Sendmail category from August 2005.

Sendmail: February 2006 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Sendmail: August 2005: Monthly Archives

Powered by
Movable Type 4.01