Sep
15
2008

mutt / exim4 / GMail

Decided to try to access my GMail using mutt ..
A good .muttrc configuration does the mail fetch trick.. I’ll add the details later.

On
Debian we have exim4 can be used synonymously as sendmail .. The
sendmail part is a little bit tricky. Some tls and auth settings in
exim4 configuration and still I am working on it as the route for
e-mail is localhost.localdomain, the GMail SMTP does not accept the
mail..

I’ll put the complete configuration, when I am done.

Finally I managed to do the config mostly manually.

~/.muttrc:
————
# mail check options
set pop_host=”pops://yourgmailname@pop.gmail.com:995″
set pop_last
unset pop_delete
# mail send options
set from='”Your Name” yourself@gmail.com’
set sendmail=’/usr/sbin/sendmail -oem -oi -fyourself@gmail.com’
set sort=threads
# check for new mail on startup
exec fetch-mail

/etc/exim4/exim4.conf.template:
——————————-
Update related part as below:

remote_smtp_smarthost:
debug_print = “T: remote_smtp_smarthost for $local_part@$domain”
driver = smtp
# GMail – begin
hosts_require_auth = smtp.gmail.com
hosts_require_tls = smtp.gmail.com
port = 587
# GMail – end
hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
tls_tempfail_tryclear = false
DEBCONFheaders_rewriteDEBCONF
DEBCONFreturn_pathDEBCONF

/etc/exim4/passwd.client:
————————-
Add:

smtp.gmail.com:yourname@gmail.com:
gmail-smtp.l.google.com:yourname@gmail.com:

Share
Written by in: desktop | Tweet This

No Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com