Gmail

While I avoid webbmail, gmail offers the best of two worlds:

- secure pop and smtp for off-line emailing with traditional MUA:s - webbmail if I should ever need it.

For sending mails, gmail is not the obvious solution though. At least not if you have a multiuser system with MUA:s relying on the sendmail command to send emails. Personally I use mutt+exim and while configuring exim to use smtp.gmail.com works for me, other users on the same system would suffer from header-rewriting that gmail applies (their mails would appear to be sent from my gmail account).

For a multiuser system relying on the sendmail facility, don't bother sending through gmail (even if all the users have a gmail account), use the smtp-server of your ISP instead.

If you are still interested in configuring exim to send mail via gmail, here is the information you need.

edit /etc/exim4/update-exim4.conf.conf

dc_smarthost='smtp.gmail.com'

I have

dc_use_split_config='true' and thus the configuration is scattered all over /etc/exim4/conf.d/, but the only file that needs a change is

/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost

Add the following line

# HE hack smtp.gmail.com uses port 587 start

port = 587 # HE hack smtp.gmail.com uses port 587 stop

Now you only have to add the password data in the file /etc/exim4/passwd.client.

smtp.gmail.com:my.name@gmail.com:mypasswd

smtp.gmail.com shares IP with a few other domain names, so adding

64.233.183.109 smtp.gmail.com

to /etc/hosts might be required.

comments powered by Disqus


Back to the index

Blog roll

R-bloggers, Debian Weekly
Valid XHTML 1.0 Strict [Valid RSS] Valid CSS! Emacs Muse Last modified: 2006-12-05