projects
/
sysconfig
/
postfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only allow relaying from olinda, not all ET-net machines
[sysconfig/postfix.git]
/
main.cf
diff --git
a/main.cf
b/main.cf
index 01a23ee4c8db40f3569f64b77166e9b5ab9756ea..e214338c8492a40ad817d011f7b3c76904abaa49 100644
(file)
--- a/
main.cf
+++ b/
main.cf
@@
-257,7
+257,7
@@
unknown_local_recipient_reject_code = 450
# (the value on the table right-hand side is not used).
#
# Added by Alex Dehnert
# (the value on the table right-hand side is not used).
#
# Added by Alex Dehnert
-mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, 18.
208.0.0/24
+mynetworks = 66.92.29.156/32, 66.92.29.144/32, 127.0.0.1/32, 18.111.8.18/32, 18.
102.208.15/32
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table
@@
-278,6
+278,11
@@
smtpd_use_tls = yes
smtpd_tls_auth_only = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_auth_only = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
+
+# Alex Dehnert, 2017-11-01
+# Based on https://serverfault.com/questions/663979/virtual-alias-domains-how-to-use-different-ip-addresses-when-forwarding-mail
+
+sender_dependent_default_transport_maps = hash:/etc/mail/sender-transport
# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
# The relay_domains parameter restricts what destinations this system will
# relay mail to. See the smtpd_recipient_restrictions description in
@@
-475,6
+480,10
@@
home_mailbox = .maildir/
mailbox_command = /usr/lib/dovecot/deliver
#mailbox_command = /some/where/procmail -a "$EXTENSION"
mailbox_command = /usr/lib/dovecot/deliver
#mailbox_command = /some/where/procmail -a "$EXTENSION"
+# Bump mailbox size limit to 512MB since cache files were maxing out
+# See https://wiki.dovecot.org/LDA/Postfix
+mailbox_size_limit = 512000000
+
# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
# The mailbox_transport specifies the optional transport in master.cf
# to use after processing aliases and .forward files. This parameter
# has precedence over the mailbox_command, fallback_transport and
@@
-689,3
+698,4
@@
home_mailbox = .maildir/
# 2005-01-19
owner_request_special = no
# 2005-01-19
owner_request_special = no
+smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated permit_auth_destination reject_unauth_destination