[postfix/main] Les ipv6 avec [], et correction de l'ordre des vérifs
* On utilise smtpd_client_message_rate_limit=10 pour limiter le nombre d'envois non authentifiés en zone crans, et seulement après on fait le check_policy.
This commit is contained in:
parent
71f3a4427b
commit
7edc5db705
1 changed files with 4 additions and 6 deletions
|
@ -48,7 +48,7 @@ exports = [s.split(' ', 2)[0] for s in commands.getoutput("/usr/sbin/postconf -d
|
|||
# Les différents réseaux
|
||||
local_networks = ["127.0.0.0/8"]
|
||||
adm_networks = ["10.231.136.0/24"]
|
||||
client_networks = ["138.231.136.0/21", "138.231.144.0/21", "138.231.148.0/22", "2a01:240:fe3d:4::/64"]
|
||||
client_networks = ["138.231.136.0/21", "138.231.144.0/21", "138.231.148.0/22", "[2a01:240:fe3d:4::]/64"]
|
||||
|
||||
@# +------------------+
|
||||
@# | Variables utiles |
|
||||
|
@ -238,13 +238,11 @@ if mx:
|
|||
@smtpd_sender_restrictions=reject_unknown_sender_domain
|
||||
@
|
||||
@## Filtrage au RCPT TO
|
||||
@# permet si le client est dans le reseau local
|
||||
@smtpd_recipient_restrictions=permit_mynetworks
|
||||
if main:
|
||||
@# test contre cluebringer pour les quota / rate par utilisateur sasl
|
||||
@smtpd_recipient_restrictions=check_policy_service inet:127.0.0.1:10031
|
||||
@# permet si le client est dans le reseau local
|
||||
@ permit_mynetworks
|
||||
else:
|
||||
@smtpd_recipient_restrictions=permit_mynetworks
|
||||
@ check_policy_service inet:127.0.0.1:10031
|
||||
@# rejette les recipients sans nom de domaine totalement qualifie
|
||||
add("reject_non_fqdn_recipient")
|
||||
if main:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue