Re: [exim] exim fails to connect to smarthost

Page principale
Supprimer ce message
Répondre à ce message
Auteur: W B Hacker
Date:  
À: exim users
Sujet: Re: [exim] exim fails to connect to smarthost
Marc Haber wrote:

> 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
>


Marc,

I am grateful for your attention here on two counts;

1) The fiendishly complex Debian environment get expert-level help it clearly needs.

2) The whole Debian configuration methodology makes my lowly 1300-line
PostgreSQL-driven ~/exim/configure look as simple as a Bic lighter's
piezo-igniter vs an Airbus A-380 wiring diagram by comparison...

;-)

Regards,

Bill