Re: [exim] exim fails to connect to smarthost

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marc Haber
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] exim fails to connect to smarthost
On Thu, 24 Aug 2006 14:02:15 +0200, Magnus Holmgren
<holmgren@???> wrote:
>On Thursday 24 August 2006 09:32, Celejar took the opportunity to say:
>> I use exim to relay mail (from a dialup box) via 'smtp.gmail.com' (resolves
>> to 'gmail-smtp.l.google.com') as a smarthost. I have
>> '*:user@???:passwd' in 'passwd.client', and 'port = 587' in
>> 'exim_config_remote_smtp_smarthost'. This configuration has worked for me
>> for a while, but has "suddenly" (I may have done something, but I can't
>> think what) begun to consistently fail, with messages such these:
>>
>> 1GG8B8-0001Nd-Cf gmail-smtp.l.google.com [64.233.185.109] Connection
>> refused 1GG8B8-0001Nd-Cf gmail-smtp.l.google.com [64.233.185.111]
>> Connection refused 1GG8B8-0001Nd-Cf == xxxx@??? R=smarthost
>> T=remote_smtp_smarthost defer (111): Connection refused
>>
>> The problem isn't with the gmail servers; I use these same settings with
>> the MTA built into sylpheed and it's still working fine.
>
>What is exim_config_remote_smtp_smarthost? A file or a section of exim.conf?


It is actually called
/etc/exim4/conf.d/transport/30_exim4-config_remote_smtp_smarthost and
is a file in our split config scheme that holds a transport called
remote_smtp_smarthost:
|remote_smtp_smarthost:
| debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
| driver = smtp
| hosts_try_auth = ${if exists {CONFDIR/passwd.client}{DCsmarthost}{}}
| tls_tempfail_tryclear = false
| DEBCONFheaders_rewriteDEBCONF
| DEBCONFreturn_pathDEBCONF


the two DEBCONF lines are magically replaced by the right thing
depening on the type of configuration.

To have the transport deliver to a different port, it is necessary to
manually edit that file (or /etc/exim4/exim4.conf.template in case of
non-split config[1]) to add the port directive.

Exim 4.53 or later can accept port numbers in route_list entries, but
I don't think that the debconf front end supports that yet. We need to
get that one in shape before December when the next Debian stable
version will release.

Greetings
Marc

[1] see
http://pkg-exim4.alioth.debian.org/README/README.Debian.html#id2451738
for description of split and non-split configuration

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834