smtp/include/01-custom.cf

31 lines
2.0 KiB
CFEngine3
Raw Normal View History

2023-04-25 10:39:41 +00:00
message_size_limit = 25600000
queue_minfree = 51200000
2023-05-02 07:16:10 +00:00
smtpd_helo_required = yes
recipient_delimiter = +
disable_vrfy_command = yes
header_checks = regexp:/etc/postfix/custom/header_checks
#inet_protocols = ipv4, ipv6
local_recipient_maps =
mailbox_size_limit = 133169152
qmqpd_authorized_clients = 127.0.0.1 [::1]
recipient_canonical_maps = lmdb:/etc/postfix/custom/recipient_canonical
sender_canonical_maps = lmdb:/etc/postfix/custom/sender_canonical
smtp_tls_session_cache_database = lmdb:/var/lib/postfix/smtp_tls_session_cache
smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_rbl_client 7dizji4jgexx4lzr4bp5urjmgq.sbl.dq.spamhaus.net
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_restrictions = check_helo_access lmdb:/etc/postfix/custom/helo_access, reject_invalid_hostname
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain, check_recipient_access lmdb:/etc/postfix/custom/recipient_access,
#reject_rhsbl_sender @SPAMHAUS_DQS_KEY@.dbl.dq.spamhaus.net=127.0.1.[2..99],
#reject_rhsbl_helo @SPAMHAUS_DQS_KEY@.dbl.dq.spamhaus.net=127.0.1.[2..99],
#reject_rhsbl_reverse_client @SPAMHAUS_DQS_KEY@.dbl.dq.spamhaus.net=127.0.1.[2..99],
#reject_rhsbl_sender @SPAMHAUS_DQS_KEY@.zrd.dq.spamhaus.net=127.0.2.[2..24],
#reject_rhsbl_helo @SPAMHAUS_DQS_KEY@.zrd.dq.spamhaus.net=127.0.2.[2..24],
#reject_rhsbl_reverse_client @SPAMHAUS_DQS_KEY@.zrd.dq.spamhaus.net=127.0.2.[2..24],
#reject_rbl_client @SPAMHAUS_DQS_KEY@.zen.dq.spamhaus.net=127.0.0.[2..255],
reject_unverified_recipient
rbl_reply_maps = lmdb:/etc/postfix/custom/dnsbl-reply-map
smtpd_sender_restrictions = permit_sasl_authenticated, check_sender_access lmdb:/etc/postfix/custom/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain
smtpd_use_tls = yes
unverified_recipient_reject_code = 450
unverified_recipient_reject_reason = No user at this address