On 10/25/2012 5:27 AM, LEVAI Daniel wrote: > Hi! > > I'm looking for a way to restrict outgoing mail with postfix's smtp(8) > based on the destination mx host/address. Like with the parameter > smtpd_client_restrictions for smtpd(8). > I would like to specify the restriction in 'domain.com' or '1.2.3.4' ip > address form. Is this possible with postfix 2.8?
Postfix restrictions work on input, not output. If you don't want to deliver mail somewhere, don't accept the mail when it arrives. Use smtpd_recipient_restrictions with check_recipient_access and/or check_recipient_mx_access maps to reject the unwanted mail. Note: smtpd restrictions are for mail submitted via SMTP, and are not intended for mail submitted via the sendmail(1) command. -- Noel Jones