* 'pgsql-transport.cf'
- fixed query
* 'pgsql-smtpd_sender_login_maps.cf'
- added missing ' at end of query
# The hosts that Postfix will try to connect to
hosts = host1.some.domain host2.some.domain
# The user name and password to log into the pgsql server.
user = postfix
password = some_password
# The database name on the servers.
dbname = mailsys
# Postfix 2.2 and later The SQL query template. See pgsql_table(5).
query = SELECT address FROM postfix_maildir WHERE address='%s'
UNION SELECT destination FROM postfix_alias WHERE address='%s'