postfix/pgsql-transport.cf
branchv0.6.x
changeset 490 9cdc6ef83265
parent 489 e0441b07bccc
child 491 320531aa1280
equal deleted inserted replaced
489:e0441b07bccc 490:9cdc6ef83265
     1 # All parameters are described in pgsql_table(5) / PGSQL PARAMETERS
       
     2 #
       
     3 # The hosts that Postfix will try to connect to and query from.
       
     4 hosts = localhost
       
     5 
       
     6 # The user name and password to log into the pgsql server.
       
     7 user = postfix
       
     8 password = some_password
       
     9 
       
    10 # The database name on the servers.
       
    11 dbname = mailsys
       
    12 
       
    13 # The SQL query template used to search the database
       
    14 # Use this VIEW-based template if you didn't create the pgsql function
       
    15 # `postfix_transport_map'.
       
    16 #query = SELECT transport FROM postfix_transport WHERE address='%s'
       
    17 
       
    18 # the recommended, function-based template
       
    19 query = SELECT transport FROM postfix_transport_map('%u', '%d')