2009/8/12 <f...@hotbox.ru>: > Hi all! > > I expierence problem with building regexp rules in header_checks. All I need > is to reject email coming from addre...@domain1.com to addre...@domain2.com. > How can I issue such excact rule?
It's not possible with header_checks. header_checks works on each header independently, so you cannot combine the results of multiple headers. You may be able to use some of the techniques mentioned here: http://www.postfix.org/RESTRICTION_CLASS_README.html An alternative is to use a policy service: http://www.postfix.org/SMTPD_POLICY_README.html