[CentOS] sendmail and relaying

Thu May 27 21:32:32 UTC 2010
Les Mikesell <lesmikesell at gmail.com>

On 5/27/2010 4:16 PM, Jerry Geis wrote:
> I think my sendmail is not correctly set. It says the default is to
> disallow relaying.
>   I am running centos 4.8 and I think sendmail is relaying for anything.
>
> Based on this:
> http://www.sendmail.org/~ca/email/chk-89f.html#RELAYING
>
> I added|:
> FEATURE(relay_hosts_only)
> to my sendmail.mc file and restarted sendmail. I am still seeing
> connects that get relayed and are
> not in my /etc/mail/access file.
>
> Is there something else I am missing?

How much have you changed from the stock sendmail.mc?  The default 
should (a) only accept connections from localhost (127.0.0.1), and (b) 
even when you remove that restriction should only accept messages where 
the server is the final destination unless it is from a source 
explicitly permitted in the access file.

-- 
   Les Mikesell
    lesmikesell at gmail.com