commit 477b4d8b683eeb258e7272910bf382894894e3f9
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Fri Dec 16 17:09:15 2016 +0100
Re-add sender/recipient restrictions from mx1
.../main.cf/main.cf.hv01.online.rpmfusion.net | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git
a/roles/base/files/postfix/main.cf/main.cf.hv01.online.rpmfusion.net
b/roles/base/files/postfix/main.cf/main.cf.hv01.online.rpmfusion.net
index 2ab9cfb..8389af1 100644
---
a/roles/base/files/postfix/main.cf/main.cf.hv01.online.rpmfusion.net
+++
b/roles/base/files/postfix/main.cf/main.cf.hv01.online.rpmfusion.net
@@ -706,6 +706,18 @@ virtual_alias_maps =
hash:/etc/aliases,
hash:/etc/postfix/virtual,
+# SMTP restrictions (block bogus stuff)
+smtpd_sender_restrictions =
+ permit_mynetworks,
+ reject_unknown_sender_domain,
+
+smtpd_recipient_restrictions =
+ permit_mynetworks,
+ reject_unauth_destination,
+# check_policy_service unix:postgrey/socket,
+
+body_checks = regexp:/etc/postfix/body_checks
+
message_size_limit = 20971520
## TLS