aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/postfix
diff options
context:
space:
mode:
Diffstat (limited to 'files/usr/local/etc/postfix')
-rw-r--r--files/usr/local/etc/postfix/main.cf.smtp_server3
-rw-r--r--files/usr/local/etc/postfix/master.cf.smtp_server3
2 files changed, 4 insertions, 2 deletions
diff --git a/files/usr/local/etc/postfix/main.cf.smtp_server b/files/usr/local/etc/postfix/main.cf.smtp_server
index 155c18c..72c0448 100644
--- a/files/usr/local/etc/postfix/main.cf.smtp_server
+++ b/files/usr/local/etc/postfix/main.cf.smtp_server
@@ -19,7 +19,6 @@ setgid_group = maildrop
import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C POSTLOG_SERVICE POSTLOG_HOSTNAME KRB5_KTNAME=${postfix_keytab} KRB5_CLIENT_KTNAME=${postfix_keytab}
myorigin = ${postfix_myorigin}
-myhostname = ${postfix_public_fqdn}
mynetworks = 127.0.0.0/8 [::1]/128 [fe80::]/64 ${postfix_mynetworks}
mydestination =
@@ -100,6 +99,8 @@ smtpd_relay_restrictions =
permit_sasl_authenticated,
reject_unauth_destination
smtpd_recipient_restrictions =
+ permit_mynetworks,
+ permit_sasl_authenticated,
reject_unknown_recipient_domain,
reject_unlisted_recipient,
reject_unauth_destination,
diff --git a/files/usr/local/etc/postfix/master.cf.smtp_server b/files/usr/local/etc/postfix/master.cf.smtp_server
index e0b5bbb..9dce9be 100644
--- a/files/usr/local/etc/postfix/master.cf.smtp_server
+++ b/files/usr/local/etc/postfix/master.cf.smtp_server
@@ -1,4 +1,5 @@
smtp inet n - n - - smtpd
+ -o myhostname=${postfix_public_fqdn}
submission inet n - n - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
@@ -16,7 +17,7 @@ proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
- -o syslog_name=postfix/$service_name
+ -o syslog_name=postfix/\$service_name
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error