install_postfix_*: add support for 'smtp_generic_maps'.
This commit is contained in:
parent
015cba6d05
commit
0c5c9915f8
@ -1648,6 +1648,16 @@ alias_database =
|
||||
## -
|
||||
sender_canonical_maps = btree:/etc/postfix/sender_canonical
|
||||
|
||||
## - smtp_generic_maps (default: empty)
|
||||
## -
|
||||
## - Optional lookup tables that perform address rewriting in the Postfix
|
||||
## - SMTP client, typically to transform a locally valid address into a
|
||||
## - globally valid address when sending mail across the Internet. This is
|
||||
## - needed when the local machine does not have its own Internet domain name,
|
||||
## -but uses something like localdomain.local instead.
|
||||
## -
|
||||
smtp_generic_maps =
|
||||
btree:/etc/postfix/generic
|
||||
|
||||
|
||||
## - Optional lookup tables with mappings from recipient address
|
||||
@ -2854,6 +2864,19 @@ else
|
||||
echo_failed
|
||||
fi
|
||||
|
||||
echononl " Create file \"generic\""
|
||||
if [[ ! -f /etc/postfix/generic ]]; then
|
||||
cat <<EOF > /etc/postfix/generic
|
||||
@localhost @$(hostname -f)
|
||||
EOF
|
||||
fi
|
||||
postmap btree:/etc/postfix/generic
|
||||
if [[ $? -eq 0 ]] ; then
|
||||
echo_ok
|
||||
else
|
||||
echo_failed
|
||||
fi
|
||||
|
||||
|
||||
echononl " Create file \"virtual_alias_domains\""
|
||||
if [[ ! -f /etc/postfix/virtual_alias_domains ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user