[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: failed SMTP auth
Ok team,
I've been spending hours hacking away on this... I'm getting close to giving up.
I've added these lines to my .wl config:
starttls-use-gnutls t
starttls-gnutls-program "gnutls-cli"
starttls-extra-arguments '("--insecure")
I figured that out after tinkering with gnus (since i was having
basically the same issue with gnus) and it fixed the problem. With
those settings i can now send mail via gnus.
However with wanderlust it's only gotten me slightly further if even
at all. I now get this error when sending off a composed mail (looks
in fact very similar to the old one):
Debugger entered--Lisp error: (error "No authentication mechanism available")
signal(error ("No authentication mechanism available"))
byte-code("\306\307\310 \n%\210@\311=\203. [smtp-server recipients
id err smtp-sasl-user-name smtp-sasl-mechanisms wl-draft-write-sendlog
failed smtp smtp-response-error 535 elmo-remove-passwd format
"SMTP:%s/%s@%s" signal server mechanism user] 6)
wl-draft-send-mail-with-smtp()
wl-draft-dispatch-message()
wl-draft-normal-send-func(#<buffer .Drafts/16> t)
wl-draft-send(t)
wl-draft-send-and-exit()
call-interactively(wl-draft-send-and-exit nil nil)
More relevent stuff:
*trace of SMTP session to exchange-hub.peer1.com*
220 hubfmt01.corp.peer1.net Microsoft ESMTP MAIL Service ready at Sun,
9 Jan 2011 03:03:24
Process SMTP killed
-0800
EHLO mercury.peer1.com
250-hubfmt01.corp.peer1.net Hello [66.223.57.83]
250-SIZE 26214400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH NTLM
250-8BITMIME
250-BINARYMIME
250 CHUNKING
STARTTLS
220 2.0.0 SMTP server ready
EHLO mercury.peer1.com
250-hubfmt01.corp.peer1.net Hello [66.223.57.83]
250-SIZE 26214400
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-AUTH NTLM LOGIN
250-8BITMIME
250-BINARYMIME
250 CHUNKING
QUIT
221 2.0.0 Service closing transmission channel
*** Fatal error: A TLS packet with unexpected length was received.
*** Server has terminated the connection abnormally.
*messages*
Initializing...
Loading mail-mime-setup...done
gnus-mime-setup is not found.
emh-setup is not found.
Updating addresses...done
Checking environment...
Loading msgdb for .Drafts...done
Checking environment...done
Checking type of variables...done
Initializing folder...done
Inserting group Desktop...done
Checking ".INBOX"
Checking ".INBOX.buzz"
Checking ".INBOX.critical"
Checking ".INBOX.major"
Checking ".INBOX.mgardner"
Checking ".INBOX.minor"
Checking ".INBOX.nms"
Checking ".INBOX.reports"
Checking ".INBOX.rtrauger"
Checking ".Drafts"
Checking ".Sent Items"
Checking ".Trash"
Checking "Desktop" is done
Type C-c C-x C-z to exit MIME mode, and type C-c C-x ? to get help.
Saving...done [2 times]
Send current draft? (y or n)
Saving...done
Send current draft? (y or n)
Type C-c C-x C-z to exit MIME mode, and type C-c C-x ? to get help.
Exit MIME editor mode.
Sending...
Opening STARTTLS connection to `exchange-hub.peer1.com:587'...done
byte-code: No authentication mechanism available
No authentication mechanism available [3 times]
On Sun, Jan 9, 2011 at 2:09 AM, Daniel Anderson <dankles@gmail.com> wrote:
> David,
>
> Thank you for your response to my question!
>
> I have no value for `ssl-program-name' defined. C-h v for the
> describe-variable function doesn't list a `ssl-program-name'
>
> As for the extended debug:
>
> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
> signal(wrong-type-argument (arrayp nil))
> byte-code("\306\307\310 \n%\210 @\311=\203.[smtp-server recipients
> id err smtp-sasl-user-name smtp-sasl-mechanisms wl-draft-write-sendlog
> failed smtp smtp-response-error 535 elmo-remove-passwd format
> "SMTP:%s/%s@%s" signal server mechanism user] 6)
>
> wl-draft-send-mail-with-smtp()
> wl-draft-dispatch-message()
> wl-draft-normal-send-func(#<buffer .Drafts/36> t)
> wl-draft-send(t)
> wl-draft-send-and-exit()
> call-interactively(wl-draft-send-and-exit nil nil)
>
>
> On Sun, Jan 9, 2011 at 1:34 AM, David Maus <dmaus@ictsoc.de> wrote:
>> At Sun, 9 Jan 2011 00:31:13 -0500,
>> Daniel Anderson wrote:
>>> Opening STARTTLS connection to `exchange-hub.my-corp-server.com:587'...done
>>> STARTTLS negotiation failed: DOW
>>> STARTTLS
>>> 220 2.0.0 SMTP server ready
>>> *** Starting TLS handshake
>>> - Certificate type: X.509
>>> - Got a certificate list of 1 certificates.
>>> - Certificate[0] info:
>>> - subject `CN=HUBFMT01', issuer `CN=HUBFMT01', RSA key 2048 bits,
>>> signed using RSA-SHA1, activated `2010-07-09 00:48:34 UTC', expires
>>> `2015-07-09 00:48:34 UTC', SHA-1 fingerprint
>>> `52e7238d53d618da6283d93758563c281a3fd184'
>>> - The hostname in the certificate does NOT match 'exchange-hub.peer1.com'
>>
>> Looks like the program responsible for SSL/TLS stops here because the
>> server certificate verification failed.
>>
>> What is `ssl-program-name' set to?
>>
>> Depending on the program you might pull the switch
>> (i.e. `ssl-program-arguments') to make it ignore this verification
>> failure (for gnutls its --insecure). Of course defeats one of the
>> purposes of using SSL/TLS; better solution could be to use the
>> hostname in the certificate's subject CN if possible.
>>
>>>
>>> byte-code: Wrong type argument: arrayp, nil
>>>
>>
>> But this should not happen and/or might or might not be related to the
>> verification issue. If you turn on Emacs' debugging feature
>>
>> M-x toggle-debug-on-error RET
>>
>> Which should provide a backtrace as soon as the "Wrong type argument"
>> hits. The backtrace might or might not give us a clue about what
>> causes this error.
>>
>> HTH,
>> -- David
>>
>> --
>> OpenPGP... 0x99ADB83B5A4478E6
>> Jabber.... dmjena@jabber.org
>> Email..... dmaus@ictsoc.de
>>
>