diff options
author | EuAndreh <eu@euandre.org> | 2023-03-17 07:04:22 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-17 07:06:50 -0300 |
commit | 5b85b1368f81b7eed8efef9d07ae8c077bac73c4 (patch) | |
tree | 7f05cb1685896a7af1a78ee1196fc93aab6ef828 /tests/internet/main.cf.in | |
parent | queue.scm: Remove FIXME markers froom inside main.cf content (diff) | |
download | package-repository-5b85b1368f81b7eed8efef9d07ae8c077bac73c4.tar.gz package-repository-5b85b1368f81b7eed8efef9d07ae8c077bac73c4.tar.xz |
Test for expected output of Postfix config files
Diffstat (limited to '')
-rw-r--r-- | tests/internet/main.cf.in | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/internet/main.cf.in b/tests/internet/main.cf.in new file mode 100644 index 0000000..566dbcd --- /dev/null +++ b/tests/internet/main.cf.in @@ -0,0 +1,36 @@ +compatibility_level = 3.6 + +queue_directory = /var/spool/postfix +data_directory = /var/lib/postfix +mail_owner = postfix +setgid_group = postdrop + +header_checks = regexp:{ { /^Received:.*/ IGNORE }, { /^X-Originating-IP:.*/ IGNORE } } + +mail_spool_directory = /var/mail/ + +myhostname = @HOSTNAME@ + +smtpd_use_tls = yes +smtpd_tls_cert_file = /etc/letsencrypt/live/@HOSTNAME@/fullchain.pem +smtpd_tls_key_file = /etc/letsencrypt/live/@HOSTNAME@/privkey.pem +smtp_use_tls = $smtpd_use_tls +smtp_tls_cert_file = $smtpd_tls_cert_file +smtp_tls_key_file = $smtpd_tls_key_file + +smtp_tls_security_level = may + +recipient_delimiter = + + +smtpd_sasl_tls_security_options = noanonymous +smtpd_tls_security_level = may +smtpd_tls_auth_only = yes + +smtpd_relay_restrictions = $smtpd_recipient_restrictions +smtpd_recipient_restrictions = permit_mynetworks, + permit_sasl_authenticated, reject_unauth_destination +smtpd_sasl_auth_enable = yes +cyrus_sasl_config_path = /etc/sasl2 +debug_peer_list = 127.0.0.1 + +milter_default_action = accept |