diff options
author | 2024-07-29 19:39:07 +0100 | |
---|---|---|
committer | 2024-07-31 13:25:54 +0100 | |
commit | 4d7d73a103297ba7803ab5d7c4d1882492c3242d (patch) | |
tree | 4b67f8c96966aecb7d68d672bae1029593ee0dbc | |
parent | postfix: add variable for postmaster email (diff) |
postfix: add new aliases to relay restrictions and alias maps
-rw-r--r-- | ansible/roles/postfix/templates/main.cf.j2 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ansible/roles/postfix/templates/main.cf.j2 b/ansible/roles/postfix/templates/main.cf.j2 index 2135b92..46a3848 100644 --- a/ansible/roles/postfix/templates/main.cf.j2 +++ b/ansible/roles/postfix/templates/main.cf.j2 @@ -19,7 +19,7 @@ smtpd_tls_auth_only=yes smtp_tls_security_level = encrypt -smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination +smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination reject_unauth_pipelining myorigin = /etc/mailname myhostname = mail.pydis.wtf @@ -31,10 +31,12 @@ recipient_canonical_classes = envelope_recipient,header_recipient virtual_alias_maps = ldap:/etc/postfix/ldap-registeredaddress.cf, - ldap:/etc/postfix/ldap-uid.cf + ldap:/etc/postfix/ldap-uid.cf, + hash:/etc/postfix/virtual relay_recipient_maps = - ldap:/etc/postfix/ldap-relay-recipients.cf + ldap:/etc/postfix/ldap-relay-recipients.cf, + hash:/etc/postfix/virtual mydestination = mail.pydis.wtf, pydis.wtf, localhost relayhost = |