Меню

Mutt ошибка sasl аутентификации

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • General Help
  • [SOLVED] SASL Authentication Failure with Mutt

  1. [SOLVED] SASL Authentication Failure with Mutt

    I’ve had zero problems with my regular @gmail.com address with Mutt. This @bucknell.edu address however, will not let me send mail. I get a «SASL Authentication Failure» every time I try. Any ideas? Are my servers set up properly?

    The @bucknell.edu address is a google address, only with a different domain name. This login info works for all other clients I’ve set it up with. I’d really love to get mutt working.

    Thanks guys!

    Here’s a snippet from my config, with the password and username changed out.

    Code:

    # IMAP
    set from         = "USERNAME@bucknell.edu"
    set imap_user         = "USERNAME@bucknell.edu"
    set imap_pass         = "PWORD"
    set folder         = "imaps://imap.gmail.com:993"
    set imap_check_subscribed
    
    # SMTP
    set smtp_url        = "smtp://USERNAME@smtp.gmail.​​com:587/"
    set smtp_pass        = "PWORD"
    
    set spoolfile         = "+INBOX"
    set postponed         = "+[Gmail]/Drafts"
    set trash        = "imaps://imap.gmail.com/[​​Gmail]/Trash"
    
    set header_cache         =~/.mutt/cache/headers
    set message_cachedir         =~/.mutt/cache/bodies
    set certificate_file         =~/.mutt/certificates

    And here’s a snippet from the debug output…

    Code:

    [2012-03-25 18:03:46] Looking up smtp.gmail.com...
    [2012-03-25 18:03:46] Connecting to smtp.gmail.com...
    [2012-03-25 18:03:46] Connected to smtp.gmail.com:587 on fd=6
    [2012-03-25 18:03:46] 6< 220 mx.google.com ESMTP hr2sm26597687qab.8
    [2012-03-25 18:03:46] 6> EHLO xubuntu-SXPS
    [2012-03-25 18:03:46] 6< 250-mx.google.com at your service, [134.82.127.123]
    [2012-03-25 18:03:46] 6< 250-SIZE 35882577
    [2012-03-25 18:03:46] 6< 250-8BITMIME
    [2012-03-25 18:03:46] 6< 250-STARTTLS
    [2012-03-25 18:03:46] 6< 250 ENHANCEDSTATUSCODES
    [2012-03-25 18:03:46] 6> STARTTLS
    [2012-03-25 18:03:46] 6< 220 2.0.0 Ready to start TLS
    [2012-03-25 18:03:46] SSL/TLS connection using TLS1.0 (RSA/ARCFOUR-128/SHA1)
    [2012-03-25 18:03:47] 6> EHLO xubuntu-SXPS
    [2012-03-25 18:03:47] 6< 250-mx.google.com at your service, [134.82.127.123]
    [2012-03-25 18:03:47] 6< 250-SIZE 35882577
    [2012-03-25 18:03:47] 6< 250-8BITMIME
    [2012-03-25 18:03:47] 6< 250-AUTH LOGIN PLAIN XOAUTH
    [2012-03-25 18:03:47] 6< 250 ENHANCEDSTATUSCODES
    [2012-03-25 18:03:47] SASL local ip: 134.82.127.123;36547, remote ip:173.194.68.108;587
    [2012-03-25 18:03:47] External SSF: 128
    [2012-03-25 18:03:47] External authentication name: USERNAME
    [2012-03-25 18:03:47] Authenticating (LOGIN)...
    [2012-03-25 18:03:47] 6> AUTH LOGIN
    [2012-03-25 18:03:47] 6< 334 VXNlcm5hbWU6
    [2012-03-25 18:03:47] mutt_sasl_cb_authname: getting authname for smtp.gmail.com:587
    [2012-03-25 18:03:47] mutt_sasl_cb_pass: getting password for USERNAME@smtp.gmail.com:587
    [2012-03-25 18:03:47] 6> *****
    [2012-03-25 18:03:47] 6< *****
    [2012-03-25 18:03:47] 6> *****
    [2012-03-25 18:03:48] 6< 535-5.7.1 Username and Password not accepted. Learn more at
    [2012-03-25 18:03:48] SASL authentication failed
    [2012-03-25 18:03:50] Postpone this message? ([yes]/no): 
    [2012-03-25 18:03:51] mutt_free_body: unlinking /tmp/mutt-xubuntu-SXPS-1000-​​6696-8039055121269571200.
    [2012-03-25 18:03:51] Mail not sent.
    [2012-03-25 18:03:51] 4> a0021 NOOP
    [2012-03-25 18:03:51] 4 a0022 CLOSE
    a0023 LOGOUT
    [2012-03-25 18:03:52] 4< a0022 OK Returned to authenticated state. (Success)
    [2012-03-25 18:03:52] 4< * BYE LOGOUT Requested
    [2012-03-25 18:03:52] Handling BYE
    [2012-03-25 18:03:52] 4< a0023 OK 73 good day (Success)
    [2012-03-25 18:03:52] IMAP queue drained

    Last edited by Earsplit; March 26th, 2012 at 02:31 AM.


  2. Re: SASL Authentication Failure with Mutt

    I figured it out…

    For anyone else encountering this problem, I changed the line

    Code:

    set smtp_url        = "smtp://USERNAME@smtp.gmail.​​​com:587/"

    to

    Code:

    set smtp_url        = "smtps://USERNAME@DOMAIN.EDU@smtp.gmail.​​​com:465/"

    I had to change the port to 465, and use the secure smtp (smtps) to get this working.

    Also make sure the packages gnutls-bin, openssl, and libsasl2 are installed.


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

I’m trying to set a cron-job for sending mail attachments from my cpanel server.
I found that Mutt is a great option.
However, I’m having difficulty due to this one error that keeps occurring again and again.

Whenever I try sending a mail I get this:

SASL authentication failed.
Could not send the message.

The following is my .muttrc file.

set from = USERNAME@gmail.com
set realname = "NAME"

#set smtp_url = smtp://USERNAME@gmail.com:587/
set smtp_url = "smtps://USERNAME@smtp.gmail.com:465/"
set smtp_pass = PASS
set imap_user = USERNAME@gmail.com
set imap_pass = PASS

set folder = imaps://imap.gmail.com:993
set spoolfile = imaps://imap.gmail.com/INBOX

set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates

# Etc
set mail_check = 100
set move = no
set imap_keepalive = 900
set sort = threads
set editor = "vim"

#source ~/.mutt/gpg.rc
set ssl_starttls=no
set ssl_force_tls=yes
set smtp_authenticators = "login"

set ssl_verify_host = no
set ssl_verify_dates = no

This may take a long time (probably won’t be solvable) and there might not be many people with this problem. But I feel that this thread might help others in the future

I’ve installed gnutils-bin and openssl

which gnutls-bin
/usr/bin/which: no gnutls-bin in (/usr/local/cpanel/3rdparty/lib/path-bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/cpanel/composer/bin:/usr/local/python3.6/bin:/usr/local/bin:/home/covid/.local/bin:/home/USERNAME/bin)

which openssl
/usr/bin/openssl

I’ve been googling this for hours and I can’t find anything to help me solve the issue, so I’m coming to you guys. I’m trying to configure mutt, and it’s not working. IMAP is perfect, but SMTP is failing horribly. I’ve attempted to copy my settings from my other mail client that works beautifully, but something just isn’t working. I’d like to use mutt on both my Mac and my Arch box, so if there’s a solution that can apply to both that’d be wonderful. (I have Homebrew on my Mac.)

Here’s the configuration file (with personal data removed):

set imap_user = "email@example.com"
set imap_pass = "password"
set mbox = +Inbox
set realname = "Jonathan"
set folder = "imaps://mail.server.com:993"

set use_from = yes
set ssl_starttls = yes
set smtp_url = "smtps://mail.server.com:465"
set smtp_pass = "password"
set ssl_starttls = yes
set from = "email@example.com"
set spoolfile = "+INBOX"
set postponed="Drafts"

set header_cache=~/.mutt/cache/headers
set message_cachedir=~/.mutt/cache/bodies
set certificate_file=~/.mutt/certificates

set move = no

set mail_check=60           # check for new mail every 60 seconds
set timeout=15

Here’s the error: SMTP session failed: 550 http://www.spamhaus.org/query/bl?ip=98.28.168.239″

I’d like to use SSL/TLS, and I’ve tried everything from changing the port numbers to commenting out set ssl_starttls to not using SSL. If I don’t use SSL/TLS mutt doesn’t connect, giving me the following error SMTP session failed: read error
If I try port 587 it either gives me a read error or «SMTP session failed: 550 SMTP AUTH is required for message submission on port 587.»  When trying to use SSL on port 587 I get an unknown protocol error.

Here’s the output of mutt -v on my mac. I haven’t tried it on my Arch machine yet.

Mutt 1.5.23 (2014-03-12)
Copyright (C) 1996-2009 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Darwin 13.2.0 (x86_64)
ncurses: ncurses 5.7.20081102 (compiled with 5.7)
libiconv: 1.11
hcache backend: tokyocabinet 1.4.48

Compiler:
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

Configure options: '--disable-dependency-tracking' '--disable-warnings' '--prefix=/usr/local/Cellar/mutt/1.5.23_1' '--with-ssl=/usr/local/opt/openssl' '--with-sasl' '--with-gss' '--enable-imap' '--enable-smtp' '--enable-pop' '--enable-hcache' '--with-tokyocabinet' '--with-homespool=.mbox' '--disable-debug' 'CC=clang'

Compilation CFLAGS: -g -O2

Compile options:
-DOMAIN
-DEBUG
+HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE  +USE_FCNTL  -USE_FLOCK   
+USE_POP  +USE_IMAP  +USE_SMTP  
+USE_SSL_OPENSSL  -USE_SSL_GNUTLS  +USE_SASL  +USE_GSS  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  -HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH=".mbox"
PKGDATADIR="/usr/local/Cellar/mutt/1.5.23_1/share/mutt"
SYSCONFDIR="/usr/local/Cellar/mutt/1.5.23_1/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@mutt.org>.
To report a bug, please visit http://bugs.mutt.org/.

HALP! smile What’s going on here?

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Must declare the scalar variable sql ошибка
  • Music groove ошибка файловой системы