You are not logged in.

#1 2009-11-23 13:17:39

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

[Solved] Can't send mails using mutt's native smtp support

I read the wiki and interested in mutt's native smtp support, so I installed extra/cyrus-sasl and decided to give it a try.
After search the online manual of muttrc, I add a few lines to my ~/.muttrc as follows:

set my_pass='mysecretpass'
set my_user=myname@gmail.com

set smtp_authenticators="digest-md5:cram-md5"
set smtp_url=smtps://$my_user:$my_pass@smtp.gmail.com

Everything looks fine, until I sent a test mail. The mutt's status bar is always showing "sending message ..." for a long time, but nothing is sent. I felt frustrated. sad

Can anyone give me a suggestion?  So much thanks.

=======
Edit: The problem resulted from improper options in muttrc, which I've commented. Because I'm using the native IMAP support of mutt, some original options have to be commented, such as:

#set postponed=+drafts
#set record=+sent

P.S.
The SMTP port of Google is 587, while the SMTPS port is 465. It's not necessary  to set this port manually.

Last edited by cwjiof (2009-11-25 13:26:15)

Offline

#2 2009-11-23 15:40:53

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [Solved] Can't send mails using mutt's native smtp support

try adding a :587 on the end of the url.  i'm also not sure you even need /cyrus-sasl or the _authenticators bit.  i didn't, back before i moved to an msmtp mutt setup.

Offline

#3 2009-11-24 13:15:43

cwjiof
Member
From: Taichung, TW
Registered: 2008-01-27
Posts: 131

Re: [Solved] Can't send mails using mutt's native smtp support

Thank you. I'll go back to use msmtp anyway.

Offline

Board footer

Powered by FluxBB