From c4452a58567fa2d45e247ad1110ffdad25b2b809 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo Date: Wed, 4 Jun 2014 03:59:52 +0000 Subject: [PATCH] Add our headers (Received & Authentication-Results) earlier, just after DATA --- lib/Qpsmtpd/SMTP.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Qpsmtpd/SMTP.pm b/lib/Qpsmtpd/SMTP.pm index fe8e63e..ba8885a 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -783,6 +783,8 @@ sub data_respond { return 1; } + $self->authentication_results(); + $self->received_line(); $self->run_hooks("data_post"); } @@ -919,8 +921,6 @@ sub data_post_respond { return 1; } else { - $self->authentication_results(); - $self->received_line(); $self->queue($self->transaction); } }