Postfix Quick Reference

From 5dollarwhitebox.org Media Wiki

Jump to: navigation, search

Postfix Reference Links


Hardening Policy to Limit Spam

Adding the following to the '/etc/postfix/main.cf' configuration file will greatly reduce Spam:

maps_rbl_domains =      relays.ordb.org,
                        bl.spamcop.net

smtpd_client_restrictions =     permit_mynetworks,
                                hash:/etc/postfix/access, 
                                reject_maps_rbl,
                                reject_unknown_client,
                                permit

smtpd_recipient_restrictions =
        permit_sasl_authenticated,
        reject_invalid_hostname,
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
        reject_unauth_pipelining,
        permit_mynetworks,
        reject_unauth_destination,
        reject_maps_rbl,
        permit


header_checks = regexp:/etc/postfix/header_checks

smtpd_helo_restrictions = reject_unknown_hostname


Explanation: Um.... no, don't have time for that at the moment. Just visit the reference links.... well, accept for the 'header_check'. In this config, '/etc/postfix/header_checks' is a list of regular expressions such as:

/^subject: (.*)pharmacy(.*)/ REJECT
Personal tools