From 3ef92f214e0b5221af84191c0850218fc80c7bde Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo Date: Tue, 13 Jan 2015 05:40:16 +0000 Subject: [PATCH] Change Received header ordering when using SSL --- 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 1bee2ac..c9817da 100644 --- a/lib/Qpsmtpd/SMTP.pm +++ b/lib/Qpsmtpd/SMTP.pm @@ -843,7 +843,7 @@ sub received_line { $smtp .= "S" if $esmtp; # RFC3848 $sslheader = "(" . $self->connection->notes('tls_socket')->get_cipher() - . " encrypted) "; + . " encrypted)"; } if (defined $self->{_auth} && $self->{_auth} == OK) { my $mech = $self->{_auth_mechanism}; @@ -869,7 +869,7 @@ sub received_line { . $self->config('me') . " (qpsmtpd/" . $self->version - . ") with $sslheader$smtp; " + . ") with $smtp $sslheader; " . (strftime('%a, %d %b %Y %H:%M:%S %z', localtime)); } $self->transaction->header->add('Received', $header_str, 0);