mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-03 17:44:49 +02:00
Deliver root mail (#952)
* Configure delivery of root's mail to postmaster * Tests for delivery of root mail * add missing email template
This commit is contained in:
parent
39954da78e
commit
ea848eb86f
6 changed files with 26 additions and 7 deletions
|
@ -656,7 +656,7 @@ function _setup_spoof_protection () {
|
|||
sed -i 's|smtpd_sender_restrictions =|smtpd_sender_restrictions = reject_authenticated_sender_login_mismatch,|' /etc/postfix/main.cf
|
||||
[ "$ENABLE_LDAP" = 1 ] \
|
||||
&& postconf -e "smtpd_sender_login_maps=ldap:/etc/postfix/ldap-users.cf ldap:/etc/postfix/ldap-aliases.cf ldap:/etc/postfix/ldap-groups.cf" \
|
||||
|| postconf -e "smtpd_sender_login_maps=texthash:/etc/postfix/virtual, texthash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre"
|
||||
|| postconf -e "smtpd_sender_login_maps=texthash:/etc/postfix/virtual, hash:/etc/aliases, pcre:/etc/postfix/maps/sender_login_maps.pcre"
|
||||
}
|
||||
|
||||
function _setup_postfix_access_control() {
|
||||
|
@ -754,6 +754,10 @@ function _setup_postfix_aliases() {
|
|||
s/$/ pcre:\/etc\/postfix\/regexp/
|
||||
}' /etc/postfix/main.cf
|
||||
fi
|
||||
|
||||
notify 'inf' "Configuring root alias"
|
||||
echo "root: ${POSTMASTER_ADDRESS}" > /etc/aliases
|
||||
postalias /etc/aliases
|
||||
}
|
||||
|
||||
function _setup_SRS() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue