Re: [exim] smarthost TLS authentication problem

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: paul cooper
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] smarthost TLS authentication problem
i dont think im quite up to exim macros yet , and i think im making some
progress i understanding what this does on what ive got ( but not there
yet ) so i'll persevere a bit longer to try and get to grips with it.

I've established that its reading the config file

exim -be '${lookup{mxxxo@???}wildlsearch{/etc/exim4/smtp_users}}
returns an ?array/?hash of the key/value pairs in the file for the
line that starts @gmail.com :

so ive got to pass those values "auth_name"=mxxxo@??? and
"pass"=xxxxx to the transport
How ?

I dont think i can put anything to look up in the authenticators
section because there will be more than 1 of them in due course ( which
is where i started )


smarthost_auto:
    condition = 
${extract{smarthost}{${lookup{$sender_address}wildlsearch{/etc/exim4/smtp_users}{$value}fail}}}
    driver = manualroute
    domains = ! +local_domains
    route_list = "* 
${extract{smarthost}{${lookup{$sender_address}wildlsearch{/etc/exim4/smtp_users}{$value}fail}}}"
    transport = remote_smtp



remote_smtp:
driver = smtp
hosts_require_tls = smtp.gmail.com::587
hosts_require_auth = *

when i send from my client

2011-11-20 20:45:07 1RSEGB-0005vT-0L <= mxxx@???
H=mars-desktop.local [192.168.2.3] P=esmtp S=573 id=4EC966D6.90603@???
2011-11-20 20:45:07 1RSEGB-0005vT-0L ** pxxxx@???
R=smarthost_auto T=remote_smtp: SMTP error from remote mail server after
MAIL FROM:<mxxxx@???> SIZE=1612: host smtp.gmail.com
[209.85.143.109]: 530-5.5.1 Authentication Required. Learn more at\n530
5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257
em4sm10024239wbb.20



On 19/11/11 16:33, exim-users@??? wrote:
> On 18/11/11 22:05, paul cooper wrote:
>
>> Im going to end up with 2 smarthosts , both operating on port 465.
>> Do i have to do a lookup in a file rather than configure it as
>> separate authenticators within the file ?
> I don't use this configuration myself anymore, but I previously wrote up
> a method for using multiple authenticated smarthosts which used an
> external file for picking what credentials to use based on the IP of the
> smarthost being connected to. The external file was of this format:
>
> 192.168.0.1/32  : require_ssl=”true” type=”cram”        user=”myuser”
>               pass=”mypass”
> 72.14.221.109/32: require_ssl=”true” type=”login,plain”
> user=”myuser@???” pass=”mypass”
> 72.14.221.111/32: require_ssl=”true” type=”login,plain”
> user=”myuser@???” pass=”mypass”

>
> Here's my write up:
>
> https://grepular.com/Exim_Client_Authentication_Recipe
>