From d99ecb7731438a538cc1c65a582f17a6d9391708 Mon Sep 17 00:00:00 2001
From: Wietse Venema
The "sasl_*" attributes specify information about how - the client was authenticated via SASL.
- +The "sasl_*" attributes (Postfix 2.2 and later) specify + information about how the client was authenticated via SASL. +
+ +The "ccert_*" attributes (Postfix 2.2 and later) specify + information about how the client was authenticated via TLS. +
+The following is specific to SMTPD delegated policy requests: @@ -146,10 +151,6 @@ size=12345 the Postfix SMTP server makes an OK/REJECT/HOLD/etc. decision.
-The "ccert_*" attributes specify information from the - client TLS certificate. This information is presented only - if the client certificate was successfully verified.
-The policy server replies with any action that is allowed in a diff --git a/postfix/proto/SMTPD_POLICY_README.html b/postfix/proto/SMTPD_POLICY_README.html index 4c7315a3d..dade4b8fc 100644 --- a/postfix/proto/SMTPD_POLICY_README.html +++ b/postfix/proto/SMTPD_POLICY_README.html @@ -128,9 +128,14 @@ size=12345 command.
-The "sasl_*" attributes specify information about how - the client was authenticated via SASL.
- +The "sasl_*" attributes (Postfix 2.2 and later) specify + information about how the client was authenticated via SASL. +
+ +The "ccert_*" attributes (Postfix 2.2 and later) specify + information about how the client was authenticated via TLS. +
+The following is specific to SMTPD delegated policy requests: @@ -146,10 +151,6 @@ size=12345 the Postfix SMTP server makes an OK/REJECT/HOLD/etc. decision.
-The "ccert_*" attributes specify information from the - client TLS certificate. This information is presented only - if the client certificate was successfully verified.
-The policy server replies with any action that is allowed in a diff --git a/postfix/src/global/mail_version.h b/postfix/src/global/mail_version.h index 2c0bc7fb7..27ffbbc08 100644 --- a/postfix/src/global/mail_version.h +++ b/postfix/src/global/mail_version.h @@ -20,7 +20,7 @@ * Patches change the patchlevel and the release date. Snapshots change the * release date only. */ -#define MAIL_RELEASE_DATE "20050313" +#define MAIL_RELEASE_DATE "20050314" #define MAIL_VERSION_NUMBER "2.3" #define VAR_MAIL_VERSION "mail_version" diff --git a/postfix/src/postalias/postalias.c b/postfix/src/postalias/postalias.c index a29b4e75f..2fa055b11 100644 --- a/postfix/src/postalias/postalias.c +++ b/postfix/src/postalias/postalias.c @@ -582,7 +582,7 @@ static void postalias_seq(const char *map_type, const char *map_name) static NORETURN usage(char *myname) { - msg_fatal("usage: %s [-Nfinorvw] [-c config_dir] [-d key] [-q key] [map_type:]file...", + msg_fatal("usage: %s [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file...", myname); } diff --git a/postfix/src/postmap/postmap.c b/postfix/src/postmap/postmap.c index a033a02f5..ef6ebcda6 100644 --- a/postfix/src/postmap/postmap.c +++ b/postfix/src/postmap/postmap.c @@ -529,7 +529,7 @@ static void postmap_seq(const char *map_type, const char *map_name) static NORETURN usage(char *myname) { - msg_fatal("usage: %s [-Nfinorvw] [-c config_dir] [-d key] [-q key] [map_type:]file...", + msg_fatal("usage: %s [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] [map_type:]file...", myname); } diff --git a/postfix/src/util/dict_db.c b/postfix/src/util/dict_db.c index cf0bbefb3..4acf9224e 100644 --- a/postfix/src/util/dict_db.c +++ b/postfix/src/util/dict_db.c @@ -89,6 +89,12 @@ #define DONT_CLOBBER DB_NOOVERWRITE #endif +#if (DB_VERSION_MAJOR == 2 && DB_VERSION_MINOR < 6) +#define DICT_DB_CURSOR(db, curs) (db)->cursor((db), NULL, (curs)) +#else +#define DICT_DB_CURSOR(db, curs) (db)->cursor((db), NULL, (curs), 0); +#endif + #ifndef DB_FCNTL_LOCKING #define DB_FCNTL_LOCKING 0 #endif @@ -400,7 +406,7 @@ static int dict_db_sequence(DICT *dict, int function, switch (function) { case DICT_SEQ_FUN_FIRST: if (dict_db->cursor == 0) - db->cursor(db, NULL, &(dict_db->cursor), 0); + DICT_DB_CURSOR(db, &(dict_db->cursor)); db_function = DB_FIRST; break; case DICT_SEQ_FUN_NEXT: