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

two different virtual_alias_maps

11 views
Skip to first unread message

Bartosz

unread,
Aug 10, 2012, 6:52:37 AM8/10/12
to
I would like to have two different virtual_alias_maps.
One on 25 smtp port - for servers, and second on 465 and 567 ports for clients.
So when I receive email for example from som...@not-my-domain.com it should hits:
virtual_alias_maps=proxy:mysql:/etc/postfix/mysql_virtual_alias_from_outside_maps.cf
query = SELECT gotofromoutside FROM alias WHERE address='%s'

And when I receive email from local users for example from som...@my-domain.com it should hits:
virtual_alias_maps=proxy:mysql:/etc/postfix/mysql_virtual_alias.cf
query = SELECT goto FROM alias WHERE address='%s'

In main.cf I have:
virtual_alias_maps=proxy:mysql:/etc/postfix/mysql_virtual_alias.cf

and in master.cf I tried to place override virtual_alias_maps for 25 port:

smtp inet n - - - - smtpd
-o smtpd_sasl_auth_enable=no
-o content_filter=smtp-amavis:[127.0.0.1]:10024
-o virtual_alias_maps=proxy:mysql:/etc/postfix/mysql_virtual_alias_from_outside_maps.cf

But unfortunately it wont work.
Any ideas?
Bartosz.
-
Pozdrawiam
Bartosz
0 new messages