* Lars Täuber <taeu...@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 > ab...@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 > »ab...@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.hildebra...@charite.de | http://www.charite.de