bennn / racket-mutt

Racket API for the Mutt email client
Other
3 stars 1 forks source link

gmail: this message may not have been sent by #1

Closed bennn closed 6 years ago

bennn commented 8 years ago

My ~/.muttrc is sending mail from a gmail address to another gmail address. The messages arrive, but gmail puts a warning in the message: "May not have been sent by ".

Should be able to fix this by changing the .muttrc to use gmail's imap or smtp interface, but I haven't figured out how.

bennn commented 8 years ago

https://www.linux.com/blog/setup-mutt-gmail-centos-and-ubuntu

bennn commented 8 years ago

From Leif:

"Apparently its an os x bug...adding the following line to your .muttrc works:

set smtp_authenticators = 'gssapi:login'"

bennn commented 7 years ago

ugh, I can't get anything to send though gmail.

Even after enabling POP / IMAP

pirj commented 6 years ago
set smtp_url=smtps://$imap_user:$imap_pass@smtp.gmail.com

This worked for me to get rid of the same issue (bare mutt).

bennn commented 6 years ago

Thank you!

Outline of my .muttrc:

set realname = "<name>"
set from = "<username@gmail.com>"
set use_from = yes
set envelope_from = yes

set imap_user = $from
set imap_pass = "<password>"
set smtp_url = "smtps://$imap_user@smtp.gmail.com:465/"
set smtp_pass = $imap_pass
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set ssl_force_tls = yes
set smtp_authenticators = 'gssapi:login'
set header_cache = "~/.mutt/cache/"
bennn commented 6 years ago

edd94e064993f8e079fd445a6742c884fcbfcbc6

cirosantilli commented 6 years ago

I would also recommend looking at the recommendations on the official Mutt wiki: https://gitlab.com/muttmua/mutt/wikis/UseCases/Gmail as they worked for me.