Fix logging when dropping a mail due to size (m. allan noah /
kitno455, issue #13) git-svn-id: https://svn.perl.org/qpsmtpd/trunk@741 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
ccf990e032
commit
0a1cabf806
3
Changes
3
Changes
@ -2,6 +2,9 @@
|
||||
|
||||
Added tests for the rcpt_ok plugin (Guy Hulbert, issue #4)
|
||||
|
||||
Fix logging when dropping a mail due to size (m. allan noah /
|
||||
kitno455, issue #13)
|
||||
|
||||
greylisting: fix db_dir configuration option so it actually works
|
||||
(kitno455, issue #6)
|
||||
|
||||
|
@ -684,7 +684,8 @@ sub data_respond {
|
||||
}
|
||||
|
||||
#$self->respond(550, $self->transaction->blocked),return 1 if ($self->transaction->blocked);
|
||||
if ( $max_size and $size > $max_size ) {
|
||||
if ($max_size and $size > $max_size) {
|
||||
$self->log(LOGALERT, "Message too big: size: $size (max size: $max_size)");
|
||||
$self->respond(552, "Message too big!");
|
||||
$self->reset_transaction; # clean up after ourselves
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user