[mailman3] Update postfix configuration of Redisdead
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
81ded3ea46
commit
79ae6fa60a
|
@ -20,21 +20,12 @@ mynetworks = 127.0.0.0/8, [::1]/128
|
||||||
# Destinations acceptees
|
# Destinations acceptees
|
||||||
mydestination = {{ ansible_hostname }}, $myhostname, localhost, localhost.$mydomain
|
mydestination = {{ ansible_hostname }}, $myhostname, localhost, localhost.$mydomain
|
||||||
{% if postfix.primary or not postfix.secondary %}
|
{% if postfix.primary or not postfix.secondary %}
|
||||||
$mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu
|
$mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu, lists.crans.org
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Domaine relaye par ce MX
|
# Domaine relaye par ce MX
|
||||||
relay_domains = $mydestination
|
relay_domains = $mydestination
|
||||||
{% if postfix.mailman or postfix.public %}
|
|
||||||
lists.$mydomain
|
|
||||||
{% endif %}
|
|
||||||
{% if postfix.secondary %}
|
{% if postfix.secondary %}
|
||||||
$mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu
|
$mydomain, crans.ens-cachan.fr, clubs.ens-cachan.fr, install-party.ens-cachan.fr, crans.fr, crans.eu, lists.crans.org
|
||||||
{% endif %}
|
|
||||||
{% if postfix.mailman %}
|
|
||||||
relay_recipient_maps =
|
|
||||||
hash:/var/local/re2o-services/mail-server/generated/virtual
|
|
||||||
hash:/var/lib/mailman/data/virtual-mailman
|
|
||||||
mailman_destination_recipient_limit = 1
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
# Etre notifie ou non de l'arrive de nouveaux mails
|
# Etre notifie ou non de l'arrive de nouveaux mails
|
||||||
{% if postfix.primary or postfix.secondary %}
|
{% if postfix.primary or postfix.secondary %}
|
||||||
|
@ -48,7 +39,6 @@ biff = yes
|
||||||
# il faut enlever ca.
|
# il faut enlever ca.
|
||||||
soft_bounce = no
|
soft_bounce = no
|
||||||
|
|
||||||
smtpd_reject_unlisted_sender = yes
|
|
||||||
{% if not postfix.primary and not postfix.secondary %}
|
{% if not postfix.primary and not postfix.secondary %}
|
||||||
# On delivre dans des maildir
|
# On delivre dans des maildir
|
||||||
mail_spool_directory = /home/mail/
|
mail_spool_directory = /home/mail/
|
||||||
|
@ -151,6 +141,7 @@ smtpd_sender_restrictions = permit_mynetworks
|
||||||
{% endif %}
|
{% endif %}
|
||||||
reject_non_fqdn_sender
|
reject_non_fqdn_sender
|
||||||
reject_unknown_sender_domain
|
reject_unknown_sender_domain
|
||||||
|
reject_unlisted_sender
|
||||||
|
|
||||||
## Dit à postfix de jeter toute socket vers un serveur de policy après une
|
## Dit à postfix de jeter toute socket vers un serveur de policy après une
|
||||||
## utilisation. Il en recrée donc une nouvelle, ce qui permet d'éviter
|
## utilisation. Il en recrée donc une nouvelle, ce qui permet d'éviter
|
||||||
|
|
|
@ -140,8 +140,3 @@ scalemail-backend unix - n n - 2 pipe
|
||||||
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store $${nexthop} $${user} $${extension}
|
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store $${nexthop} $${user} $${extension}
|
||||||
# only used by postfix-tls
|
# only used by postfix-tls
|
||||||
tlsmgr unix - - n 300 1 tlsmgr
|
tlsmgr unix - - n 300 1 tlsmgr
|
||||||
{% if postfix.mailman %}
|
|
||||||
mailman unix - n n - - pipe
|
|
||||||
flags=FR user=list
|
|
||||||
argv=/var/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
|
|
||||||
{% endif %}
|
|
||||||
|
|
|
@ -2,10 +2,8 @@
|
||||||
# Transport des mails
|
# Transport des mails
|
||||||
|
|
||||||
{% if postfix.mailman %}
|
{% if postfix.mailman %}
|
||||||
# Les mailing-listes sont delivrees localement
|
# Les mailing-listes sont delivrees sur un serveur à part
|
||||||
lists.crans.org mailman:
|
lists.crans.org smtp:[{{ query('ldap', 'ip', 'mailman', 'adm') | ipv4 | first }}]
|
||||||
{% else %}
|
|
||||||
lists.crans.org smtp:[lists.adm.crans.org]
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if postfix.primary or postfix.secondary %}
|
{% if postfix.primary or postfix.secondary %}
|
||||||
# C'est le serveur des adherents qui fait les livraisons des
|
# C'est le serveur des adherents qui fait les livraisons des
|
||||||
|
|
Loading…
Reference in New Issue