postfix/pgsql-virtual_mailbox_maps.cf
branchv0.6.x
changeset 501 f2387d60624b
parent 486 ccdfbbb1bb01
equal deleted inserted replaced
500:5ccc9c6e5193 501:f2387d60624b
     9 
     9 
    10 # The database name on the servers.
    10 # The database name on the servers.
    11 dbname = mailsys
    11 dbname = mailsys
    12 
    12 
    13 # The SQL query template used to search the database
    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_virtual_mailbox_map'.
       
    16 #query = SELECT maildir FROM postfix_maildir WHERE address='%s'
       
    17 
       
    18 # the recommended, function-based template
       
    19 query = SELECT maildir FROM postfix_virtual_mailbox_map('%u', '%d')
    14 query = SELECT maildir FROM postfix_virtual_mailbox_map('%u', '%d')