Re: [exim] using environment ${env {}} for helo_data

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Frank Heydlauf
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] using environment ${env {}} for helo_data
Hi folx,

solved!

On Thu, Jul 30, 2020 at 04:01:42PM +0200, Frank Heydlauf via Exim-users wrote:
...
> > Can you post the smallest working config that you use to reproduce the
> > behaviour?
>
> uh. Made a minimal config, about 60 lines (instead of nearly 500).
> And - what could I say - ${env{}} works :-O
> I'll try to find the section which causes the trouble...


    begin transports
    ...
    spamcheck:
        driver = pipe
        command = /usr/sbin/exim -oMr spam-scanned -bS -oMa 127.0.0.1
        ...


is the trouble maker.

The exim is started with plain environment;
add_environment is not supported with pipe transport.

A wrapper would work (tested) - but I'd lose the benefits I had
hoped for, using ${env {}} variables.

--
Regards
Frank