ork / mutt-office365

A mutt configuration file ready for Office 365
309 stars 56 forks source link

Authentication method doesn't work #1

Closed wefner closed 10 years ago

wefner commented 10 years ago

Receiving e-mail works although when trying to send it complains "Authentication method missing". I've tried several changes with no luck. Did you experience something similar? I've read documentation from mutt and non of their auth methods work.

Using mutt-1.5.20-4.20091214hg736b6a.el6_5.x86_64 in a CentOS 6.5

ork commented 10 years ago

Can you run Mutt in debug mode with mutt -d 3, then look at ~/.muttdebug0 what can cause this?

Mutt uses GnuTLS to handle the SSL/TLS part, and you can list available ciphers on your system with gnutls-cli --list to compare with the one it's trying to use.

For me, I'm using TLS_ECDHE_RSA_AES_256_CBC_SHA1 as the following line can be seen in Mutt's debug log file:

[2014-08-20 16:33:43] SSL/TLS connection using TLS1.0 (ECDHE-RSA/AES-256-CBC/SHA1)

Maybe has Microsoft recently changed the list of ciphers it would accept?

ork commented 10 years ago

According to http://www.mutt.org/doc/devel/UPDATING, your version does not seem to support TLS >= 1.1 (or maybe it has been backported).

wefner commented 10 years ago

All right, make sense. I've downloaded 1.5.23 version and installed from source code with --enable-debug option although when trying to run it..

# /usr/local/bin/mutt -F ~/.mutt/muttrc -d 3
Modo debug a nivel 3.
Error en /root/.mutt/muttrc, renglón 15: imap_user: variable desconocida
Error en /root/.mutt/muttrc, renglón 16: imap_pass: variable desconocida
Error en /root/.mutt/muttrc, renglón 25: imap_check_subscribed: variable desconocida
Error en /root/.mutt/muttrc, renglón 26: imap_list_subscribed: variable desconocida
Error en /root/.mutt/muttrc, renglón 29: imap_keepalive: variable desconocida
Error en /root/.mutt/muttrc, renglón 30: imap_idle: variable desconocida
Error en /root/.mutt/muttrc, renglón 32: ssl_use_sslv3: variable desconocida
Error en /root/.mutt/muttrc, renglón 37: smtp_pass: variable desconocida
Error en /root/.mutt/muttrc, renglón 39: smtp_url: variable desconocida
Error en /root/.mutt/muttrc, renglón 40: ssl_starttls: variable desconocida
Error en /root/.mutt/muttrc, renglón 41: ssl_force_tls: variable desconocida
Error en /root/.mutt/muttrc, renglón 42: smtp_authenticators: variable desconocida
Error en /root/.mutt/muttrc, renglón 49: message_cachedir: variable desconocida
Error en /root/.mutt/muttrc, renglón 50: header_cache: variable desconocida
Error en /root/.mutt/muttrc, renglón 83: imap-fetch-mail: función deconocida
source: errores en /root/.mutt/muttrc

Are you using the same version?

wefner commented 10 years ago

The issue was I needed to compile it with some arguments: Needed dependencies:

# yum install gdbm-devel.x86_64 ncurses-devel.x86_64 cyrus-sasl-devel.x86_64
#./configure --enable-debug --enable-imap --with-ssl --enable-smtp --enable-hcache --with-sasl
# make install

After this point muttrc didn't complain. However, still can't send e-mails. Here's some output from the debug log

[2014-08-20 21:24:20] 5< 220 2.0.0 SMTP server ready
[2014-08-20 21:24:20] ssl_check_preauth: hostname check passed
[2014-08-20 21:24:20] ssl_check_preauth: signer check passed
[2014-08-20 21:24:20] TLSv1 connection using TLSv1/SSLv3 (ECDHE-RSA-AES256-SHA)
[2014-08-20 21:24:21] smtp_authenticate: Trying method login
[2014-08-20 21:24:21] SASL: No worthy mechs found
[2014-08-20 21:24:21] smtp_auth_sasl: H��H��t7�= unavailable
[2014-08-20 21:24:21] Falta un método de verificación de autentidad
wefner commented 10 years ago

Fixed after installing cyrus-sasl-plain.x86_64

wefner commented 10 years ago

I'm writing this here because I have no other way to get through you. Could you please grant me push or branch creation access? I'd like to improve the documentation and also upload some Langs. Thanks.

ork commented 10 years ago

Fork the repo and send me a pull-request with your changes :)

Samaliel commented 2 years ago

I have mutt installed on mac via brew . I receive the mail perfectly but when sending An authenticity verification method is missing. Can anybody help me please

knutid commented 2 years ago

@Samaliel, ref. wefner on 2014-08-21, try installing cyrus-sasl via Homebrew? (Disclaimer: not tested as I do not have partial-eaten-apple stuff.)