Add support for POSTFIX_OVERRIDE_FROM.
Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -29,6 +29,13 @@ postconf -e \ | ... | @@ -29,6 +29,13 @@ postconf -e \ |
29 | : > /etc/postfix/virtual | 29 | : > /etc/postfix/virtual |
30 | postmap /etc/postfix/virtual | 30 | postmap /etc/postfix/virtual |
31 | 31 | ||
32 | if [[ $POSTFIX_OVERRIDE_FROM ]]; then | ||
33 | postconf -e smtp_generic_maps=regexp:/etc/postfix/generic-regexp | ||
34 | echo "/^(root|hostuser)(\\+.*)?@[^.]+$/ $POSTFIX_OVERRIDE_FROM" > /etc/postfix/generic-regexp | ||
35 | else | ||
36 | postconf -e smtp_generic_maps= | ||
37 | fi | ||
38 | |||
32 | : ${POSTFIX_FORWARD_APP:=hostuser+app@localhost} | 39 | : ${POSTFIX_FORWARD_APP:=hostuser+app@localhost} |
33 | : ${POSTFIX_FORWARD_CATCHALL:=hostuser+catchall@localhost} | 40 | : ${POSTFIX_FORWARD_CATCHALL:=hostuser+catchall@localhost} |
34 | 41 | ... | ... |
-
Please register or sign in to post a comment