[#7388] SMTP AUTH failure when accepting Kronolith invitation
Summary SMTP AUTH failure when accepting Kronolith invitation
Queue IMP
Queue Version 4.2
Type Bug
State Resolved
Priority 1. Low
Owners Jan Schneider <jan (at) horde (dot) org>
Requester arjen+horde (at) de-korte (dot) org
Created 09/24/2008 (283 days ago)
Due
Updated 01/07/2009 (178 days ago)
Assigned 11/17/2008 (229 days ago)
Resolved 01/07/2009 (178 days ago)
Attachments
Milestone
Patch Yes

History
01/07/2009 Jan Schneider Comment #6
State ⇒ Resolved
Reply to this comment
Added to Git and CVS.
01/07/2009 CVS Commit Comment #5 Reply to this comment
11/17/2008 Jan Schneider Patch ⇒ 1
 
11/17/2008 Jan Schneider State ⇒ Assigned
 
11/17/2008 p (at) rdus (dot) de Comment #4 Reply to this comment
This did not fix the issue for me as the current username and 
credential were not transferred with the parameters. 
imp/lib/Compose.php does add the current user and the password to the 
parameters before sending mail.

The following patch fixed the issue for me:

http://hg.pardus.de/cgi-bin/hg.cgi/horde/HORDE/file/0f8c1b39f7eb/imp/HK-GW-Auth_for_invitations.patch
10/07/2008 Jan Schneider Comment #3
Assigned to Jan Schneider
State ⇒ Resolved
Reply to this comment
Fixed for IMP 4.3.1.
10/07/2008 CVS Commit Comment #2 Reply to this comment
09/24/2008 arjen+horde (at) de-korte (dot) org Comment #1
Patch ⇒
Milestone ⇒
Summary ⇒ SMTP AUTH failure when accepting Kronolith invitation
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Queue ⇒ IMP
Reply to this comment
I have configured Horde to use SMTP AUTH for submitting messages 
through 'config/conf.php':

     $conf['mailer']['params']['port'] = 587;
     $conf['mailer']['params']['auth'] = true;
     $conf['mailer']['type'] = 'smtp';

This works just fine when writing new messages or sending replies:

Sep 24 16:37:57 mail postfix/smtpd[19746]: connect from localhost[127.0.0.1]
Sep 24 16:37:57 mail postfix/smtpd[19746]: setting up TLS connection 
from localhost[127.0.0.1]
Sep 24 16:37:58 mail postfix/smtpd[19746]: Anonymous TLS connection 
established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256
Sep 24 16:37:58 mail postfix/smtpd[19746]: 49B7A6041C: 
client=localhost[127.0.0.1], sasl_method=LOGIN, 
sasl_username=user@example.com
Sep 24 16:37:58 mail postfix/smtpd[19746]: disconnect from 
localhost[127.0.0.1]

The exception to this rule is, when I want to accept/deny an 
invitation that was send through Kronolith. After hitting the 'Go' 
button, the following error message appears:

"authentication failure [SMTP: Invalid response code received from 
server (code: 535, response: 5.7.8 Error: authentication failed: 
generic failure)]."

In the mailserver logs is logged at the same time:

Sep 24 19:09:28 mail postfix/smtpd[21873]: connect from localhost[127.0.0.1]
Sep 24 19:09:28 mail postfix/smtpd[21873]: setting up TLS connection 
from localhost[127.0.0.1]
Sep 24 19:09:29 mail postfix/smtpd[21873]: Anonymous TLS connection 
established from localhost[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256
Sep 24 19:09:29 mail postfix/smtpd[21873]: warning: SASL 
authentication failure: All-whitespace username.
Sep 24 19:09:29 mail postfix/smtpd[21873]: warning: 
localhost[127.0.0.1]: SASL LOGIN authentication failed: generic failure
Sep 24 19:09:29 mail postfix/smtpd[21873]: disconnect from 
localhost[127.0.0.1]

Accepting messages works just fine when I use the build in sendmail 
binary, but not when the replies go through SMTP AUTH. I would like to 
use SMTP AUTH, so that I don't have to duplicate the existing 
'smtpd_sender_login_maps' that prevent From address spoofing.