Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] Change main robot domain keep alias
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] Change main robot domain keep alias
- Date: Thu, 24 Oct 2013 11:26:05 +0200
Hi Nuno, Le 22/10/13 13:01, Nuno Marques a
écrit :
address@concealed"> Hello everyone,Yes, provided you handled redirections correctly. The trick with such a setting is to make sure that each mail reaches the main robot. Example: You have one robot with domain a.tld. You want it to accept mails addressed to domain b.tld. Tou must then rewrite addresses in "b.tld' to "a.tld". this way, the addresse "address@concealed" will finally be handled as "address@concealed" and consequently match the Sympa aliases. Using sendmail , I have this configuration: I have this line in sendmail.mc: FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl And this one in /etc/mail/virtusertable: @a.tld a.tld-%1%3 @b.tld a.tld-%1%3 The aliases Sympa generates have the following form: a.tld-mylist: "| /usr/local/sympa/bin/queue address@concealed" a.tld-mylist-request: "| /usr/local/sympa/bin/queue address@concealed" a.tld-mylist-editor: "| /usr/local/sympa/bin/queue address@concealed" a.tld-mylist-unsubscribe: "| /usr/local/sympa/bin/queue address@concealed" a.tld-mylist-owner: "| /usr/local/sympa/bin/bouncequeue address@concealed" So now, if you want to switch, i.e. make b.tld the actual Sympa domain, and a.tld the redirection, all you have to do is: 1- change the Sympa domain in sympa.conf withour restarting 2- change virtusertble to rewrite a.tld.to b.tld: @a.tld b.tld-%1%3 @b.tld b.tld-%1%3 3- change the aliases to replace all occurrences of a.tld to b.tld: b.tld-mylist: "| /usr/local/sympa/bin/queue address@concealed" b.tld-mylist-request: "| /usr/local/sympa/bin/queue address@concealed" b.tld-mylist-editor: "| /usr/local/sympa/bin/queue address@concealed" b.tld-mylist-unsubscribe: "| /usr/local/sympa/bin/queue address@concealed" b.tld-mylist-owner: "| /usr/local/sympa/bin/bouncequeue address@concealed" 4 Restart Sympa and sendmail As both domains are already routed to your Sympa server, this operation should be very quick if you script it. Regards, David address@concealed"> |
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
[sympa-users] Change main robot domain keep alias,
Nuno Marques, 10/22/2013
-
Re: [sympa-users] Change main robot domain keep alias,
David Verdin, 10/24/2013
- Re: [sympa-users] Change main robot domain keep alias, Nuno Marques, 10/24/2013
-
Re: [sympa-users] Change main robot domain keep alias,
David Verdin, 10/24/2013
Archive powered by MHonArc 2.6.19+.