| Main Archive Page > Month Archives > postfix-users archives |
* Lars Täuber <taeuber@bbaw.de>:
> Hi list,
>
> is it somehow possible to limit the lookup for aliases in
> virtual_alias_maps to domains the postfix system is responsible for?
>
> The problem:
> I want »abuse@...« to be aliased to »postmaster« for every domain the system
> is configured for. (virtual_mailbox_domains)
>
> Therefore I've done this:
> virtual_alias_maps = regexp:/etc/postfix/virtual_aliases
>
> /etc/postfix/virtual_aliased:
> /^abuse@.*/ postmaster
Equivalent to:
^abuse@/ postmaster
or
abuse@ postmaster
without pcre
> but this aliases also mails that are sent from the local system to
> abuse@foreign.domain.org.
Yes.
> How can I avoid to add an alias for every new domain I configure?
You can't.
> It would be nice to only add the domain to virtual_mailbox_domain and the
> »abuse@new-domain.org« being automatically accepted and aliased to postmaster.
> I'm sure to forget to add this alias the next time I add a domain.
Maybe a script could help?
-- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebrandt_at_charite.de | http://www.charite.de