68 lines
1.9 KiB
CFEngine3
68 lines
1.9 KiB
CFEngine3
# Basic configuration
|
|
compatibility_level = 2
|
|
smtpd_banner = $myhostname ESMTP
|
|
biff = no
|
|
append_dot_mydomain = no
|
|
readme_directory = no
|
|
|
|
# TLS parameters
|
|
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
|
|
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
|
|
smtpd_use_tls=yes
|
|
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
|
smtpd_tls_security_level = may
|
|
smtp_tls_security_level = may
|
|
smtpd_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
|
smtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
|
smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
|
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1
|
|
|
|
# Network and domain settings
|
|
myhostname = CLOUDRON_APP_DOMAIN
|
|
myorigin = CLOUDRON_MAIL_DOMAIN
|
|
mydestination = CLOUDRON_APP_DOMAIN, localhost
|
|
relayhost =
|
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
|
mailbox_size_limit = 0
|
|
recipient_delimiter = +
|
|
inet_interfaces = all
|
|
inet_protocols = all
|
|
|
|
# Virtual alias domains
|
|
virtual_alias_domains = CLOUDRON_APP_DOMAIN
|
|
virtual_alias_maps = tcp:127.0.0.1:11334
|
|
|
|
# Queue and message settings
|
|
message_size_limit = 26214400
|
|
mailbox_size_limit = 0
|
|
maximal_queue_lifetime = 1d
|
|
bounce_queue_lifetime = 1d
|
|
|
|
# Milter configuration for Rspamd
|
|
smtpd_milters = inet:127.0.0.1:11332
|
|
non_smtpd_milters = inet:127.0.0.1:11332
|
|
milter_protocol = 6
|
|
milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}
|
|
milter_default_action = accept
|
|
|
|
# SMTP restrictions
|
|
smtpd_recipient_restrictions =
|
|
permit_mynetworks,
|
|
reject_unauth_destination,
|
|
reject_non_fqdn_recipient,
|
|
reject_unknown_recipient_domain
|
|
|
|
smtpd_helo_restrictions =
|
|
permit_mynetworks,
|
|
reject_invalid_helo_hostname,
|
|
reject_non_fqdn_helo_hostname
|
|
|
|
smtpd_sender_restrictions =
|
|
permit_mynetworks,
|
|
reject_non_fqdn_sender,
|
|
reject_unknown_sender_domain
|
|
|
|
# Logging
|
|
maillog_file = /dev/stdout
|