bharathan kailath wrote:
 hi
  in smtp out server i configured the following:
  smtpd_sender_restrictions =
  check_sender_access hash:/etc/postfix/mydomains
  reject_unauth_destination

it works but later on i realised that one email user is using smtp out server to forward mails to his another id; and these mails get 'access denied'; how can solve this problem; help appreciatd

Well, there's the rub...

Add a check_recipient_access table and list allowed forward recipients, just above the reject_unauth_destination.

# main.cf
smtpd_sender_restrictions =
  check_sender_access hash:/etc/postfix/mydomains
  check_recipient_access hash:/etc/postfix/allowed_forwards
  reject_unauth_destination

# allowed_forwards
# list of external recipient addresses
# internal mail can be forwarded to
[email protected]   OK
[email protected]   OK

--
Noel Jones

Reply via email to