Am 26.07.2022 um 16:35 schrieb Helmut Schneider:
$ postmulti -i postfix-in -x postconf
smtpd_client_connection_limit_exceptions
smtpd_client_connection_limit_exceptions =
cidr:/etc/postfix-in/smtpd_client_connection_limit_exceptions
$ postmulti -i postfix-in -x postconf smtpd_client_event_limit_exceptions
smtpd_client_event_limit_exceptions =
cidr:/etc/postfix-in/smtpd_client_event_limit_exceptions
$
<Relaoded postfix>
<Flushed queue>
Jul 26 16:30:52 mail02 postfix-out/error[1388996]: 51DF9B70D8E1:
to=<blabla>, relay=none, delay=32196, delays=32196/0.61/0/0.01,
dsn=4.7.0, status=deferred (delivery temporarily suspended: host
mailin[172.20.16.27] refused to talk to me: 421 4.7.0 mail02 Error: too
many connections from 172.20.16.26)
172.20.16.26 and 172.20.16.27 are both on the same host so I'm sure I
fixed the CIDR notation in all config files (thanks for the hint).
Removed '$mynetworks' from
/etc/postfix-in/smtpd_client_event_limit_exceptions and
/etc/postfix-in/smtpd_client_connection_limit_exceptions and replaced it
with the content:
127.0.0.0/8 OK
10.0.0.0/8 OK
172.16.0.0/12 OK
192.168.0.0/16 OK
Works. So $mynetworks does not resolve as I expected?
Jul 26 16:53:01 deaugmail02 postfix-amavis/smtpd[1439046]: warning: cidr
map /etc/postfix-amavis/smtpd_client_event_limit_exceptions, line 4: bad
address pattern: "$mynetworks": skipping this rule
Any way to include $mynetworks anyway? Or any other CIDR file?