On 02/04/2011 11:45 AM, Stan Hoeppner wrote: > J4K put forth on 2/4/2011 4:20 AM: > >> Back to the Stan's pcre file:- I've been running through the logs for >> rejects specifically caused by this file (or prepends). However I did >> not see any. Is there a string I could search for, > Try: > ~$ egrep "Dynamic - Please|Generic - Please|X-GenericStatic" /your/mail/log > >> and how could I white >> list IPs instead of editing the pcre file? > Whitelisting in Postfix is simply using an access table with an accept rather > than reject action. See man 5 access. Example: > > smtpd_recipient_restrictions = > permit_mynetworks > reject_unauth_destination > check_recipient_access cidr:/etc/postfix/whitelist > check_reverse_client_hostname_access pcre:/etc/postfix/fqrdns.pcre > ... > ... > > /etc/postfix/whitelist > > 10.1.2.3 OK > 10.2.3.4 OK > 192.168.0.0/16 OK > > I think there is a typo in the file:
/^ip[12]?[0-9]{1,2}(-[12]?[0-9]{1,2}){3}\.adsl2?\.static\.versatel\.nl$/ PREPEND X-GenericStaticHELO: (versatel.ml) should read /ml/nl/ /^ip[12]?[0-9]{1,2}(-[12]?[0-9]{1,2}){3}\.adsl2?\.static\.versatel\.nl$/ PREPEND X-GenericStaticHELO: (versatel.nl)