On stabilise le plugin Python en virant toute occurrence de print.
* Désolé. \o/
This commit is contained in:
parent
2c27a030ee
commit
4b36a51d99
102 changed files with 513 additions and 703 deletions
|
@ -65,11 +65,11 @@ else:
|
|||
@# Reseaux locaux
|
||||
%mynetworks local_networks
|
||||
if mx and not users:
|
||||
out(" " + tostring(client_networks + adm_networks) + "\n")
|
||||
out(" " + tostring(client_networks + adm_networks))
|
||||
elif users:
|
||||
out(" " + tostring(adm_networks) + "\n")
|
||||
out(" " + tostring(adm_networks))
|
||||
elif tracker:
|
||||
out(" " + tostring(adm_networks) + "\n")
|
||||
out(" " + tostring(adm_networks))
|
||||
|
||||
if not mx:
|
||||
if tracker or corbeau:
|
||||
|
@ -83,16 +83,16 @@ if mx:
|
|||
@# Destinations acceptees
|
||||
%mydestination [hostname, "$myhostname", "localhost", "localhost.$mydomain"]
|
||||
if main or users:
|
||||
out(" " + tostring(["$mydomain", "crans.ens-cachan.fr", "clubs.ens-cachan.fr", "install-party.ens-cachan.fr"]) + "\n")
|
||||
out(" " + tostring(["$mydomain", "crans.ens-cachan.fr", "clubs.ens-cachan.fr", "install-party.ens-cachan.fr"]))
|
||||
if manage_ml:
|
||||
out(" " + tostring(["lists.$mydomain"]) + "\n")
|
||||
out(" " + tostring(["lists.$mydomain"]))
|
||||
|
||||
@# Domaine relaye par ce MX
|
||||
@relay_domains = $mydestination
|
||||
if secondary:
|
||||
out(" " + tostring(["$mydomain", "crans.ens-cachan.fr", "clubs.ens-cachan.fr", "install-party.ens-cachan.fr"]) + "\n")
|
||||
out(" " + tostring(["$mydomain", "crans.ens-cachan.fr", "clubs.ens-cachan.fr", "install-party.ens-cachan.fr"]))
|
||||
if public and not manage_ml:
|
||||
out(" " + tostring(["lists.$mydomain"]) + "\n")
|
||||
out(" " + tostring(["lists.$mydomain"]))
|
||||
|
||||
if not mx:
|
||||
if tracker:
|
||||
|
@ -154,7 +154,7 @@ if manage_ml:
|
|||
# Pour les non-mx il n'y a plus rien d'interessant
|
||||
if mx:
|
||||
@# Plus les alias dans la base de donnees
|
||||
out(" " + tostring(db_file("search")) + "\n")
|
||||
out(" " + tostring(db_file("search")))
|
||||
@# On prend aussi en compte les utilisateurs de /etc/passwd
|
||||
@local_recipient_maps = $alias_maps unix:passwd.byname
|
||||
@# Les anciennes ML @crans.org, @crans.ens-cachan.fr -> @lists.crans.org
|
||||
|
@ -213,7 +213,7 @@ if mx:
|
|||
@# On n'ignore que les messages venant d'adresses "protégées"
|
||||
@smtpd_client_event_limit_exceptions = local_networks
|
||||
if mx:
|
||||
out(" " + tostring(adm_networks) + "\n")
|
||||
out(" " + tostring(adm_networks))
|
||||
@
|
||||
@# On limite à 10 messages par minute
|
||||
@smtpd_client_message_rate_limit = 10
|
||||
|
@ -241,7 +241,7 @@ if mx:
|
|||
if public:
|
||||
@# accepte si le champ contourneGreylist de la base est a OK
|
||||
@ permit_sasl_authenticated
|
||||
out(" check_recipient_access " + tostring(db_file("sqlgrey")) + "\n")
|
||||
out(" check_recipient_access " + tostring(db_file("sqlgrey")))
|
||||
@# accepte si la greylist est d'accord
|
||||
@ check_policy_service inet:127.0.0.1:2501
|
||||
@# jette le reste
|
||||
|
@ -273,7 +273,7 @@ if mx:
|
|||
@# +----------------------+
|
||||
@#POUR SECOURS
|
||||
if not has("rescue-mode"):
|
||||
out("#")
|
||||
_out("#")
|
||||
@relayhost = [ovh.adm.crans.org]:25
|
||||
|
||||
if has("titanic"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue