Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Virtual robots and aliases in Postfix
- From: Anders Lund <address@concealed>
- To: address@concealed
- Subject: [sympa-users] Virtual robots and aliases in Postfix
- Date: Thu, 03 Nov 2005 14:02:17 +0100
Hi,
I have a problem I would like to have comments on if anyone else has a
good solution:
Running Posfix 2.1.5 (Debian Stable 3.1) and Sympa 5.1.2 compiled from
source. I have set up Postfix to handle domain1 as my primary domain
("mydestination" in Postfix) and other domains (domain2 and domain3) as
"virtual_alias_domains" in Postfix.
I have
alias_database = hash:/etc/aliases
hash:/etc/sympa/sympa_aliases
alias_maps = hash:/etc/aliases
hash:/etc/sympa/sympa_aliases
listed in Postfix, and Sympa can update "sympa_aliases" using the
"alias_manager.pl" script.
I also have
virtual_alias_maps = hash:/etc/postfix/maps/virtual_alias,
regexp:/etc/postfix/maps/virtual_sympa_regexp
and added
/^(.*)@domain2$/ domain2-$1
/^(.*)@domain3$/ domain3-$1
to "virtual_sympa_regexp".
Now my problem: When sending something to "bogusname@domain2" I hit the
regexp in "virtual_sympa_regexp" and the mail is accepted by Postfix
even though "bogusname" is not defined in my "sympa_aliases" file. Later
I get a "Undelivered Mail Returned to Sender" from Postfix telling me that
<domain2-bogusname@domain1>: unknown user: "domain2-bogusname"
What I would really like is to get directly a SMTP 550 error message
when trying to do a RCPT TO to this address. Like I do when I try to
send to "bogusname@domain1":
550 <bogusname@domain1>: Recipient address rejected: User unknown in
local recipient table
Anyone with a good solution to this problem? Perhaps it is more of a
Postfix configuration problem and not directly related to Sympa, but it
would be nice to have comments...
- Anders
--
Anders Lund <address@concealed> .~.
UNINETT, N-7465 Trondheim, Norway / V \
Phone: +47 73 55 79 08 | Fax: +47 73 55 79 01 /( )\
^ ^
-
[sympa-users] Virtual robots and aliases in Postfix,
Anders Lund, 11/03/2005
-
Re: [sympa-users] Virtual robots and aliases in Postfix,
Anders Lund, 11/03/2005
- Re: [sympa-users] Virtual robots and aliases in Postfix, Anders Lund, 11/04/2005
-
Re: [sympa-users] Virtual robots and aliases in Postfix,
Anders Lund, 11/03/2005
Archive powered by MHonArc 2.6.19+.