[exim] Re: changing smtp auth credentials per router?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: jeff sacksteder
Dátum:  
Címzett: Brian Candler
CC: Exim-users
Tárgy: [exim] Re: changing smtp auth credentials per router?
> fixed_plain:
> driver = plaintext
> public_name = PLAIN
> client_send =
> ${lookup{$host}lsearch{/usr/local/etc/exim/clientauth}{$value}fail}
>
> and the file /usr/local/etc/exim/clientauth contains entries like
>
> smtp.example.com ^user^pass


This would work if I can get the sending domain as a matching
condition- for example,
${lookup{$sending_domain}lsearch{/etc/exim/clientauth}{$value}fail}

and my clientauth file looks like-

foo.com     ^abc^123
bar.com     ^xyz^321


As suggested, I can manually set $address_data, in my route, then read
it back in the authenticator later. That seems a bit roundabout. Can I
get at the sending domain more directly?