Fix IPv6 mail sending, add noreply alias

This commit is contained in:
Lyn Fugmann 2023-07-06 01:10:47 +02:00
parent 1d9359416d
commit 9be95bc7d7
Signed by: fugi
GPG key ID: 4472A20091BFA792

View file

@ -39,7 +39,7 @@ in
domain = "${domain}"; domain = "${domain}";
origin = "${domain}"; origin = "${domain}";
destination = [ "${hostname}" "${domain}" "localhost" ]; destination = [ "${hostname}" "${domain}" "localhost" ];
networks = [ "127.0.0.1" "141.30.30.169" ]; networksStyle = "host"; # localhost and own public IP
sslCert = "/var/lib/acme/${hostname}/fullchain.pem"; sslCert = "/var/lib/acme/${hostname}/fullchain.pem";
sslKey = "/var/lib/acme/${hostname}/key.pem"; sslKey = "/var/lib/acme/${hostname}/key.pem";
relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ]; relayDomains = [ "hash:/var/lib/mailman/data/postfix_domains" ];
@ -47,7 +47,6 @@ in
extraAliases = '' extraAliases = ''
# Taken from kaki, maybe we can throw out some at some point # Taken from kaki, maybe we can throw out some at some point
# General redirections for pseudo accounts # General redirections for pseudo accounts
postmaster: root
bin: root bin: root
daemon: root daemon: root
named: root named: root
@ -62,9 +61,13 @@ in
dumper: root dumper: root
operator: root operator: root
abuse: postmaster abuse: postmaster
postmaster: root
# trap decode to catch security attacks # trap decode to catch security attacks
decode: root decode: root
# yeet into the void
noreply: /dev/null
''; '';
config = { config = {
home_mailbox = "Maildir/"; home_mailbox = "Maildir/";
@ -173,7 +176,6 @@ in
inet_listener sieve { inet_listener sieve {
port = 4190 port = 4190
} }
service_count = 1 service_count = 1
} }
service lmtp { service lmtp {