mct noticed that we weren't properly testing for ESMTP.
git-svn-id: https://svn.perl.org/qpsmtpd/branches/0.3x@704 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
a30506e9b6
commit
02edd1a32a
@ -658,17 +658,18 @@ sub data_respond {
|
|||||||
$self->transaction->header($header);
|
$self->transaction->header($header);
|
||||||
|
|
||||||
my $smtp = $self->connection->hello eq "ehlo" ? "ESMTP" : "SMTP";
|
my $smtp = $self->connection->hello eq "ehlo" ? "ESMTP" : "SMTP";
|
||||||
|
my $esmtp = substr($smtp,0,1) eq "E";
|
||||||
my $authheader;
|
my $authheader;
|
||||||
my $sslheader;
|
my $sslheader;
|
||||||
|
|
||||||
if (defined $self->connection->notes('tls_enabled')
|
if (defined $self->connection->notes('tls_enabled')
|
||||||
and $self->connection->notes('tls_enabled')) {
|
and $self->connection->notes('tls_enabled')) {
|
||||||
$smtp eq "ESMTP" and $smtp .= "S"; # RFC3848
|
$smtp .= "S" if $esmtp; # RFC3848
|
||||||
$sslheader = "(".$self->connection->notes('tls_socket')->get_cipher()." encrypted) ";
|
$sslheader = "(".$self->connection->notes('tls_socket')->get_cipher()." encrypted) ";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $self->{_auth} and $self->{_auth} == OK) {
|
if (defined $self->{_auth} and $self->{_auth} == OK) {
|
||||||
$smtp eq "ESMTP" and $smtp .= "A"; # RFC3848
|
$smtp .= "A" if $esmtp; # RFC3848
|
||||||
$authheader = "(smtp-auth username $self->{_auth_user}, mechanism $self->{_auth_mechanism})\n";
|
$authheader = "(smtp-auth username $self->{_auth_user}, mechanism $self->{_auth_mechanism})\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user