| |||||||||||||||||||||||||||||||
|
> Hey all, > > Trying to move from hash-based virtual_alias_domains to mysql tables. > Lemme see if I got this right: > > 1. Changed main.cf <http://main.cf> to add: > > virtual_alias_domains > = proxy:mysql:/etc/postfix/mysql-virtual_alias_domains.cf > > 2. Added /etc/postfix/mysql-virtual_alias_domains.cf: > > user = myusername > password = mypassword > dbname = mydbname > query = SELECT domain FROM aliases WHERE original_id > 0 > hosts = 127.0.0.1 <http://127.0.0.1> > Unless your aliases table is empty or has no entries with original_id > 0, that query will always return something, so any and every domain will be considered a virtual alias domain. You should add the domain value into the where clause, unless you want that behavior for some reason. > --------------- > > That warning ("warning: do not list domain incomumdesign.com > <http://incomumdesign.com> in BOTH virtual_alias_domains and > virtual_mailbox_domains ") makes no sense to me, as incomumdesign.com > <http://incomumdesign.com> (the original) is not in the table pointed > to in the virtual_alias_domains config. > >
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com