mirror of
https://github.com/vdukhovni/postfix
synced 2025-09-01 06:35:27 +00:00
postfix-2.2-20041013
This commit is contained in:
committed by
Viktor Dukhovni
parent
bcb028b46d
commit
b8f5dd1f42
@@ -9760,7 +9760,7 @@ Apologies for any names omitted.
|
|||||||
Santi. Files: deliver_pass.c, deliver_request.c,
|
Santi. Files: deliver_pass.c, deliver_request.c,
|
||||||
qmgr_deliver.c, qmgr_message.c, pipe.c, smtpd.c.
|
qmgr_deliver.c, qmgr_message.c, pipe.c, smtpd.c.
|
||||||
|
|
||||||
20041010
|
20041009
|
||||||
|
|
||||||
Feature: per SMTP client message rate limit and recipient
|
Feature: per SMTP client message rate limit and recipient
|
||||||
rate limit, by Ragnar Lonn, GHN network technologies.
|
rate limit, by Ragnar Lonn, GHN network technologies.
|
||||||
@@ -9770,6 +9770,10 @@ Apologies for any names omitted.
|
|||||||
renamed to smtpd_client_event_limit_exceptions, because it
|
renamed to smtpd_client_event_limit_exceptions, because it
|
||||||
now also controls message and recipient rate limit control.
|
now also controls message and recipient rate limit control.
|
||||||
|
|
||||||
|
20041013
|
||||||
|
|
||||||
|
Portability: AIX 5.1/GCC.
|
||||||
|
|
||||||
Open problems:
|
Open problems:
|
||||||
|
|
||||||
Low: should the Delivered-To: test in local(8) be configurable?
|
Low: should the Delivered-To: test in local(8) be configurable?
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
ANVIL(8) ANVIL(8)
|
ANVIL(8) ANVIL(8)
|
||||||
|
|
||||||
<b>NAME</b>
|
<b>NAME</b>
|
||||||
anvil - Postfix client count and request rate management
|
anvil - Postfix per-client count and rate control
|
||||||
|
|
||||||
<b>SYNOPSIS</b>
|
<b>SYNOPSIS</b>
|
||||||
<b>anvil</b> [generic Postfix daemon options]
|
<b>anvil</b> [generic Postfix daemon options]
|
||||||
|
@@ -171,7 +171,7 @@ case "$SYSTEM.$RELEASE" in
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
AIX.*) case "`uname -v`" in
|
AIX.*) case "`uname -v`" in
|
||||||
5) SYSTYPE=AIX4
|
5) SYSTYPE=AIX5
|
||||||
case "$CC" in
|
case "$CC" in
|
||||||
cc|*/cc|xlc|*/xlc) CCARGS="$CCARGS -w -blibpath:/usr/lib:/lib:/usr/local/lib";;
|
cc|*/cc|xlc|*/xlc) CCARGS="$CCARGS -w -blibpath:/usr/lib:/lib:/usr/local/lib";;
|
||||||
esac
|
esac
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
.SH NAME
|
.SH NAME
|
||||||
anvil
|
anvil
|
||||||
\-
|
\-
|
||||||
Postfix client count and request rate management
|
Postfix per-client count and rate control
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.na
|
.na
|
||||||
.nf
|
.nf
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
/* NAME
|
/* NAME
|
||||||
/* anvil 8
|
/* anvil 8
|
||||||
/* SUMMARY
|
/* SUMMARY
|
||||||
/* Postfix client count and request rate management
|
/* Postfix per-client count and rate control
|
||||||
/* SYNOPSIS
|
/* SYNOPSIS
|
||||||
/* \fBanvil\fR [generic Postfix daemon options]
|
/* \fBanvil\fR [generic Postfix daemon options]
|
||||||
/* DESCRIPTION
|
/* DESCRIPTION
|
||||||
|
@@ -195,7 +195,7 @@ static int dns_query(const char *name, int type, int flags,
|
|||||||
*/
|
*/
|
||||||
if (len > sizeof(reply->buf)) {
|
if (len > sizeof(reply->buf)) {
|
||||||
msg_warn("reply length %d > buffer length %d for name=%s type=%s",
|
msg_warn("reply length %d > buffer length %d for name=%s type=%s",
|
||||||
len, sizeof(reply->buf), name, dns_strtype(type));
|
len, (int) sizeof(reply->buf), name, dns_strtype(type));
|
||||||
len = sizeof(reply->buf);
|
len = sizeof(reply->buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -357,7 +357,7 @@ int main(int unused_argc, char **argv)
|
|||||||
&msgs, &rcpts) != ANVIL_STAT_OK)
|
&msgs, &rcpts) != ANVIL_STAT_OK)
|
||||||
msg_warn("error!");
|
msg_warn("error!");
|
||||||
else
|
else
|
||||||
vstream_printf("count=%d, rate=%d msgs=%d rcpt=%d\n",
|
vstream_printf("count=%d, rate=%d msgs=%d rcpts=%d\n",
|
||||||
count, rate, msgs, rcpts);
|
count, rate, msgs, rcpts);
|
||||||
} else {
|
} else {
|
||||||
vstream_printf("bad command: \"%s\"\n", cmd);
|
vstream_printf("bad command: \"%s\"\n", cmd);
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
* Patches change the patchlevel and the release date. Snapshots change the
|
* Patches change the patchlevel and the release date. Snapshots change the
|
||||||
* release date only.
|
* release date only.
|
||||||
*/
|
*/
|
||||||
#define MAIL_RELEASE_DATE "20041009"
|
#define MAIL_RELEASE_DATE "20041013"
|
||||||
#define MAIL_VERSION_NUMBER "2.2"
|
#define MAIL_VERSION_NUMBER "2.2"
|
||||||
|
|
||||||
#define VAR_MAIL_VERSION "mail_version"
|
#define VAR_MAIL_VERSION "mail_version"
|
||||||
|
@@ -1048,7 +1048,7 @@ static void mail_open_stream(SMTPD_STATE *state)
|
|||||||
* attributes.
|
* attributes.
|
||||||
*/
|
*/
|
||||||
if (SMTPD_STAND_ALONE(state) == 0) {
|
if (SMTPD_STAND_ALONE(state) == 0) {
|
||||||
rec_fprintf(state->cleanup, REC_TYPE_TIME, "%ld", state->time);
|
rec_fprintf(state->cleanup, REC_TYPE_TIME, "%ld", (long) state->time);
|
||||||
if (*var_filter_xport)
|
if (*var_filter_xport)
|
||||||
rec_fprintf(state->cleanup, REC_TYPE_FILT, "%s", var_filter_xport);
|
rec_fprintf(state->cleanup, REC_TYPE_FILT, "%s", var_filter_xport);
|
||||||
}
|
}
|
||||||
|
@@ -391,12 +391,12 @@ static void receive_reply(int unused_event, char *context)
|
|||||||
*/
|
*/
|
||||||
netstring_get(session->stream, buffer, var_line_limit);
|
netstring_get(session->stream, buffer, var_line_limit);
|
||||||
if (msg_verbose)
|
if (msg_verbose)
|
||||||
vstream_printf("<< %.*s\n", LEN(buffer), STR(buffer));
|
vstream_printf("<< %.*s\n", (int) LEN(buffer), STR(buffer));
|
||||||
if (STR(buffer)[0] != QMQP_STAT_OK)
|
if (STR(buffer)[0] != QMQP_STAT_OK)
|
||||||
msg_fatal("%s error: %.*s",
|
msg_fatal("%s error: %.*s",
|
||||||
STR(buffer)[0] == QMQP_STAT_RETRY ? "recoverable" :
|
STR(buffer)[0] == QMQP_STAT_RETRY ? "recoverable" :
|
||||||
STR(buffer)[0] == QMQP_STAT_HARD ? "unrecoverable" :
|
STR(buffer)[0] == QMQP_STAT_HARD ? "unrecoverable" :
|
||||||
"unknown", LEN(buffer) - 1, STR(buffer) + 1);
|
"unknown", (int) LEN(buffer) - 1, STR(buffer) + 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Update the optional running counter.
|
* Update the optional running counter.
|
||||||
|
@@ -599,7 +599,7 @@ static DICT_REGEXP_RULE *dict_regexp_parseline(const char *mapname, int lineno,
|
|||||||
if (prescan_context.max_sub > first_exp->re_nsub) {
|
if (prescan_context.max_sub > first_exp->re_nsub) {
|
||||||
msg_warn("regexp map %s, line %d: out of range replacement index \"%d\": "
|
msg_warn("regexp map %s, line %d: out of range replacement index \"%d\": "
|
||||||
"skipping this rule", mapname, lineno,
|
"skipping this rule", mapname, lineno,
|
||||||
prescan_context.max_sub);
|
(int) prescan_context.max_sub);
|
||||||
FREE_EXPR_AND_RETURN(first_exp, 0);
|
FREE_EXPR_AND_RETURN(first_exp, 0);
|
||||||
}
|
}
|
||||||
if (second_pat.regexp != 0) {
|
if (second_pat.regexp != 0) {
|
||||||
|
@@ -422,6 +422,19 @@ extern int opterr;
|
|||||||
#define NATIVE_NEWALIAS_PATH "/usr/sbin/newaliases"
|
#define NATIVE_NEWALIAS_PATH "/usr/sbin/newaliases"
|
||||||
#define NATIVE_COMMAND_DIR "/usr/sbin"
|
#define NATIVE_COMMAND_DIR "/usr/sbin"
|
||||||
#define NATIVE_DAEMON_DIR "/usr/libexec/postfix"
|
#define NATIVE_DAEMON_DIR "/usr/libexec/postfix"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* XXX Need CMSG_SPACE() and CMSG_LEN() but don't want to drag in everything
|
||||||
|
* that comes with _LINUX_SOURCE_COMPAT.
|
||||||
|
*/
|
||||||
|
#include <sys/socket.h>
|
||||||
|
#ifndef CMSG_SPACE
|
||||||
|
#define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
|
||||||
|
#endif
|
||||||
|
#ifndef CMSG_LEN
|
||||||
|
#define CMSG_LEN(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef AIX4
|
#ifdef AIX4
|
||||||
|
Reference in New Issue
Block a user