Help with smart host please

Alan Fiebig mailscanner at ELKNET.NET
Sat Sep 20 13:59:50 IST 2003


Okay, here is what I had in my /etc/mail/sendmail.mc

  define(`SMART_HOST',`talia.elknet.net')
  FEATURE(`accept_unresolvable_domains')dnl
  dnl FEATURE(`relay_based_on_MX')dnl

So, per your suggestion, I added 'dnl' in front of the "FEATURE(`accept_unresolvable_domains')dnl" line

The only change I saw after running M4 and stopping then restarting the MailScanner
service (which includes sendmail) was that now I occasionally saw these lines in
the maillog I never saw before:

#############
ruleset=check_mail, arg1=<Groot at imaginaryroad.com>, relay=smtp.elknet.net [216.114.28.2], reject=451 4.1.8 Domain of sender address Groot at imaginaryroad.com does not resolve
#############

So, now it appears that I am in worse shape. Before, my MS server would at least accept
messages without first doing a DNS lookup, now with this change its not even doing that.

So, I put the "FEATURE(`accept_unresolvable_domains')dnl" back the way it had been,
and re-did the M4, then stopped and restarted the services again. Now I'm back to
accepting all mail without doing any DNS lookups.

But I'm still at square one in that I can't get sendmail to blindly deliver all messages
to my smarthost without it first doing a DNS lookup.

I appreciate all the suggestions so far, please keep them coming!
I know there has to be some way to do this...

-Alan

>Take a look at /etc/mail/sendmail.mc
>
>You can add a line in here that says:
>
>define(`SMART_HOST',`host.domain.tld')
>
>I'd also make sure you have the following lines commented:
>
>dnl FEATURE(`accept_unresolvable_domains')dnl
>dnl FEATURE(`relay_based_on_MX')dnl
>
>dnl *is* the comment by the way
>
>Then run:
>
>m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
>
>and finally service MailScanner restart (you must restart so the sendmail
>processes also restart to read the newly created sendmail.cf
>
>Mike
>
>-----Original Message-----
>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf
>Of Alan Fiebig
>Sent: Friday, September 19, 2003 5:37 PM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: Help with smart host please
>
>
>I don't know...
>
>How do I check and if so fix this setting?
>
>-Alan
>
>>Do you have sendmail configured to check for "unresolvable domain
>>names"? If so, I believe this might take precedence over the smart
>>relay :(
>>
>>Steve
>>Steve Swaney
>>Steve at Swaney.com



More information about the MailScanner mailing list