Koozali.org: home of the SME Server

smtp-auth username displayed???

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
smtp-auth username displayed???
« on: May 31, 2009, 03:53:37 PM »
I've noticed that when a user connect to SMTP with SSL on the Sme Server, the following line is included in the mail source:

Code: [Select]
Received: from [aaa.bbb.ccc.ddd] (HELO [10.xxx.xxx.xxx]) (aaa.bbb.ccc.ddd)
  (smtp-auth username XXXX, mechanism plain)



Is there any way to remove that line? The information about tha actual user's username shouldn't be forwarded to third part!

(Mail client: Latest Thunderbird Sme Server 7.4 with all updates applied)


Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: smtp-auth username displayed???
« Reply #1 on: May 31, 2009, 05:40:51 PM »
This behavior appears to be built into the core of qpsmtpd - if you want it fixed permanently you'll need to pursue the issue upstream with qpsmtpd, then wait (possibly a long time) for the changes to migrate down into SME server.

You may be able to change this behavior by modifying /usr/lib/perl5/site_perl/Qpsmtpd/SMTP.pm (at line #680) as follows:
Code: [Select]
cd /usr/lib/perl5/site_perl/Qpsmtpd
mv SMTP.pm SMTP.pm.org.$$
sed s~smtp-auth\ username\ \$self-\>\{_auth_user\}~smtp-auth\ valid-username~ SMTP.pm.org.$$ > SMTP.pm

This will:
1) Create a backup of SMTP.pm named SMTP.pm.org.#####

2) find the line that says
$authheader = "(smtp-auth username $self->{_auth_user}, mechanism $self->{_auth_mechanism})\n";
and replace it with
$authheader = "(smtp-auth valid-username, mechanism $self->{_auth_mechanism})\n";

If you have any trouble, you will need to manually delete the modified SMTP.pm, then copy or rename the backup.

Caveats:
a) I have little to no idea if this will work.
b) These changes will revert (that is, disappear) any time there is an update to qpsmtpd.noarch / qpsmtpd-0.40-1.11.el4.sme.

Offline jumba

  • *****
  • 291
  • +0/-0
  • Donations: July 2007 - $ 20.00
    • Smeserver på svenska!
Re: smtp-auth username displayed???
« Reply #2 on: May 31, 2009, 05:45:42 PM »
OK, thanks for a quick reply.

Well, in that case I'll rather accept this, but still I feel it's quite unnecessary to include this info in the mail headers... :=(

Offline mmccarn

  • *
  • 2,657
  • +10/-0
Re: smtp-auth username displayed???
« Reply #3 on: May 31, 2009, 06:17:13 PM »
...I feel it's quite unnecessary to include this info in the mail headers... :=(
No argument here! 

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: smtp-auth username displayed???
« Reply #4 on: May 31, 2009, 07:06:49 PM »
No argument here!

If spam is ever sent from your domain you might find it useful.