[exim] Using gmail as SMTP smarthost from exim4?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Amos Shapira
Datum:  
To: exim-users
Betreff: [exim] Using gmail as SMTP smarthost from exim4?
Hello,

I suspect this is a FAQ but after a few days of digging the net (including
this list's archive) and trying to solve this myself I couldn't figure it
out.

My setup:

1. Debian sarge (testing)
2. Exim4
3. a gmail.com <http://gmail.com> mail account I want to use as a smarthost.

According to what I learned, my update-exim4.conf.conf file is:

dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 <http://127.0.0.1>'
dc_readhost='gmail.com <http://gmail.com>'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com <http://smtp.gmail.com>'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'

and my passwd.client file reads:

*:<username>@gmail.com:<my password>

Sending mail like this fails on connection timeout.

The docs about exim4 day that it will use TLS automatically if the smarthost
lists this capability. I couldn't find a way to force TLS.

I think the problem is that exim tries to connect to SMTP port (25) instead
of
the SMTP-over-TLS port advertised by google as 465 or 587 (see
http://tinyurl.com/c6ytg).
I couldn't find anywere where can I explain to exim that it should connect
to
other port than 25 and use STARTTLS.
Could someone please explain me how to do this?

Thanks,

--Amos
*
*