a8f76ad5 by Adam Heath

Add support for POSTFIX_OVERRIDE_FROM.

1 parent 774b7e1c
...@@ -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
......