mutt, fail to send mail

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
magnuscj
Posts: 2
Joined: Fri Dec 21, 2018 1:12 pm

mutt, fail to send mail

Post by magnuscj »

mutt fail when sending mail. Error message: No authenticators available

same program works in another distro

#~/.mutt/muttrc
set sort = 'reverse-date'
set ssl_starttls=yes
set ssl_force_tls=yes
auto_view text/html
alternative_order text/plain text/enriched text/html
set imap_user = 'mymail@gmail.com'
set imap_pass = 'passw'

set from='mymail@gmail.com'
set realname='myname'

set folder = imaps://imap.gmail.com/
set spoolfile = imaps://imap.gmail.com/INBOX
set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"

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

set smtp_url = 'smtp://mymail@gmail.com:passw@smtp.gmail.com:587/'

set move = no
set imap_keepalive = 900

set editor = "vim"
set charset = "utf-8"
set record = ''
set mail_check = 30
User avatar
MichaIng
Site Admin
Posts: 2262
Joined: Sat Nov 18, 2017 6:21 pm

Re: mutt, fail to send mail

Post by MichaIng »

@magnuscj
Please try to set either SMTP authenticator and/or IMAP authenticator:

Code: Select all

# set imap_authenticators=""
#
# Name: imap_authenticators
# Type: string
# Default: ""
# 
# 
# This is a colon-delimited list of authentication methods mutt may
# attempt to use to log in to an IMAP server, in the order mutt should
# try them.  Authentication methods are either ``login'' or the right
# side of an IMAP ``AUTH=xxx'' capability string, e.g. ``digest-md5'', ``gssapi''
# or ``cram-md5''. This option is case-insensitive. If it's
# unset (the default) mutt will try all available methods,
# in order from most-secure to least-secure.
# 
# Example:
# set imap_authenticators="gssapi:cram-md5:login"
# 
# Note: Mutt will only fall back to other authentication methods if
# the previous methods are unavailable. If a method is available but
# authentication fails, mutt will not connect to the IMAP server.
...
# set smtp_authenticators=""
#
# Name: smtp_authenticators
# Type: string
# Default: ""
# 
# 
# This is a colon-delimited list of authentication methods mutt may
# attempt to use to log in to an SMTP server, in the order mutt should
# try them.  Authentication methods are any SASL mechanism, e.g.
# ``digest-md5'', ``gssapi'' or ``cram-md5''.
# This option is case-insensitive. If it is ``unset''
# (the default) mutt will try all available methods, in order from
# most-secure to least-secure.
# 
# Example:
# set smtp_authenticators="digest-md5:cram-md5"
Post Reply