user = <%= $mailuser %>
password = <%= $mailuserpass %>
hosts = 127.0.0.1
dbname = <%= $mailserver %>
query = select name from <%= $virtual_users %> where id=(select target_id from <%= $virtual_aliases %> where concat("@",(select name from <%= $virtual_domains %> where id=domain_id))='%s');

user = <%= $mailuser %>
password = <%= $mailuserpass %>
hosts = 127.0.0.1
dbname = <%= $mailserver %>
query = select name from <%= $virtual_users %> where id=(select target_id from <%= $virtual_aliases %> where concat(source,"@",(select name from <%= $virtual_domains %> where id=domain_id))='%s' order by id asc limit 1);

Fix issue with multiple aliases
Fix issue with multiple aliases
