Project

General

Profile

Demande #3974

Créer une règle au niveau du serveur de courriel en vue de POSS 2019

Added by Isabella Vanni 4 months ago. Updated 3 months ago.

Status:
Fermé
Priority:
Urgente
Category:
-
Target version:
Start date:
10/28/2019
Due date:
11/18/2019
% Done:

0%

Estimated time:
Difficulté:
2 Facile

Description

Pour éviter tout spam possible par l'organisation de POSS (ou ses partenaires), il faudrait créer la règle :

jetable-possAAAA+(.*)@april.org ->

qui permettra d'utiliser l'adresse qui est une redirection automatique sur l'alias courriel April.

Il faudra créer la règle suffisamment à l'avance pour avoir le temps de communiquer l'adresse aux bénévoles et pour leur laisser le temps de créer leur badge.

History

#1

Updated by Isabella Vanni 4 months ago

  • Priority changed from Normale to Élevée
#2

Updated by Quentin Gibeaux 3 months ago

première tentative infructueuse :

+# 13/11/2019, QGuLL, pour https://agir.april.org/issues/3974
+jetable-possAAAA+(.*): $1@april.org
+

Résultat :

<jetable-possAAAA+qgibeaux@april.org>: host vip.april.org[195.154.56.24] said:
    550 5.1.1 <jetable-possAAAA+qgibeaux@april.org>: Recipient address
    rejected: User unknown in local recipient table (in reply to RCPT TO
    command)

tu es sûre que ça marche cette syntaxe, tu l'as vue où ?

#3

Updated by Isabella Vanni 3 months ago

  • Priority changed from Élevée to Urgente

Quentin Gibeaux a écrit :

première tentative infructueuse :
[...]

Résultat :
[...]

tu es sûre que ça marche cette syntaxe, tu l'as vue où ?

https://agir.april.org/issues/3466#note-7

#4

Updated by Quentin Gibeaux 3 months ago

Tentative, mais ça marche pas :

(April) root@mail:/etc/postfix[master*$]# git diff
diff --git a/postfix/aliases/april-aliases.db b/postfix/aliases/april-aliases.db
index 1f6b5fb..6e14301 100644
Binary files a/postfix/aliases/april-aliases.db and b/postfix/aliases/april-aliases.db differ
diff --git a/postfix/main.cf b/postfix/main.cf
index 44bbf01..af7b7ac 100644
--- a/postfix/main.cf
+++ b/postfix/main.cf
@@ -6,6 +6,7 @@
 alias_maps = hash:/etc/aliases,
             hash:/etc/postfix/aliases/april-aliases,
             hash:/etc/postfix/aliases/gdtc_admin,
+            regexp:/etc/postfix/aliases/poss.regex,
             hash:/etc/postfix/aliases/gdtc

 alias_database = hash:/etc/aliases
diff --git a/postfix/secondary.cf b/postfix/secondary.cf
index 4507836..2cb99f4 100644
--- a/postfix/secondary.cf
+++ b/postfix/secondary.cf
@@ -6,6 +6,7 @@
 alias_maps = hash:/etc/aliases,
             hash:/etc/postfix/aliases/april-aliases,
             hash:/etc/postfix/aliases/gdtc_admin,
+            regexp:/etc/postfix/aliases/poss.regex,
             hash:/etc/postfix/aliases/gdtc

 alias_database = hash:/etc/aliases
(April) root@mail:/etc/postfix[master*$]# cat /etc/postfix/aliases/poss.regex
# 13/11/2019, QGuLL, pour https://agir.april.org/issues/3974
/^jetable-poss2019-(.*)$/ $1@april.org

On a toujours des retours unknown user:
"jetable-poss2019-qgibeaux"

-> on fait comme avant

#5

Updated by Quentin Gibeaux 3 months ago

  • Assignee set to Quentin Gibeaux
  • Target version changed from Backlog to Novembre 2019
#6

Updated by Vincent-Xavier JUMEL 3 months ago

Dans un fichier /etc/mail/poss :
```
/^poss-(.*)@april.org$/ ${1}@april.org
```
Un coup de postmap :
```
postmap /etc/mail/poss
```
Dans /etc/postfix/main.cf
```
alias_maps = la, liste, des, alias, regexp:/etc/mail/poss
```
Redémarrer postfix (pas sur que ça soit nécessaire, mais ça ne mange pas de pain

Résultat dans les logs :
```
Nov 15 14:54:58 localhost postfix/smtpd11765: connect from unknown[37.164.164.110]
Nov 15 14:54:58 localhost postfix/smtpd11765: Anonymous TLS connection established from unknown[37.164.164.110]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 15 14:55:00 localhost postfix/smtpd11765: 2ADEB13A12C: client=unknown[37.164.164.110], sasl_method=LOGIN, sasl_username=
Nov 15 14:55:00 localhost postfix/cleanup11770: 2ADEB13A12C: message-id=<>
Nov 15 14:55:00 localhost postfix/qmgr11758: 2ADEB13A12C: from=<>, size=922, nrcpt=1 (queue active)
Nov 15 14:55:00 localhost postfix/smtpd11765: disconnect from unknown[37.164.164.110] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Nov 15 14:55:00 localhost postfix/smtp11771: Untrusted TLS connection established to vip.april.org[195.154.56.24]:25: TLSv1.2 with cipher DHE-RSA-CHACHA20-POLY1305 (256/256 bits)
Nov 15 14:55:00 localhost postfix/smtp11771: 2ADEB13A12C: to=<>, orig_to=<>, relay=vip.april.org[195.154.56.24]:25, delay=0.78, delays=0.24/0.01/0.04/0.48, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 69FF3BF3)
Nov 15 14:55:00 localhost postfix/qmgr11758: 2ADEB13A12C: removed
Nov 15 14:55:03 localhost postfix/smtpd11773: connect from vip.april.org[195.154.56.24]
Nov 15 14:55:03 localhost postfix/smtpd11773: Anonymous TLS connection established from vip.april.org[195.154.56.24]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 15 14:55:03 localhost postfix/smtpd11773: 86D8C13A12C: client=vip.april.org[195.154.56.24]
Nov 15 14:55:03 localhost postfix/cleanup11770: 86D8C13A12C: message-id=<>
```

#7

Updated by Isabella Vanni 3 months ago

La règle a donc été créée ? Comment dois-je m'y prendre pour créer les alias ?

#8

Updated by Quentin Gibeaux 3 months ago

Vincent-Xavier JUMEL a écrit :

Dans un fichier /etc/mail/poss :
```
/^poss-(.*)@april.org$/ ${1}@april.org
```
Un coup de postmap :
```
postmap /etc/mail/poss
```
Dans /etc/postfix/main.cf
```
alias_maps = la, liste, des, alias, regexp:/etc/mail/poss
```
Redémarrer postfix (pas sur que ça soit nécessaire, mais ça ne mange pas de pain

Résultat dans les logs :
```
Nov 15 14:54:58 localhost postfix/smtpd11765: connect from unknown[37.164.164.110]
Nov 15 14:54:58 localhost postfix/smtpd11765: Anonymous TLS connection established from unknown[37.164.164.110]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 15 14:55:00 localhost postfix/smtpd11765: 2ADEB13A12C: client=unknown[37.164.164.110], sasl_method=LOGIN, sasl_username=
Nov 15 14:55:00 localhost postfix/cleanup11770: 2ADEB13A12C: message-id=<>
Nov 15 14:55:00 localhost postfix/qmgr11758: 2ADEB13A12C: from=<>, size=922, nrcpt=1 (queue active)
Nov 15 14:55:00 localhost postfix/smtpd11765: disconnect from unknown[37.164.164.110] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Nov 15 14:55:00 localhost postfix/smtp11771: Untrusted TLS connection established to vip.april.org[195.154.56.24]:25: TLSv1.2 with cipher DHE-RSA-CHACHA20-POLY1305 (256/256 bits)
Nov 15 14:55:00 localhost postfix/smtp11771: 2ADEB13A12C: to=<>, orig_to=<>, relay=vip.april.org[195.154.56.24]:25, delay=0.78, delays=0.24/0.01/0.04/0.48, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 69FF3BF3)
Nov 15 14:55:00 localhost postfix/qmgr11758: 2ADEB13A12C: removed
Nov 15 14:55:03 localhost postfix/smtpd11773: connect from vip.april.org[195.154.56.24]
Nov 15 14:55:03 localhost postfix/smtpd11773: Anonymous TLS connection established from vip.april.org[195.154.56.24]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 15 14:55:03 localhost postfix/smtpd11773: 86D8C13A12C: client=vip.april.org[195.154.56.24]
Nov 15 14:55:03 localhost postfix/cleanup11770: 86D8C13A12C: message-id=<>
```

ça marche pas sur mail.cluster.april.org

#9

Updated by Quentin Gibeaux 3 months ago

  • Status changed from Nouveau to Résolu

Préempté par #4033

#10

Updated by Quentin Gibeaux 3 months ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF