Postfix - how to restrict specific hosts sending to certain domains

Discussion in 'Server Operation' started by JustHall, Nov 16, 2010.

  1. JustHall

    JustHall New Member

    Hi all,

    I currently have Postfix configured as an internally accessible mail relay. I have an access control list in mynetworks which are the hosts allowed to send mail through this system. This is accomplished by the following entry in

    smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination

    It works great, but now I want to see if I can modify my configuration to restrict a particular subset of hosts and only allow them to send mail to two specific domains. For example, would only be allowed to relay mail through this system if the destination is or Everyone else (specified in mynetworks) is allowed to send mail wherever they want.

    Is this possible? I read some Postfix documentation but I'm having a hard time piecing it together to accomplish my goal. Any help would be most appreciated.

    Thanks in advance.
  2. JustHall

    JustHall New Member

    Oh, and there is no authentication happening so it can't be user-based. Thanks.
  3. JustHall

    JustHall New Member

    Bump. Anyone?

Share This Page