From 4dadf12bb8613a610bfd1b6b044cd6b5b4ec8ed3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 17 Mar 2023 15:06:19 -0300 Subject: Makefile: Streamline verification of generated config files --- tests/local/etc/postfix/main.cf | 21 +++++++++++++++++++++ tests/local/etc/postfix/master.cf | 30 ++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/local/etc/postfix/main.cf create mode 100644 tests/local/etc/postfix/master.cf (limited to 'tests/local/etc/postfix') diff --git a/tests/local/etc/postfix/main.cf b/tests/local/etc/postfix/main.cf new file mode 100644 index 0000000..f9eee9e --- /dev/null +++ b/tests/local/etc/postfix/main.cf @@ -0,0 +1,21 @@ +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/ +smtp_sender_dependent_authentication = yes +sender_dependent_relayhost_maps = hash:/var/lib/private/postfix/relayhosts-maps +smtp_sasl_password_maps = hash:/var/lib/private/postfix/sasl-password +smtp_sasl_auth_enable = yes +smtp_sasl_security_options = noanonymous +smtp_sasl_mechanism_filter = login, plain +smtp_use_tls = yes +smtp_tls_security_level = encrypt +smtp_tls_note_starttls_offer = yes + +mynetworks = 127.0.0.0/8 diff --git a/tests/local/etc/postfix/master.cf b/tests/local/etc/postfix/master.cf new file mode 100644 index 0000000..2cc4b02 --- /dev/null +++ b/tests/local/etc/postfix/master.cf @@ -0,0 +1,30 @@ +# ============================================================================================================ +# service type private unpriv chroot wakeup maxproc command + args +# (yes) (yes) (no) (never) (100) +# ============================================================================================================= + +anvil unix - - n - 1 anvil +bounce unix - - n - 0 bounce +cleanup unix n - n - 0 cleanup +defer unix - - n - 0 bounce +discard unix - - n - - discard +error unix - - n - - error +flush unix n - n 1000? 0 flush +lmtp unix - - n - - lmtp +local unix - n n - - local +pickup unix n - n 60 1 pickup +proxymap unix - - n - - proxymap +proxywrite unix - - n - 1 proxymap +qmgr unix n - n 300 1 qmgr +relay unix - - n - - smtp +retry unix - - n - - error +rewrite unix - - n - - trivial-rewrite +scache unix - - n - 1 scache +showq unix n - n - - showq +smtp inet n - n - - smtpd -o syslog_name=postfix/smtp +smtp unix - - n - - smtp +tlsmgr unix - - n 1000? 1 tlsmgr +trace unix - - n - 0 bounce +verify unix - - n - 1 verify +virtual unix - n n - - virtual +postlog unix-dgram n - n - 1 postlogd -- cgit v1.2.3