Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 309715 - mail-client/mutt-1.5.20-r10 : smtp authentication : AUTH command is not sent to server when needed
Summary: mail-client/mutt-1.5.20-r10 : smtp authentication : AUTH command is not sent ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Fabian Groffen
URL: http://dev.mutt.org/trac/ticket/3394
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-16 08:22 UTC by Pavel D. Elkind
Modified: 2013-01-17 07:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My .muttrc (muttrc,1.61 KB, text/plain)
2010-03-16 08:36 UTC, Pavel D. Elkind
Details
Output of `mutt -D` (config,6.85 KB, text/plain)
2010-03-16 08:43 UTC, Pavel D. Elkind
Details
Output of `mutt -d 5` (debug,14.04 KB, text/plain)
2010-03-16 08:57 UTC, Pavel D. Elkind
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel D. Elkind 2010-03-16 08:22:57 UTC
When connecting to the ESMTP server mutt does not send proper AUTH command. This results in the following server response (taken from ~/.muttdebug0):
6< 530 5.7.0 No AUTH command has been given.

Mutt itself prints the following in the status line:
SMTP session failed: 530 5.7.0 No AUTH command has been given.

Moreover, if mutt is compiled with gnutls use-flag enabled, an attempt to send the email leads to hang up, so only `killall -9 mutt` helps.
If gnutls is disabled, mutt doesn't hang up but gives the error mentioned below.

mutt-1.5.20.-r13 shows the same behavior.




Reproducible: Always

Steps to Reproduce:
1. Get an account on ESMTP server (in particular, if possible, Sun Java System Messaging Server 7u2-7.02)
2. Try to send an email via this server using mutt.



Actual Results:  
Email is not sent.
mutt hangs up in case of gnutls enabled.

Expected Results:  
Message is sent.
mutt does not hang up.

It seems like this 'Sun Java System Messaging Server' asks for additional authentication after starttls have been executed. And mutt does not provide this additional authentication.

...
6> STARTTLS^M
6< 220 2.5.0 Go ahead with TLS negotiation.
...
6< 250-AUTH PLAIN LOGIN
6< 250-AUTH=LOGIN PLAIN
... now server wants an AUTH command (if my guess is right), but mutt sends:
6> MAIL FROM:<pelkind2@uwo.ca>^M
... which results in:
6< 530 5.7.0 No AUTH command has been given.
Comment 1 Pavel D. Elkind 2010-03-16 08:36:08 UTC
Created attachment 223855 [details]
My .muttrc
Comment 2 Pavel D. Elkind 2010-03-16 08:43:29 UTC
Created attachment 223857 [details]
Output of `mutt -D`
Comment 3 Pavel D. Elkind 2010-03-16 08:57:33 UTC
Created attachment 223861 [details]
Output of `mutt -d 5`
Comment 4 Pavel D. Elkind 2010-03-16 09:05:04 UTC
This configuration works fine for gmail.com. The problem is only with uwo.ca
The Sun Java System Messaging Server 7u2-7.02 is installed there.
Comment 5 Fabian Groffen gentoo-dev 2010-03-16 10:42:47 UTC
can you try with -r13 please?
Comment 6 Pavel D. Elkind 2010-03-17 04:18:10 UTC
Exactly the same situation with -r13 e.g.

SMTP session failed: 530 5.7.0 No AUTH command has been given.
and
SMTP session failed: 530 5.7.0 No AUTH command has been given + mutt hangs on if gnutls enabled.
Comment 7 Justin Snelgrove 2012-07-10 06:45:15 UTC
You don't have a username set for the smtp.uwo.ca server in the .muttrc you provided. It should be set via:

folder-hook imaps://imap.uwo.ca 'set smtp_url  = "smtp://USERNAME@smtp.uwo.ca:587"'

Exactly as you've done correctly for the gmail account.
Comment 8 Fabian Groffen gentoo-dev 2013-01-17 07:26:34 UTC
per upstream:

"
 as noted by https://bugs.gentoo.org/show_bug.cgi?id=309715#c7 the auth
 problem is due to the lack of a specified username.

 The SMTP protocol doesn't allow for a client to know a priori whether
 server policy requires authentication for some action.  The AUTH keyword
 merely specifies which mechanisms the server supports.

 The issue with hanging under GNUTLS is a separate issue and another bug
 should be filed if that is still the case.
"