]>
Commit | Line | Data |
---|---|---|
642652f5 JR |
1 | --- postfix-2.2.3/src/smtpd/smtpd.c~ 2005-09-08 15:51:27.479075120 +0200 |
2 | +++ postfix-2.2.3/src/smtpd/smtpd.c 2005-09-08 17:28:05.934984184 +0200 | |
3 | @@ -2076,8 +2076,11 @@ | |
4 | if (state->err == CLEANUP_STAT_OK) { | |
5 | (void) smtpd_proxy_cmd(state, SMTPD_PROX_WANT_ANY, "."); | |
6 | if (state->err == CLEANUP_STAT_OK && | |
7 | - *STR(state->proxy_buffer) != '2') | |
8 | + *STR(state->proxy_buffer) != '2') { | |
9 | state->err = CLEANUP_STAT_CONT; | |
10 | + smtpd_check_reject(state, MAIL_ERROR_POLICY, | |
11 | + "%s", STR(state->proxy_buffer)); | |
12 | + } | |
aa64213c | 13 | } else if (state->err != CLEANUP_STAT_SIZE) { |
642652f5 | 14 | state->err |= CLEANUP_STAT_PROXY; |
aa64213c | 15 | vstring_sprintf(state->proxy_buffer, |
642652f5 JR |
16 | --- postfix-2.2.3/src/smtpd/smtpd_check.c~ 2005-09-08 15:51:27.482074664 +0200 |
17 | +++ postfix-2.2.3/src/smtpd/smtpd_check.c 2005-09-08 17:28:05.192097120 +0200 | |
18 | @@ -764,7 +764,7 @@ | |
19 | ||
20 | /* smtpd_check_reject - do the boring things that must be done */ | |
21 | ||
22 | -static int smtpd_check_reject(SMTPD_STATE *state, int error_class, | |
23 | +int smtpd_check_reject(SMTPD_STATE *state, int error_class, | |
24 | char *format,...) | |
25 | { | |
26 | va_list ap; | |
27 | --- postfix-2.2.3/src/smtpd/smtpd_check.h~ 2005-09-08 15:51:27.483074512 +0200 | |
28 | +++ postfix-2.2.3/src/smtpd/smtpd_check.h 2005-09-08 17:29:17.952035928 +0200 | |
29 | @@ -25,6 +25,7 @@ | |
30 | extern char *smtpd_check_data(SMTPD_STATE *); | |
31 | extern char *smtpd_check_eod(SMTPD_STATE *); | |
32 | extern char *smtpd_check_policy(SMTPD_STATE *, char *); | |
33 | +extern int smtpd_check_reject(SMTPD_STATE *state, int error_class, char *format,...); | |
34 | ||
35 | /* LICENSE | |
36 | /* .ad |