[plug] Sendmail - Smart host not working

Andrew Carson acarson at iinet.net.au
Fri Aug 1 12:00:57 WST 2003


Thanks Ryan.. but no go.   I didnt originally have the nullclient setting..
but just tried it then - and no dice :^(   I can report however, that after
making the changes you suggested, my cf file turned out pretty much the same
as yours.

cheers,

Andrew.

----- Original Email -----
From: Ryan <ryan at is.as.geeky.as>
To: plug at plug.linux.org.au
Date: 01-Aug-2003 11:35
Subject: Re: [plug] Sendmail - Smart host not working

> I've seen this on Debian as I have a webmail box behind a gateway that
> uses the gateway as a smart host (another sendmail install).  The exact
> reason was because I couldn't be bothered configuring MailScanner on two
> hosts :)
> 
> This problem you have sounds a little different, but this may apply; as
> essentially sendmail on the webmail box was trying to delivery
> everything itself and failing as it was tripping up on the
> professionally dodgy DNS setup here and thinking it should deliver
> everything to itself and ignore the fact it should be using a smart
> host.
> 
> My problem was I was using some smart hosts directive I found on the
> sendmail site when I should have been using nullclient things.  If that
> is not vague enough, then "I followed some directions I found elsewhere
> and they didn't work" :)
> 
> Try putting this in sendmail.mc and regenerating the cf:
> 
> FEATURE(`nullclient', my.smarthost.my.domain.com)dnl
> 
> >From what I tried it HAD to be an address, not an IP, but I am probably
> wrong there.  Just /etc/hosts it to make it work if you can't dodgy up
> DNS internally to achieve it.
> 
> Once the cf is regenerated, it will have your host in 3 spots:
> 
> ryan at webmail:/etc/mail$ grep -n -B1 my.smarthost.my.domain.com
> sendmail.cf
> 95-# "Smart" relay host (may be null)
> 96:DSmy.smarthost.my.domain.com
> --
> 123-# ($R has precedence for unqualified names if FEATURE(stickyhost) is
> used)
> 124:DHmy.smarthost.my.domain.com
> --
> 137-# who I masquerade as (null for no masquerading) (see also $=M)
> 138:DMmy.smarthost.my.domain.com
> 
> Is that any different to what you already had?  Does it work any better
> now?
> 
> HTH,
> 
> Ryan
> 



More information about the plug mailing list