Skip to content

Commit

Permalink
Say Received: ... via ESMTP instead of via SMTP when the client
Browse files Browse the repository at this point in the history
speaks ESMTP.  (Hoping this can be a useful SpamAssassin rule).

Take out the X-SMTPD header.


git-svn-id: https://svn.perl.org/qpsmtpd/trunk@171 958fd67b-6ff1-0310-b445-bb7760255be9
  • Loading branch information
abh committed Sep 5, 2003
1 parent cb49a90 commit 891778b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
0.27

Say Received: ... via ESMTP instead of via SMTP when the client
speaks ESMTP. (Hoping this can be a useful SpamAssassin rule).

Take out the X-SMTPD header.

Add pod documentation and sanity checking of the config to
check_badmailfrom

Use $ENV{QMAIL} to override /var/qmail for where to find the
control/ directory.

Expand Down
6 changes: 4 additions & 2 deletions lib/Qpsmtpd/SMTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ sub data {
# way a Received: line that is already in the header.

$header->extract(\@header);
$header->add("X-SMTPD", "qpsmtpd/".$self->version.", http://develooper.com/code/qpsmtpd/");
#$header->add("X-SMTPD", "qpsmtpd/".$self->version.", http://develooper.com/code/qpsmtpd/");

$buffer = "";

Expand All @@ -380,10 +380,12 @@ sub data {

$self->transaction->header($header);

my $smtp = $self->connection->hello eq "ehlo" ? "ESMTP" : "SMTP";

$header->add("Received", "from ".$self->connection->remote_info
." (HELO ".$self->connection->hello_host . ") (".$self->connection->remote_ip
. ") by ".$self->config('me')." (qpsmtpd/".$self->version
.") with SMTP; ". (strftime('%a, %d %b %Y %H:%M:%S %z', localtime)),
.") with $smtp; ". (strftime('%a, %d %b %Y %H:%M:%S %z', localtime)),
0);

# if we get here without seeing a terminator, the connection is
Expand Down

0 comments on commit 891778b

Please sign in to comment.