Merge branch 'debian'
[hcoop/debian/courier-authlib.git] / authpgsqlrc
index ad1f519..923dcc3 100644 (file)
@@ -1,4 +1,4 @@
-##VERSION: $Id: authpgsqlrc,v 1.12 2004/11/25 15:08:27 mrsam Exp $
+##VERSION: $Id: c6a82fc8c0bd0e858ca7c133640ed14769e3e04c-20160501082012$
 #
 # Copyright 2000-2004 Double Precision, Inc.  See COPYING for
 # distribution information.
 # field value.  Trailing spaces are prohibited.
 
 
-##NAME: LOCATION:0
+##NAME: LOCATION:1
 #
 # The server hostname, port, userid, and password used to log in.
 #
-# To connect to a filesystem socket, delete PGSQL_HOST, and set PGSQL_PORT to
-# the socket's last component.  So, if your pg socket is /tmp/.s.PGSQL.5400
-# set PGSQL_PORT to 5400.
+# See Postgresql's documenation for PQconnectdb(), for other options that
+# you can use here.
 
-PGSQL_HOST             pgsql.example.com
-PGSQL_PORT             5400
-PGSQL_USERNAME         admin
-PGSQL_PASSWORD         admin
-
-
-##NAME: PGSQL_OPT:0
-#
-# PGSQL_OPT specifies the connection debug options to PQsetdbLogin().
-# Don't bother with this setting unless you know what you're doing
-#
-# PGSQL_OPT            
+PGSQL_CONNECTION        \
+          host=pgsql.example.com \
+         port=5400              \
+         user=admin             \
+         password=admin
 
 ##NAME: PGSQL_DATABASE:0
 #
@@ -46,6 +38,13 @@ PGSQL_PASSWORD               admin
 
 PGSQL_DATABASE         template1
 
+##NAME: PGSQL_CHARACTER_SET:0
+#
+# Optionally install a character set mapping. Restart authdaemond, send a test
+# query using authtest and check for error messages in syslog/maillog.
+#
+# PGSQL_CHARACTER_SET  UTF8
+
 ##NAME: PGSQL_USER_TABLE:0
 #
 # The name of the table containing your user data.  See README.authmysqlrc
@@ -132,7 +131,7 @@ PGSQL_NAME_FIELD    name
 ##NAME: PGSQL_QUOTA_FIELD:0
 #
 # Define PGSQL_QUOTA_FIELD to be the name of the field that can optionally
-# specify a maildir quota.  See README.maildirquota for more information 
+# specify a maildir quota.  See README.maildirquota for more information
 #
 # PGSQL_QUOTA_FIELD    quota
 
@@ -251,3 +250,9 @@ PGSQL_NAME_FIELD    name
 #                      WHERE   local_part='$(local_part)'              \
 #                      AND     domain_name='$(domain)'
 #
+
+
+##NAME: MARKER:0
+#
+# Do not remove this section from this configuration file. This section
+# must be present at the end of this file.