Subject: The mailing list for listmasters using Sympa
List archive
- From: Liam Kirsher <address@concealed>
- To: address@concealed, address@concealed
- Subject: Re: [sympa-users] postfix virtual aliases problem
- Date: Tue, 25 Jul 2006 04:15:38 -0700
Hi, Balazs,
I have it set up like this:
/etc/postfix/virtual.regexp:
/^lists\.virtualdomain.org$/ xxx
/^(postmaster|root|abuse|sympa-request)@lists\.virtualdomain\.org$/ $address@concealed
/^(list1|list2|list3|listN)-(request|editor|owner|subscribe|unsubscribe)@lists\.virtualdomain\.org$/ virtualdomain-$2+$1
# and this:
/^(list1|list2|list3|listN)@lists\.virtualdomain\.org$/ virtualdomain+$1
# _OR_ this:
/^(.*)virtualdomain\.org$/ $1-virtualdomain\.org
I named the lists explicitly because I was getting so much spam, as, for example, "address@concealed" and wanted to deny it at as early a stage as possible, before sympa generates a reply, which then bounces, etc.
The /^(.*).../ syntax *is* convenient because it will rewrite for any list, but I found it caused problems with spam, so now, when I want to add a list, I add an explicit alias by hand to the virtual.regexp file. In my situation that is not a problem.
This rewriting assumes that you have the following block of aliases for each virtualdomain in /etc/postfix/aliases:
virtualdomain: "| /home/sympa/bin/queue $address@concealed"
virtualdomain-request: "| /home/sympa/bin/queue $address@concealed"
virtualdomain-editor: "| /home/sympa/bin/queue $address@concealed"
virtualdomain-owner: "| /home/sympa/bin/bouncequeue $address@concealed"
virtualdomain-subscribe: "| /home/sympa/bin/queue $address@concealed"
virtualdomain-unsubscribe: "| /home/sympa/bin/queue $address@concealed"
Remember to run "postfix reload" after you make changes to the virtual.regexp file.
The syntax
/^(.*)visionhost\.hu$/ ${1}-visionhost.hu
in which you have escaped the '.' character is more precisely correct, imo, but in practice either one will work.
In the examples above, I don't use the {brackets} around numeric substitution variables, but it doesn't matter.
I have to add an entry to main.cf -> virtual_aliases_maps = regexp:/etc/postfix/virtual.regexpYes.
All of these postfix configurations don't have anything to do with storing user addresses in mysql.
Liam
At 11:10 AM 7/25/2006 +0200, you wrote:
Hi sympa Listmasters!
I am configuring sympa-5.2.1 now, but i don't understand what i must to set up if i use postfix with mysql
(everyone stored in mysql database)
I find that in README.postfix:
2- Virtual domains management
If you manage virtual robots with Sympa, then with Postfix, add an entry to your /etc/postfix/virtual.regexp :
/^(.*)my\.domain\.fr$/ ${1}-my.domain.fr
Entries in the 'aliases' file will look like this :
sympa-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"
.....
listA-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"
This way you don't need to run 'postmap' everytime you create a list
Is this say that:
I have to add an entry to main.cf -> virtual_aliases_maps = regexp:/etc/postfix/virtual.regexp
And I have to add an entry to /etc/postfix/virtual.regexp:
/^(.*)visionhost.hu$/ ${1}-visionhost.hu
Or
/^(.*)visionhost\.hu$/ ${1}-visionhost.hu
?
Sincerely
Balazs IVANCSIK
At 11:10 AM 7/25/2006 +0200, address@concealed wrote:
Hi sympa Listmasters!
I am configuring sympa-5.2.1 now, but i don't understand what i must to set up if i use postfix with mysql
(everyone stored in mysql database)
I find that in README.postfix:
2- Virtual domains management
If you manage virtual robots with Sympa, then with Postfix, add an entry to your /etc/postfix/virtual.regexp :
/^(.*)my\.domain\.fr$/ ${1}-my.domain.fr
Entries in the 'aliases' file will look like this :
sympa-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"
.....
listA-my.domain.fr: "|/home/sympa/bin/sympa.pl address@concealed"
This way you don't need to run 'postmap' everytime you create a list
Is this say that:
I have to add an entry to main.cf -> virtual_aliases_maps = regexp:/etc/postfix/virtual.regexp
And I have to add an entry to /etc/postfix/virtual.regexp:
/^(.*)visionhost.hu$/ ${1}-visionhost.hu
Or
/^(.*)visionhost\.hu$/ ${1}-visionhost.hu
?
Sincerely
Balazs IVANCSIK
Liam Kirsher <liamk/AT/numenet/DOT/com>
415-456-4420
415-438-0384 (cell)
PGP: http://liam.numenet.com/pgp/
-
[sympa-users] postfix virtual aliases problem,
Ivancsik Balazs, 07/25/2006
- <Possible follow-up(s)>
-
[sympa-users] postfix virtual aliases problem,
felipe, 07/25/2006
- Re: [sympa-users] postfix virtual aliases problem, Liam Kirsher, 07/25/2006
- Re: [sympa-users] postfix virtual aliases problem, felipe, 07/25/2006
- Re: [sympa-users] postfix virtual aliases problem, Liam Kirsher, 07/25/2006
-
Re: [sympa-users] postfix virtual aliases problem,
Liam Kirsher, 07/26/2006
-
Message not available
-
Message not available
- Re: [sympa-users] postfix virtual aliases problem, Liam Kirsher, 07/26/2006
-
Message not available
-
Message not available
Archive powered by MHonArc 2.6.19+.