2
0
mirror of https://github.com/vdukhovni/postfix synced 2025-08-31 06:05:37 +00:00

postfix-2.2-20041013

This commit is contained in:
Wietse Venema
2004-10-13 00:00:00 -05:00
committed by Viktor Dukhovni
parent bcb028b46d
commit b8f5dd1f42
12 changed files with 29 additions and 12 deletions

View File

@@ -9760,7 +9760,7 @@ Apologies for any names omitted.
Santi. Files: deliver_pass.c, deliver_request.c,
qmgr_deliver.c, qmgr_message.c, pipe.c, smtpd.c.
20041010
20041009
Feature: per SMTP client message rate limit and recipient
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
now also controls message and recipient rate limit control.
20041013
Portability: AIX 5.1/GCC.
Open problems:
Low: should the Delivered-To: test in local(8) be configurable?

View File

@@ -7,7 +7,7 @@
ANVIL(8) ANVIL(8)
<b>NAME</b>
anvil - Postfix client count and request rate management
anvil - Postfix per-client count and rate control
<b>SYNOPSIS</b>
<b>anvil</b> [generic Postfix daemon options]

View File

@@ -171,7 +171,7 @@ case "$SYSTEM.$RELEASE" in
done
;;
AIX.*) case "`uname -v`" in
5) SYSTYPE=AIX4
5) SYSTYPE=AIX5
case "$CC" in
cc|*/cc|xlc|*/xlc) CCARGS="$CCARGS -w -blibpath:/usr/lib:/lib:/usr/local/lib";;
esac

View File

@@ -4,7 +4,7 @@
.SH NAME
anvil
\-
Postfix client count and request rate management
Postfix per-client count and rate control
.SH "SYNOPSIS"
.na
.nf

View File

@@ -2,7 +2,7 @@
/* NAME
/* anvil 8
/* SUMMARY
/* Postfix client count and request rate management
/* Postfix per-client count and rate control
/* SYNOPSIS
/* \fBanvil\fR [generic Postfix daemon options]
/* DESCRIPTION

View File

@@ -195,7 +195,7 @@ static int dns_query(const char *name, int type, int flags,
*/
if (len > sizeof(reply->buf)) {
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);
}

View File

@@ -357,7 +357,7 @@ int main(int unused_argc, char **argv)
&msgs, &rcpts) != ANVIL_STAT_OK)
msg_warn("error!");
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);
} else {
vstream_printf("bad command: \"%s\"\n", cmd);

View File

@@ -20,7 +20,7 @@
* Patches change the patchlevel and the release date. Snapshots change the
* release date only.
*/
#define MAIL_RELEASE_DATE "20041009"
#define MAIL_RELEASE_DATE "20041013"
#define MAIL_VERSION_NUMBER "2.2"
#define VAR_MAIL_VERSION "mail_version"

View File

@@ -1048,7 +1048,7 @@ static void mail_open_stream(SMTPD_STATE *state)
* attributes.
*/
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)
rec_fprintf(state->cleanup, REC_TYPE_FILT, "%s", var_filter_xport);
}

View File

@@ -391,12 +391,12 @@ static void receive_reply(int unused_event, char *context)
*/
netstring_get(session->stream, buffer, var_line_limit);
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)
msg_fatal("%s error: %.*s",
STR(buffer)[0] == QMQP_STAT_RETRY ? "recoverable" :
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.

View File

@@ -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) {
msg_warn("regexp map %s, line %d: out of range replacement index \"%d\": "
"skipping this rule", mapname, lineno,
prescan_context.max_sub);
(int) prescan_context.max_sub);
FREE_EXPR_AND_RETURN(first_exp, 0);
}
if (second_pat.regexp != 0) {

View File

@@ -422,6 +422,19 @@ extern int opterr;
#define NATIVE_NEWALIAS_PATH "/usr/sbin/newaliases"
#define NATIVE_COMMAND_DIR "/usr/sbin"
#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
#ifdef AIX4