diff -r c0e1fb1b0145 -r a4aead244f75 postfix/pgsql-virtual_alias_maps.cf --- a/postfix/pgsql-virtual_alias_maps.cf Mon Nov 07 03:22:15 2011 +0000 +++ b/postfix/pgsql-virtual_alias_maps.cf Thu Jun 28 19:26:50 2012 +0000 @@ -11,4 +11,4 @@ dbname = mailsys # The SQL query template used to search the database -query = SELECT destination FROM postfix_alias WHERE address='%s' +query = SELECT destination FROM postfix_virtual_alias_map('%u', '%d')