|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Bill Weiss (houdini+postfix
clanspum.net)
Date: Mon Sep 10 2007 - 12:16:55 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Cyber Dog(cyberdog3k
gmail.com)
Sun, Sep 09, 2007 at 03:36:09PM -0400:
> I'm using virtual_mailbox_maps to define mail users for several
> domains. I also use virtual_alias_maps to define aliases for those
> users. I would like to be able to alias the postmaster
and abuse
> aliases for all my virtual domains to a single address. The problem
> is, the virtual_alias_maps file doesn't seem to support wildcards like
> you might find in a standard aliases file (eg postmaster
> my
domain.com). Is there a way to accomplish this without defining
> the addresses for every virtual domain manually?
It's not a lot better, but here's what I do:
In main.cf:
virtual_alias_maps = pcre:/etc/postfix/pcre_virt
In pcre_virt:
if /
(mydomain1|
mydomain2|
mydomain3|
etc...
)/x
/^(houdini|root|postmaster|abuse|etc)/ houdini
endif
That list is auto generated by my "add a virtual domain" scripts I've
written that also adds the domain to my virtual_alias_domains file.
I'm sure that someone can tell me what's wrong with this, but it seems to
work.
--
Bill Weiss
In short: Don't build a house of cards and then try to outlaw the wind,
build a house of stone and enjoy the fresh air.
-- Alexander Schreiber, on the Full-Disclosure mailing list
about software
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]