diff -r c0e1fb1b0145 -r a4aead244f75 postfix/pgsql-virtual_mailbox_maps.cf --- a/postfix/pgsql-virtual_mailbox_maps.cf Mon Nov 07 03:22:15 2011 +0000 +++ b/postfix/pgsql-virtual_mailbox_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 maildir FROM postfix_maildir WHERE address='%s' +query = SELECT maildir FROM postfix_virtual_mailbox_map('%u', '%d')