Compare commits
2 Commits
015cba6d05
...
5365eb8e18
Author | SHA1 | Date | |
---|---|---|---|
5365eb8e18 | |||
0c5c9915f8 |
10
README.disable-milter-mail-filter
Normal file
10
README.disable-milter-mail-filter
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# ----------
|
||||||
|
# Disable Milter (mail filter) for (remote) SMTP client IP address(es).
|
||||||
|
|
||||||
|
# see:
|
||||||
|
# https://www.postfix.org/MILTER_README.html
|
||||||
|
# https://www.postfix.org/MILTER_README.html#per-client
|
||||||
|
#
|
||||||
|
# https://www.postfix.org/postconf.5.html#smtpd_milter_maps
|
||||||
|
|
||||||
|
|
@ -1648,6 +1648,16 @@ alias_database =
|
|||||||
## -
|
## -
|
||||||
sender_canonical_maps = btree:/etc/postfix/sender_canonical
|
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
|
## - Optional lookup tables with mappings from recipient address
|
||||||
@ -2854,6 +2864,19 @@ else
|
|||||||
echo_failed
|
echo_failed
|
||||||
fi
|
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\""
|
echononl " Create file \"virtual_alias_domains\""
|
||||||
if [[ ! -f /etc/postfix/virtual_alias_domains ]]; then
|
if [[ ! -f /etc/postfix/virtual_alias_domains ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user