This guide has been converted to a wiki:
https://help.ubuntu.com/community/MuttAndGmail
but help is still available via this Forum thread
This guide has been converted to a wiki:
https://help.ubuntu.com/community/MuttAndGmail
but help is still available via this Forum thread
Last edited by andrew.46; April 13th, 2012 at 12:24 PM.
I'm unable to find msmtp in my Intrepid respositories.
Hi hyper7,
msmtp is available in the Universe Repository. Details of the package can be seen here. To add the Universe Repository you will need to go System ----> Administration ----> Software Sources. When you are there ensure there is a tick against 'Community-maintained Open Source software (universe)' box. Then press 'Close' and your sources database should be reloaded and you can then download msmtp.
Hope this helps,
Andrew
You think that's air you're breathing now?
Thank you very much for this guide. It worked wonderfully and I am in love with it. The only think I am having issue with is the colours. I use a transparent terminal and a black background. Ill have to tweak it But thanks again! Its is awesome
Hi Nxion,
Thanks for the feedback!
I do not use a black background or my terminal but some use the following colors for such a scheme:
And I include a little 'key' to show how the basic colors are plotted out.Code:#---- Mutt Colors for Black Background ------- #color object foreground background color hdrdefault blue black color quoted blue black color signature blue black color attachment red black color message brightred black color error brightred black color indicator black red color status brightgreen blue color tree white black color normal white black color markers red black color search white black color tilde brightmagenta black color index blue black ~F color index red black "~N|~O"
All the best,
Andrew
You think that's air you're breathing now?
Thanks andrew for the nice tutorial.
There is an issue about entering Gmail password which is not so secure specially in a multi-user platform. is it possible not to insert the password in those files, instead one enters it once wants to check mail at the terminal?
Hi pajoohesh,
Thanks for your feedback:
The 2 files that contain the passwords are $HOME/.fetchmailrc and $HOME/.msmtprc. Both of these files are set to 0600 which I will admit is not the robust protection but may suffice for many.
However if you wish simply omit the password line in the .fetchmailrc file:
and fetchmail will prompt you for a password before proceding. However I don't believe that this is possible with msmtp because when mutt calls msmtp there is no mechanism for msmtp to ask for password before proceding. I believe this is possible directly from the commandline using msmtp but not via mutt.Code:there with password 'Gmail Password' # Your Gmail Password
Not sure how to get around this one?
Andrew
You think that's air you're breathing now?
Hi Andrew,
Thanks for the answer. I am new to linux and do not know much about mutt. Should I use the msmtp directly, Will I lose the benefits of using mutt. I have found this in msmtp manual:if mutt is not using a terminal what about the other methods that it tries to find password.`password [secret]'
Set your password for SMTP authentication. An empty argument unsets the password. Authentication must be activated with the `auth' command. If no password is set but one is needed during authentication, msmtp will try to find it in ~/.netrc. If that fails, it will try to find it in SYSCONFDIR/netrc (use --version to find out what SYSCONFDIR is on your platform). If that fails, it will try to get it from a system specific keychain (if available). If that fails but a controlling terminal is available, msmtp will prompt you for it.
I want to find a way not to put the password just naked in a file.
Hi pajoohesh,
Thanks again for your feedback:
I experimented with these methods and unfortunately could not get them to work as you have mentioned using mutt.
Perfectly understandable. Bear in mind that the setting of 0600 actually means that only yourself and root can read and alter this file, so the password is not completely exposed. However I have noticed that Version 1.4.17 of msmtp was released only recently and this version has support for the Gnome keyring. Details can be seen in the changelog.I want to find a way not to put the password just naked in a file.
I had a quick look at the source for 1.4.17 and saw the new option:
which is exactly what you are after . However this is a very new version, only 2 or 3 days old, and not available even in the upcoming Jaunty Jackalope yet and it is beyond the scope of this guide to demonstrate how to compile this one.Code:./configure --with-gnome-keyring
You may very well be better off to wait for a decent debiam package of the new msmtp to be released and then hide your password in the keychain. Sorry for not having a better answer .
All the best,
Andrew
You think that's air you're breathing now?
Bookmarks