Re: [exim] How to setup a specific route for a specific SEND…

Pàgina inicial
Delete this message
Reply to this message
Autor: Larry Rosenman
Data:  
A: Evgeniy Berdnikov
CC: exim-users
Assumpte: Re: [exim] How to setup a specific route for a specific SENDER address.
On 03/23/2022 12:57 am, Evgeniy Berdnikov via Exim-users wrote:
> On Tue, Mar 22, 2022 at 10:18:11PM -0500, Larry Rosenman via Exim-users
> wrote:
>> this failed with:
>> <21>1 2022-03-22T22:10:43.422806-05:00 thebighonker.lerctr.org exim
>> 72957 -
>> - H=mail-oa1-f43.google.com [209.85.160.43]:33104 I=[192.147.25.65]:25
>> sender v
>> erify defer for <m.ray.mullins+caf_=mrm=lerctr.org@???>: failed
>> to
>> expand "${lookup ${lc:${sender_address}} lsearch
>> {/usr/local/etc/exim/freebsd_send
>> }}": missing lookup type
>>
>> Ideas?
>
> Lookup key must be in braces. Try {${lc:$sender_address}} and
> use "exim -be ..." to verify.
>
> For lsearch put the ":" delimiter bitween key and value in map file.
> --
> Eugene Berdnikov



Thank You.  This is what I wound up with:
Router (at the top of the list):
freebsd_send:
    driver = manualroute
    domains = !+local_domains
    transport = freebsd_smtp
    route_data = ${lookup {${lc:$sender_address}} lsearch 
{/usr/local/etc/exim/freebsd_send}}


Transport:
freebsd_smtp:
         driver = smtp
   tls_certificate=/home/ler/letsencrypt-home/*.lerctr.org/fullchain.cer


tls_privatekey=/home/ler/letsencrypt-home/*.lerctr.org/*.lerctr.org.key
tls_require_ciphers =
EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:E
ECDH+aRSA+SHA384:EECDH+aRSA+SHA256:EECDH+AESGCM:EECDH:EDH+AESGCM:EDH+aRSA:HIGH:!MEDIUM:!LOW:!aNULL:!
eNULL:!LOW:!RC4:!MD5:!EXP:!PSK:!SRP:!DSS
dkim_domain = lerctr.org
dkim_selector = ler2019
dkim_private_key= /usr/local/etc/exim/dk/ler2019.rsa.private
dnssec_request_domains = *
arc_sign = lerctr.org : ler2019 :
/usr/local/etc/exim/dk/ler2019.rsa.private : timestamps
hosts_try_dane = *
hosts_require_auth = smtp.freebsd.org

Authenticators:
fixed_plain:
driver = plaintext
public_name = PLAIN
client_send = ^ler/mail^<PASSWORD HERE>

freebsd_send file:
❯ cat freebsd_send
ler@???:smtp.freebsd.org::587

Works great!

-- 
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler@???
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106