User Tools

Site Tools


Sidebar

linux:postfix:main.cf

Here are some snippets of my postfix config.

smtpd_recipient_restrictions

#Checks for spam, blacklist, quota, ...
smtpd_recipient_restrictions =
# Check Policyd/Cluebringer
        check_policy_service inet:127.0.0.1:10031,
        permit_mynetworks,
#Check greylisting
	check_client_access hash:/etc/postfix/greylist,
# Allow no malformed mails
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
# Allow our authed. users
        permit_sasl_authenticated,
# Deny $mydomain from external clients
	check_sender_access hash:/etc/postfix/access_table,
# These rejects may have to be disalbed, watch your logs
        reject_invalid_helo_hostname,
        reject_unknown_helo_hostname,
        reject_non_fqdn_helo_hostname,
        reject_unknown_client_hostname,
        reject_unknown_reverse_client_hostname,
# check RBLs
	reject_rbl_client truncate.gbudb.net,
        reject_rbl_client bl.spamcop.net,
        reject_rbl_client zen.spamhaus.org,
	reject_rbl_client ix.dnsbl.manitu.net,
# No other relaying
        reject_unauth_destination,
# allow the rest
        permit
linux/postfix/main.cf.txt · Last modified: 2014/12/10 11:30 by Nold