Hello,

can a postfix guru please look over my easy configuration? I wanted to create 
some very easy antispam defense using only postfix (postgrey).

I created a new smtpd_restriction_classes, which i appended to 
smtpd_recipient_restrictions.

my_filtering = check_recipient_access 
proxy:pgsql:/etc/myconfig/recipient_check, check_policy_service 
inet:127.0.0.1:60000, check_client_access pcre:/etc/myconfig/rbl_check

At first i check if the internal recipient exists with a SQL lookup, it either 
returns REJECT if the user isnt found, or DUNNO if the user is found (to 
proceed with additional checks). I heard the use of proxy: is recommended for 
performance reason - i want to use this lookup for up to 50 messages/sec - is 
proxymap the right thing todo in this case?

After the recipient check, i check for greylisting, default config of postgrey. 
Finally im doing an rbl check with reject_rbl_client zen.spamhaus.org.

Is this the correct order? Is this performance wise the best i could do?

Thank you


      

Reply via email to