To send mail from a machine using gmail smtp server see this tutorial :
I've just ran into a problem with this config.
I've created a gmail account just for this purpose because you need to set the gmail account password in exim4 configuration file on each machine.
I didn't want to use my personnal gmail account for obvious reasons.
As it's a technical account, I never log into it through http://gmail.com web interface.
Which lead to the account beeing disabled by gmail.
As a result, all mail that exim4 tryed to send gives this warning message in /var/log/exim4/mainlog :
R=send_via_gmail T=gmail_smtp defer (-53): retry time not reached for any host
To solve this issue, you need to
- Login to http://gmail.com with the account you use with exim4. It will ask you to login a second time with a captcha... do so
- login on all of your machine that use this technique and issue the following command :
sudo exim -qff
In exim4 logs you should see the following line :
2009-04-04 17:07:44 1Lq7Jf-0007WM-VJ => firstname.lastname@example.org R=send_via_gmail T=gmail_smtp H=gmail-smtp-msa.l.google.com [18.104.22.168] X=TLS1.0:RSA_ARCFOUR_MD5:16 DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com"
2009-04-04 17:07:44 1Lq7Jf-0007WM-VJ Completed
One more thing, don't forget to login once in a while on your gmail account so that it's not disabled. A solution is maybe a firefox extension like gmail manager.