Created
March 29, 2017 10:26
-
-
Save Toniob/4c87219b55e9b0b88e8d46c9db398639 to your computer and use it in GitHub Desktop.
postfix config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DKIM | |
milter_default_action = accept | |
milter_protocol = 2 | |
smtpd_milters = inet:127.0.0.1:8891 | |
non_smtpd_milters = inet:127.0.0.1:8891 | |
# Postscreen | |
postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr | |
postscreen_blacklist_action = enforce | |
postscreen_greet_banner = Welcome to xxx | |
postscreen_greet_action = enforce | |
# filter | |
content_filter = smtp-amavis:127.0.0.1:10024 | |
smtp_bind_address = xxx | |
smtp_bind_address6 = xxx | |
myhostname = xxx | |
alias_maps = hash:/etc/aliases | |
alias_database = hash:/etc/aliases | |
myorigin = /etc/mailname | |
mydestination = $myhostname, xxx, localhost | |
relayhost = | |
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 | |
[xxx]/128 xxx/32 | |
mailbox_size_limit = 0 | |
recipient_delimiter = + | |
inet_interfaces = ::1, xxx, 127.0.0.1, xxx | |
#default_transport = error | |
#relay_transport = error | |
inet_protocols = all | |
compatibility_level = 3 | |
message_size_limit = 30000000 | |
virtual_transport = lmtp:unix:private/dovecot-lmtp | |
virtual_mailbox_domains = pgsql:/etc/postfix/sql/sql-domains.cf | |
virtual_alias_domains = pgsql:/etc/postfix/sql/sql-domain-aliases.cf | |
virtual_alias_maps = pgsql:/etc/postfix/sql/sql-aliases.cf | |
relay_domains = pgsql:/etc/postfix/sql/sql-relaydomains.cf | |
transport_maps = | |
hash:/etc/postfix/dmarc_transport | |
pgsql:/etc/postfix/sql/sql-spliteddomains-transport.cf | |
pgsql:/etc/postfix/sql/sql-relaydomains-transport.cf | |
smtpd_recipient_restrictions = | |
permit_mynetworks | |
permit_sasl_authenticated | |
check_recipient_access | |
pgsql:/etc/postfix/sql/sql-maintain.cf | |
pgsql:/etc/postfix/sql/sql-relay-recipient-verification.cf | |
# reject_unverified_recipient | |
reject_unauth_destination | |
smtpd_sender_login_maps = | |
pgsql:/etc/postfix/sql/sql-sender-login-mailboxes.cf | |
pgsql:/etc/postfix/sql/sql-sender-login-aliases.cf | |
pgsql:/etc/postfix/sql/sql-sender-login-mailboxes-extra.cf | |
smtpd_relay_restrictions = | |
permit_mynetworks | |
permit_sasl_authenticated | |
reject_unauth_destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment