On 4/20/2010 2:09 PM, Chaminda Indrajith wrote:

Dear all,
I have a postfix mail gateway which is used for all incoming and
outgoing mails of our backend mail server.

I have restricted the Gateway to accept mails only for my domain
(example.com) from outside.

My Question is that, can we set a similar restriction for the outgoing
mails from my domain (example.com). In other words, I need to set up my
gateway to deliver mails originating only from example.com domain to the
outside world.

I would appreciate your help in this regard.

Thanks
Chaminda Indrajith



Something like:

# main.cf
smtpd_sender_restrictions =
  check_sender_access hash:/etc/postfix/sender_only
  reject_unauth_destination

# sender_only
example.com  OK


Warning: use this in smtpd_sender_restrictions as shown above. DO NOT use this in smtpd_recipient_restrictions as it would make you an open relay.



  -- Noel Jones

Reply via email to