Re: Gmail?
- From: Doug Morse <morse@xxxxxxxxx>
- Date: Wed, 31 Dec 2008 23:35:48 +0000 (UTC)
On Tue, 30 Dec 2008 21:47:48 -0800 (PST), Zach Uram <netrek@xxxxxxxxx> wrote:
On Dec 30, 4:26 pm, Doug Morse <mo...@xxxxxxxxx> wrote:
[...]
Hope this helps. Two last things: (a) You might initially want to omit the
words "no keep" from the "options" line in your .fetchmailrc until you are
happy with what fetchmail is doing; doing so will leave all your messages on
the Gmail servers -- add back the "no keep" words when your confident that
fetchmail is doing what you want, and (b) if you're NOT using a standard Unix
/ Linux distro that's MTA stores messages in the mbox format, then write back
and I can give you instructions on how to set up your .mutt/muttrc file to use
mutt itself to transfer the messages to/from Gmail. (If you can use it,
employing fetchmail is a lot easier / faster for the initial transfer than
employing mutt.)
Hi Doug,
Thanks, yes I need help with .muttrc. I have no .muttrc can you send
me yours and then I can use it for the Gmail task.
Zach
Hi Zach,
Here are the key lines I use within my .muttrc file:
set spoolfile=imaps://imap.gmail.com:993/INBOX
set mbox=imaps://imap.gmail.com:993/INBOX
set folder=imaps://imap.gmail.com:993/[Gmail]
set sendmail="/usr/bin/msmtp"
set imap_user=my_gmail_username
set imap_pass=my_gmail_password
set certificate_file=~/.mutt/certificate
The 'folder' and 'certificate_file' entries are convenience entries. 'folder'
sets my default folder within mutt, which is referenced by the equal sign
'='. So, I can refer to, say, my Drafts folder as '=Drafts'. I can also
press '=' and the press tab to get a listing of my Gmail folders. The
certificate_file entry means that mutt will add a prompt to "Save Always"
various certificates; otherwise, you have to approve Gmail's certificate every
time. The other entries should be self explanatory and/or I refer you to
mutt's documentation.
In order to send email this way, you'll need to download, install, and
configure 'mstmp'. I'll refer you to Google for the download and install. As
far as configuring, here's my .msmtprc file:
# Gmail account
account gmail
host smtp.gmail.com
from morse@xxxxxxxxx # my preferred 'reply-to'
auth on
tls on
tls_trust_file /usr/share/ssl/cert.pem
user my_gmail_username@xxxxxxxxx
password my_gmail_password
port 587
account default : gmail
syslog LOG_MAIL
Other than the obvious adjustments, you may need to specify a different
file/path for your root CA certificates (i.e., 'tls_trust_file' entry),
depending on your distro.
Finally, I should note that I did not come up with any of this -- I found
everything rather easily on the web, courtesy of others, mostly likely by just
searching for 'gmail' and 'mutt'.
HTH.
Cheers,
Doug
.
- Follow-Ups:
- Re: Gmail?
- From: Doug Morse
- Re: Gmail?
- Next by Date: Re: Gmail?
- Next by thread: Re: Gmail?
- Index(es):
Relevant Pages
|