[Ilugc] sendmail - Restrict emails to all domains except xyz.com

  • From: aravindaraj@xxxxxxxxx (aravindaraj d)
  • Date: Mon, 7 Nov 2011 19:27:52 +0530

Hi All,

Im using centos with sendmail in it. It is a LAMP development server.
I need to restrict all outgoing emails and need to allow only to my domain
xyz.com

Please let me know how to do this.

I have tried following entries in /etc/mail/access, but it doesn't work as
I expect
To:xyz.com REJECT
server rejects email to my domain xyz.com whereas if I give
To:* REJECT
it doesn't work.

Thanks in advance.

Regards,
Aravind

Other related posts: