[CentOS] Configure sendmail to only send to one domain

Mon Nov 24 16:08:29 UTC 2008
Les Mikesell <lesmikesell at gmail.com>

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