@@ -63,41 +63,54 @@ acl_check_mail:
6363 condition = ${if match{$sender_helo_name}{\N((\d{1,3}[.-]\d{1,3}[.-]\d{1,3}[.-]\d{1,3})|([0-9a-f]{8})|([0-9A-F]{8}))\N}{yes}{no}}
6464 condition = ${if match {${lookup dnsdb{>: defer_never,ptr=$sender_host_address}}\}{$sender_helo_name}{no}{yes}}
6565 delay = 45s
66- drop
67- condition = ${if match{$sender_helo_name}{\N^\[\N}{no}{yes}}
68- condition = ${if match{$sender_helo_name}{\N\.\N}{no}{yes}}
69- message = Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
66+ # drop
67+ # condition = ${if match{$sender_helo_name}{\N^\[\N}{no}{yes}}
68+ # condition = ${if match{$sender_helo_name}{\N\.\N}{no}{yes}}
69+ # message = Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
7070 drop
7171 condition = ${if isip{$sender_helo_name}}
7272 message = Access denied - Invalid HELO name (See RFC2821 4.1.3)
7373 drop
7474 condition = ${if match{$sender_helo_name}{\N\.$\N}}
7575 message = Access denied - Invalid HELO name (See RFC2821 4.1.1.1)
76- # drop message = "REJECTED - Bad HELO - Host impersonating [$sender_helo_name]"
77- # condition = ${if match{$sender_helo_name}{$primary_hostname}}
76+ drop message = "REJECTED - Bad HELO - Host impersonating [$sender_helo_name]"
77+ condition = ${if match{$sender_helo_name}{$primary_hostname}}
7878 drop condition = ${if eq{[$interface_address]}{$sender_helo_name}}
7979 message = $interface_address is _my_ address
8080 accept
8181
8282
8383acl_check_rcpt:
8484 accept hosts = :
85+
8586 deny message = Restricted characters in address
8687 domains = +local_domains
8788 local_parts = ^[.] : ^.*[@%!/|]
89+
8890 deny message = Restricted characters in address
8991 domains = !+local_domains
9092 local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
93+
94+ require verify = sender
95+
9196 accept hosts = +relay_from_hosts
9297 control = submission
98+
9399 accept local_parts = postmaster
94100 domains = +local_domains
95- require verify = sender
101+
96102 accept authenticated = *
97103 control = submission/domain=
104+
98105 require message = relay not permitted
99106 domains = +local_domains : +relay_to_domains
107+
108+ deny message = smtp auth requried
109+ sender_domains = +local_domains
110+ !authenticated = *
111+
100112 require verify = recipient
113+
101114.ifdef CLAMD
102115 warn set acl_m0 = no
103116 warn condition = ${if exists {/etc/exim/domains/$domain/antivirus}{yes}{no}}
0 commit comments