Page MenuHomeDevCentral

Prepare a configuration for Postfix mail aliases
Open, NormalPublic

Description

We followed https://tribut.de/blog/sympa-and-postfix/ with the updated version for Sympa 6.2 ready at https://github.com/mundschenk-at/sympa-postfix-virtual for alias_manager.pl.

It produces the following file for the two first mailing lists created at Nasqueron:

1# add a line like this for all domains sympa should receive mails on
2# the right-hand content ("xxx") is ignored but necessary
3/^lists.\nasqueron\.org$/ xxx
4/^lists.\ook\.space$/ xxx
5# default contact emails
6/^(postmaster|sympa-request|sympa-owner)\@.*$/ listmaster@lists.nasqueron.org.
7# sympa user interaction and VERP management
8/^(sympa|listmaster)\@lists.\nasqueron\.org$/ $1+lists.nasqueron.org@sympalist.
9/^(bounce\+.*|abuse-feedback-report)\@lists.\nasqueron\.org$/ sympa+lists.nasqueron.org@sympabounce.
10#------------------------------ reflexion-plurielles: list alias created 21 Jan 2017
11reflexion-plurielles: "| /var/lib/sympa/bin/queue reflexion-plurielles@lists.nasqueron.org"
12reflexion-plurielles-request: "| /var/lib/sympa/bin/queue reflexion-plurielles-request@lists.nasqueron.org"
13reflexion-plurielles-editor: "| /var/lib/sympa/bin/queue reflexion-plurielles-editor@lists.nasqueron.org"
14#reflexion-plurielles-subscribe: "| /var/lib/sympa/bin/queue reflexion-plurielles-subscribe@lists.nasqueron.org"
15reflexion-plurielles-unsubscribe: "| /var/lib/sympa/bin/queue reflexion-plurielles-unsubscribe@lists.nasqueron.org"
16reflexion-plurielles-owner: "| /var/lib/sympa/bin/bouncequeue reflexion-plurielles@lists.nasqueron.org"
17#------------------------------ ops: list alias created 21 Jan 2017
18ops: "| /var/lib/sympa/bin/queue ops@lists.nasqueron.org"
19ops-request: "| /var/lib/sympa/bin/queue ops-request@lists.nasqueron.org"
20ops-editor: "| /var/lib/sympa/bin/queue ops-editor@lists.nasqueron.org"
21#ops-subscribe: "| /var/lib/sympa/bin/queue ops-subscribe@lists.nasqueron.org"
22ops-unsubscribe: "| /var/lib/sympa/bin/queue ops-unsubscribe@lists.nasqueron.org"
23ops-owner: "| /var/lib/sympa/bin/bouncequeue ops@lists.nasqueron.org"

When a mail has reached ops@, Postfix raised the following errors :

Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 11: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 12: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 14: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 15: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 17: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 18: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 19: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 21: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 22: ignoring unrecognized request
Jan 21 16:41:05 mail.nasqueron.org postfix/smtpd[25743]: warning: regexp map /etc/sympa/sympa-alias.virtual, line 23: ignoring unrecognized request