🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3687

Re: wrong SMART_HOST?

#3687
From: John F Hall
Date: Thu, 16 Aug 2001 07:56
65 lines
3652 bytes
In article <3B7A4F04.6F2@iptech.demon.co.uk>,
Simon Morris  <simonm@iptech.demon.co.uk> wrote:
>I'm trying to set up sendmail 8.11.5 on Solaris 2.4.
>I have
>
>define(`SMART_HOST',`post.demon.co.uk')
>
>in my .mc file, and hence
>
>DSpost.demon.co.uk
>
>in my .cf file. This machine is the one my ISP provides
>for me to send email to. But when I try to send email,
>I get an email back from my ISP quoting an SMTP dialogue
>with punt-1.mail.demon.net, which is the machine that
>my ISP uses to send me email. I am not supposed to try
>to send email to this machine, so the dialogue describes
>a failure.

As has been said you need to use brackets to suppress MX lookups.

However as you have a static IP address you might like to consider the
alternative of using "define(`confFALLBACK_MX',`[post.demon.co.uk]')dnl".

That has the effect of first attempting direct connection and only
using the Demon smarthost when the direct connection can't be made.
(The brackets aren't strictly needed yet but they will be with sendmail
8.12, so it's best to use them.)

That way you avoid problems if any of the other 200,000 sites feeding
through Demon's smarthost are misconfigured and cause it to get into
blacklists as happens from time to time --- including now :-(.

If you find any destinations that don't want direct connections -
which shouldn't happen as static IP addresses don't qualify for the DUL
list - or if direct delivery is slow or erratic, you should enter them
in mailertable as "destination.site smtp:[post.demon.co.uk]" to force
smarthost delivery.

Presumably "destination.site smtp:destination.site" (without brackets)
in mailertable will have to opposite effect of forcing direct delivery
if you normally do use the smarthost - though I've not tried that myself
nor decoded the ruleset to see exactly what the effect would be.

Finally note that "post.demon.co.uk" is a CNAME for "post.mail.demon.net"
and using the latter name avoids any problems due to the wildcard MX
for demon.co.uk - though it's still advisable to put it in brackets to
ensure your delivery does go there.

Assuming you are a dialup rather than a leased line or ADSL, you also
need:

  define(`confCON_EXPENSIVE',`True')dnl
  define(`SMTP_MAILER_FLAGS',`e')dnl

to force outgoing mail to be queued - and to use "sendmail -q"
appropriately, either in ip-up or in crontab (if you want to use diald).
I also have "/usr/bin/sendmail -qRavondale" in crontab in case any local
mail gets queued.

You also need "HasWildcardMX" for Demon - I use
"define(`confBIND_OPTS',`HasWildcardMX -DNSRCH -DEFNAMES')dnl"

-- 
John F Hall
Technical Details
Message-ID: <9lfubm$67d$1@avondale.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!avondale.demon.co.uk!jfh
References: <3B7A4F04.6F2@iptech.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10de99,4fa346af21d94dd7
X-Google-Attributes: gid10de99,public
X-Google-Thread: fac57,4fa346af21d94dd7
X-Google-Attributes: gidfac57,public
X-Google-ArrivalTime: 2001-08-16 01:08:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!avondale.demon.co.uk!jfh
From: jfh@avondale.demon.co.uk (John F Hall)
Newsgroups: comp.mail.sendmail,demon.tech.unix
Subject: Re: wrong SMART_HOST?
Date: 16 Aug 2001 07:56:38 GMT
Message-ID: <9lfubm$67d$1@avondale.demon.co.uk>
References: <3B7A4F04.6F2@iptech.demon.co.uk>
NNTP-Posting-Host: avondale.demon.co.uk
X-NNTP-Posting-Host: avondale.demon.co.uk:158.152.19.72
X-Trace: news.demon.co.uk 997949231 nnrp-02:16711 NO-IDENT avondale.demon.co.uk:158.152.19.72
X-Complaints-To: abuse@demon.net
NNTP-Posting-Date: 16 Aug 2001 07:56:38 GMT
Lines: 65