postfix/pgsql-transport.cf
branchv0.6.x
changeset 486 ccdfbbb1bb01
parent 159 78b6b06188d3
--- a/postfix/pgsql-transport.cf	Mon Dec 05 12:34:29 2011 +0000
+++ b/postfix/pgsql-transport.cf	Mon Dec 05 16:17:01 2011 +0000
@@ -11,4 +11,9 @@
 dbname = mailsys
 
 # The SQL query template used to search the database
-query = SELECT transport FROM postfix_transport WHERE address='%s'
+# Use this VIEW-based template if you didn't create the pgsql function
+# `postfix_transport_map'.
+#query = SELECT transport FROM postfix_transport WHERE address='%s'
+
+# the recommended, function-based template
+query = SELECT transport FROM postfix_transport_map('%u', '%d')