Lines 1-22
Link Here
|
1 |
--- amavisd.orig 2008-09-22 11:21:15.000000000 +0200 |
1 |
|
2 |
+++ amavisd 2008-09-22 11:23:53.000000000 +0200 |
|
|
3 |
@@ -16878,13 +16878,18 @@ |
4 |
$data_command_accepted = $smtp_resp=~/^3/ ? 1 : 0; |
5 |
if (!$data_command_accepted) { |
6 |
do_log(0,"Negative SMTP resp. to DATA: %s", $smtp_resp); |
7 |
+ $in_datasend_mode = 0; |
8 |
+ $smtp_session->timeout($smtp_rset_timeout); |
9 |
+ $what_cmd = 'RSET'; $smtp_handle->rset; # send a RSET |
10 |
} elsif (!$any_valid_recips) { # pipelining |
11 |
do_log(2,"Too late, DATA accepted but no valid recips, send dummy"); |
12 |
$which_section = 'fwd-data-contents'; |
13 |
$smtp_session->timeout( |
14 |
- max(60,min($smtp_data_xfer_timeout,$deadline-time))); |
15 |
+ max(60,min($smtp_data_done_timeout,$deadline-time))); |
16 |
+ $what_cmd = 'data-dot'; |
17 |
$smtp_handle->dataend; # as required by rfc2920: if the DATA command |
18 |
# was accepted the SMTP client should send a single dot |
19 |
+ $in_datasend_mode = 0; |
20 |
} elsif ($any_tempfail_recips && !$dsn_per_recip_capable) { # pipelining |
21 |
# we must not proceed if mail did not came in as LMTP, |
22 |
# or we would generate mail duplicates on each delivery attempt |