diff --git a/Python/etc/postfix/main.cf b/Python/etc/postfix/main.cf index 1b1e3d0..7461d43 100644 --- a/Python/etc/postfix/main.cf +++ b/Python/etc/postfix/main.cf @@ -222,8 +222,31 @@ if main: if main: @# Filtrage sur les sources de connexions - smtpd_client_restrictions = "reject_rbl_client dnsbl.ahbl.org" - + print "smtpd_client_restrictions = permit_mynetworks," + print " reject_rbl_client dnsbl.ahbl.org," + print " reject_rbl_client zen.spamhaus.org," + print " reject_rbl_client dnsbl.sorbs.net," + print " reject_rbl_client list.dsbl.org," + print " reject_rbl_client multihop.dsbl.org" + @ + @# + @# Requiring this will stop some UCE software. + @# (UCE = Unsolicited Commercial Email = SPAM) + @# + smtpd_require_helo = "yes" + @ + @# Reject the request when the client HELO or EHLO parameter has a bad hostname syntax. + @# reject_unknown_hostname value not recommended, because it may causes mail losting. + @# (for example: after paypal.com registration you don't receive activation mail! I've tried it.) + @# + smtpd_helo_restrictions = "permit_mynetworks, reject_invalid_hostname" + @ + @# + @# against to open relay: + @# + smtpd_recipient_restrictions = "permit_mynetworks, reject_unauth_destination" + @ + @## Limitation des messages envoyés par minute @# On n'ignore que les messages venant d'adresses "protégées" smtpd_client_event_limit_exceptions = local_networks