diff options
Diffstat (limited to 'tests/internet/etc')
-rw-r--r-- | tests/internet/etc/dkimproxyout.conf.in | 9 | ||||
-rw-r--r-- | tests/internet/etc/dovecot.conf.in | 54 | ||||
-rw-r--r-- | tests/internet/etc/postfix/main.cf.in | 36 | ||||
-rw-r--r-- | tests/internet/etc/postfix/master.cf | 51 | ||||
-rw-r--r-- | tests/internet/etc/sasl2/smtpd.conf | 3 |
5 files changed, 153 insertions, 0 deletions
diff --git a/tests/internet/etc/dkimproxyout.conf.in b/tests/internet/etc/dkimproxyout.conf.in new file mode 100644 index 0000000..0059804 --- /dev/null +++ b/tests/internet/etc/dkimproxyout.conf.in @@ -0,0 +1,9 @@ +listen 127.0.0.1:10027 +relay 127.0.0.1:10028 + +domain @HOSTNAME@ +selector dkimproxyout + +signature dkim(c=relaxed/relaxed) + +keyfile /var/lib/dkimproxyout/private.key diff --git a/tests/internet/etc/dovecot.conf.in b/tests/internet/etc/dovecot.conf.in new file mode 100644 index 0000000..6ac013d --- /dev/null +++ b/tests/internet/etc/dovecot.conf.in @@ -0,0 +1,54 @@ +protocols = imap + +default_internal_user = dovecot +default_internal_group = dovecot +default_login_user = dovenull +auth_mechanisms = plain login +auth_username_format = %n + +passdb { + driver = shadow +} +userdb { + driver = passwd +} +service auth-worker { + group = etc-shadow +} + +ssl = required +ssl_cert = </etc/letsencrypt/live/@HOSTNAME@/fullchain.pem +ssl_key = </etc/letsencrypt/live/@HOSTNAME@/privkey.pem +ssl_dh = </var/lib/dovecot/dhparam.pem + +base_dir = /var/run/dovecot +state_dir = /var/lib/dovecot + +verbose_proctitle = yes + +mail_location = maildir:/var/mail/%u:INBOX=/var/mail/%u:LAYOUT=fs + +namespace inbox { + inbox = yes + mailbox Drafts { + special_use = \Drafts + auto = subscribe + } + mailbox Sent { + special_use = \Sent + auto = subscribe + } + mailbox Archive { + special_use = \Archive + auto = subscribe + } + mailbox Junk { + special_use = \Junk + auto = subscribe + autoexpunge = 30d + } + mailbox Trash { + special_use = \Trash + auto = subscribe + } +} diff --git a/tests/internet/etc/postfix/main.cf.in b/tests/internet/etc/postfix/main.cf.in new file mode 100644 index 0000000..566dbcd --- /dev/null +++ b/tests/internet/etc/postfix/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 diff --git a/tests/internet/etc/postfix/master.cf b/tests/internet/etc/postfix/master.cf new file mode 100644 index 0000000..5c25fd9 --- /dev/null +++ b/tests/internet/etc/postfix/master.cf @@ -0,0 +1,51 @@ +# ============================================================================================================ +# 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 + -o content_filter=dksign:[127.0.0.1]:10027 +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 + +submission inet n - n - - smtpd -o syslog_name=postfix/submission + -o smtpd_tls_security_level=encrypt + -o content_filter=dksign:[127.0.0.1]:10027 + +dksign unix - - n - - smtp + -o syslog_name=postfix/dkimproxyout-listen + -o smtp_send_xforward_command=yes + -o smtp_discard_ehlo_keywords=8bitmime,starttls + +127.0.0.1:10028 inet n - n - - smtpd + -o syslog_name=postfix/dkimproxyout-relay + -o content_filter= + -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks + -o smtpd_helo_restrictions= + -o smtpd_client_restrictions= + -o smtpd_sender_restrictions= + -o smtpd_recipient_restrictions=permit_mynetworks,reject + -o mynetworks=127.0.0.0/8 + -o smtpd_authorized_xforward_hosts=127.0.0.0/8 diff --git a/tests/internet/etc/sasl2/smtpd.conf b/tests/internet/etc/sasl2/smtpd.conf new file mode 100644 index 0000000..af2ac43 --- /dev/null +++ b/tests/internet/etc/sasl2/smtpd.conf @@ -0,0 +1,3 @@ +pwcheck_method: saslauthd +saslauthd_path: /var/run/saslauthd/mux +log_level: 7 |