[CentOS] Configure sendmail to only send to one domain

Les Mikesell

lesmikesell at gmail.com
Mon Nov 24 16:08:29 UTC 2008


Sean Carolan wrote:
> Is there an easy way to configure sendmail to only send mail to
> addresses in one particular domain?

If it is 'your' domain, configure the sender(s) to use the intended 
receiving server as the SMART_HOST but don't give it RELAY permissions 
in the receiving access file.   That way it can attempt to send to other 
addresses but only ones local to the receiving machine will be accepted.

-- 
   Les Mikesell
    lesmikesell at gmail.com



More information about the CentOS mailing list