You want /etc/mail/relay-domains, /etc/mail/access is more for allowing specific hosts to relay. Any domain that is not in relay-domains will be rejected.

You may also want to look at mailertable if your host is simple MTA and not the final destination.

*some versions may vary :)

-Mike

On Thu, Jul 15, 2010 at 4:26 AM, Sean Roe <sean@azbiz.net> wrote:
Hi Guys,

I have had a weird request, how to configure sendmail to relay email to one receipient domain only and rejecting everything else.

So if the access db worked with wild cards it would be something like:

mydomain         relay
*                       reject

Any ideas how to do this for real?

Thanks,
Sean

---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss