My words on free/open source software

Wednesday, March 21, 2007

Use Exim with Gmail SMTP on Fedora

I've managed to setup Exim to send mail via Gmail SMTP on my laptop running Fedora Core 6. It was a bit tough work, for I can't find any precedent of using it on Fedora. Most talkings and guides regards Exim were based on Debian, and Fedora just doesn't have that config tools of Debian.

If you just want to know what to do, skip this paragraph, which talks theoratical things. My work started by following Use Gmail as a Smart Host, but it doesn't work. Checked Exim's log I found that the connection to Gmail's SMTP server was rejected, because Exim had been trying to connect to port 25 of it. Add a line "port = 587" solved this problem. Another problem is about the TLS authentication, because Exim thought the server it were to connect is called "", which was got through DNS lookup, rather than the "" set by me. So in the configure file, you should use "" instead of ""

So what to do is: edit "/etc/exim/exim.conf", add:

# routers section
driver = manualroute
domains = ! +local_domains
transport = gmail_smtp
route_list = *

# transports section
driver = smtp
port = 587
hosts_require_auth =
hosts_require_tls =

# authenticators section
driver = plaintext
public_name = LOGIN
client_send = : : yourpassword

I do think Exim should write an official FAQ regards this problem.

For some time, you may see such errors in Exim's log:

SMTP timeout while connected to [] after EHLO yourhostname: Conne
ction timed out

This is network or Gmail's problem. Want you can do is just waiting or switch to another ISP and try.

About Me

My photo
Santa Cruz, California, United States