Some checks are pending
continuous-integration/drone/push Build is running
Closes: #36
40 lines
1.1 KiB
CFEngine3
40 lines
1.1 KiB
CFEngine3
# Postfix main configuration for happyDeliver
|
|
# This configuration receives emails and routes them through authentication filters
|
|
|
|
# Basic settings
|
|
compatibility_level = 3.6
|
|
myhostname = __HOSTNAME__
|
|
mydomain = __DOMAIN__
|
|
myorigin = $mydomain
|
|
inet_interfaces = all
|
|
inet_protocols = ipv4
|
|
|
|
# Recipient settings
|
|
mydestination = localhost.$mydomain, localhost
|
|
mynetworks = 127.0.0.0/8 [::1]/128
|
|
|
|
# Relay settings - accept mail for our test domain
|
|
relay_domains = $mydomain
|
|
|
|
# Queue and size limits
|
|
message_size_limit = 10485760
|
|
mailbox_size_limit = 0
|
|
queue_minfree = 50000000
|
|
|
|
# Transport maps - route test emails to happyDeliver analyzer
|
|
transport_maps = pcre:/etc/postfix/transport_maps
|
|
|
|
# Authentication milters
|
|
# OpenDKIM for DKIM verification
|
|
milter_default_action = accept
|
|
milter_protocol = 6
|
|
smtpd_milters = unix:/var/spool/postfix/authentication_milter/authentication_milter.sock unix:/var/spool/postfix/spamassassin/spamass-milter.sock unix:/var/spool/postfix/rspamd/rspamd-milter.sock
|
|
non_smtpd_milters = $smtpd_milters
|
|
|
|
# SPF policy checking
|
|
smtpd_recipient_restrictions =
|
|
permit_mynetworks,
|
|
reject_unauth_destination
|
|
|
|
# Logging
|
|
debug_peer_level = 2
|