Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Catch all (really: all) and exception

63 views
Skip to first unread message

volker...@gmail.com

unread,
May 1, 2019, 4:17:56 PM5/1/19
to
Hi,

I want to have a testing system where I want all emails, sent to, sent from and sent internally are delivered to one specific local address - except a handfull recepients on the system, that shall be aliased to another box.

I tried to do this with virtual_alias_maps in main.cf

virtual_alias_maps = regexp:/etc/postfix/virtual

and

/etc/postfix/virtual:


/.+@dev\.example\.com$/ box1
/.+@rball\.example$/ box1
/.+@.+/ catchall


postmap -q gives me the correct result, but in "real usage" postfix sends all mails always to catchall ... if I remove catchall or limit this regex to something else, it's working, but unfortunately this is no option on this kind of test environment.

Can anyone help me?

Thanks and kind regards
Volker
0 new messages