Fixed smtp acl implementation

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO
2020-12-28 13:11:29 +01:00
parent c1150832dd
commit ed8fc2a6e8
4 changed files with 59 additions and 35 deletions

View File

@ -232,11 +232,10 @@ mmap_dedup_test=0
security_header=
; whether to enable (1) or not (0) an smtp access list similar to
; postfix's postscreen. If so, then create a text file %sysconfdir%/piler/smtp.acl
; An example for /usr/local/etc/piler/smtp.acl:
;
; 1.2.3.4/32 permit
; 10.0.1.0/24 reject
; 172.16.0.0/16 permit
; postfix's postscreen. Valid actions in the acl file are "permit"
; and "reject" (without quotes). See smtp.acl.example for more.
;
; Important! There's an implicit default deny at the end of the
; rules. In other words if you decide to use the acl file, then
; everyone is not explicitly permitted is denied.
smtp_access_list=0

9
etc/smtp.acl.example Normal file
View File

@ -0,0 +1,9 @@
# Allow office365 servers. See the below URI for more
# https://docs.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges?view=o365-worldwide
#
# Anything is not listed below will be rejected
#
40.92.0.0/15 permit
40.107.0.0/16 permit
52.100.0.0/14 permit
104.47.0.0/17 permit