You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
2.9 KiB
CFEngine3
104 lines
2.9 KiB
CFEngine3
9 years ago
|
###############
|
||
|
# General
|
||
|
###############
|
||
9 years ago
|
|
||
9 years ago
|
# Main domain and hostname
|
||
|
mydomain = {{ DOMAIN }}
|
||
7 years ago
|
myhostname = {{ HOSTNAMES.split(",")[0] }}
|
||
9 years ago
|
myorigin = $mydomain
|
||
8 years ago
|
|
||
8 years ago
|
# Queue location
|
||
|
queue_directory = /queue
|
||
|
|
||
8 years ago
|
# Message size limit
|
||
|
message_size_limit = {{ MESSAGE_SIZE_LIMIT }}
|
||
|
|
||
9 years ago
|
# Relayed networks
|
||
|
mynetworks = 127.0.0.1/32 [::1]/128 {{ RELAYNETS }}
|
||
8 years ago
|
|
||
9 years ago
|
# Empty alias list to override the configuration variable and disable NIS
|
||
8 years ago
|
alias_maps =
|
||
8 years ago
|
|
||
9 years ago
|
# SQLite configuration
|
||
|
sql = sqlite:${config_directory}/
|
||
8 years ago
|
|
||
9 years ago
|
# Only accept virtual emails
|
||
|
mydestination =
|
||
8 years ago
|
|
||
8 years ago
|
# Relayhost if any is configured
|
||
|
relayhost = {{ RELAYHOST }}
|
||
9 years ago
|
|
||
7 years ago
|
# Recipient delimiter for extended addresses
|
||
7 years ago
|
recipient_delimiter = {{ RECIPIENT_DELIMITER }}
|
||
7 years ago
|
|
||
7 years ago
|
# Only the front server is allowed to perform xclient
|
||
|
smtpd_authorized_xclient_hosts={{ FRONT_ADDRESS }}
|
||
|
|
||
9 years ago
|
###############
|
||
|
# TLS
|
||
|
###############
|
||
8 years ago
|
|
||
8 years ago
|
# General TLS configuration
|
||
|
tls_high_cipherlist = EDH+CAMELLIA:EDH+aRSA:EECDH+aRSA+AESGCM:EECDH+aRSA+SHA256:EECDH:+CAMELLIA128:+AES128:+SSLv3:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!DSS:!RC4:!SEED:!IDEA:!ECDSA:kEDH:CAMELLIA128-SHA:AES128-SHA
|
||
|
tls_preempt_cipherlist = yes
|
||
7 years ago
|
tls_ssl_options = NO_COMPRESSION
|
||
8 years ago
|
|
||
8 years ago
|
# Outgoing TLS is more flexible because 1. not all receiving servers will
|
||
|
# support TLS, 2. not all will have and up-to-date TLS stack.
|
||
|
smtp_tls_security_level = may
|
||
8 years ago
|
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
|
||
|
smtp_tls_protocols =!SSLv2,!SSLv3
|
||
8 years ago
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||
9 years ago
|
|
||
9 years ago
|
###############
|
||
|
# Virtual
|
||
|
###############
|
||
8 years ago
|
|
||
8 years ago
|
# The alias map actually returns both aliases and local mailboxes, which is
|
||
|
# required for reject_unlisted_sender to work properly
|
||
9 years ago
|
virtual_alias_maps = ${sql}sqlite-virtual_alias_maps.cf
|
||
8 years ago
|
virtual_mailbox_domains = ${sql}sqlite-virtual_mailbox_domains.cf
|
||
|
virtual_mailbox_maps = $virtual_alias_maps
|
||
8 years ago
|
|
||
7 years ago
|
# Mails are transported if required, then forwarded to Dovecot for delivery
|
||
|
transport_maps = ${sql}sqlite-transport.cf
|
||
9 years ago
|
virtual_transport = lmtp:inet:imap:2525
|
||
8 years ago
|
|
||
8 years ago
|
# In order to prevent Postfix from running DNS query, enforce the use of the
|
||
|
# native DNS stack, that will check /etc/hosts properly.
|
||
9 years ago
|
lmtp_host_lookup = native
|
||
9 years ago
|
|
||
8 years ago
|
###############
|
||
|
# Restrictions
|
||
|
###############
|
||
|
|
||
|
# Delay all rejects until all information can be logged
|
||
|
smtpd_delay_reject = yes
|
||
|
|
||
|
# Allowed senders are: the user or one of the alias destinations
|
||
|
smtpd_sender_login_maps = $virtual_alias_maps
|
||
|
|
||
7 years ago
|
# Restrictions for incoming SMTP, other restrictions are applied in master.cf
|
||
8 years ago
|
smtpd_helo_required = yes
|
||
|
|
||
|
smtpd_recipient_restrictions =
|
||
7 years ago
|
permit_mynetworks,
|
||
|
check_sender_access ${sql}sqlite-reject-spoofed.cf,
|
||
|
reject_non_fqdn_sender,
|
||
|
reject_unknown_sender_domain,
|
||
|
reject_unknown_recipient_domain,
|
||
|
permit
|
||
8 years ago
|
|
||
9 years ago
|
###############
|
||
|
# Milter
|
||
|
###############
|
||
8 years ago
|
|
||
9 years ago
|
smtpd_milters = inet:milter:9900
|
||
|
milter_protocol = 6
|
||
|
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
|
||
8 years ago
|
milter_default_action = tempfail
|
||
|
|
||
|
###############
|
||
|
# Extra Settings
|
||
|
###############
|