Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Heiko Schlittermann via Exim-users
Hi, Frank Richter (Mi 12 Jul 2017 15:46:31 CEST): … > > > From: Frank Richter > > > I'd like to rewrite envelope from "apache@*.mydomain" to the address in > > > header From. > > > I tried it according to https://github.com/Exim/exim/wiki/Q0801 with this > > >

Re: [exim] LDAP second level queries?

2017-07-12 Thread Marco Gaiarin
>> Maybe this? > Could be. At least i'm starting to understand, but still does not work. Finally i've got a working query as: ${lookup ldapm {user=LOCAL_AD_BINDDN pass=LOCAL_AD_PASS ldap:///LOCAL_AD_BASE_DN?uid?sub?(&(objectClass=user)(|\ ${sg \

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Jan Ingvoldstad via Exim-users
On Wed, Jul 12, 2017 at 1:43 PM, Frank Richter wrote: > My aim is that the envelope from (Return-Path) is set to the header from > (whatever it is) for some of our webservers, where PHP programmers send > email, but don't set the envelope from, so that bounces

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Jeremy Harris
On 12/07/17 14:46, Frank Richter wrote: >> apache@*.mydomain ${address:$rh_from:} F >> >> I suspect that the wiki page is wrong, but I'm not sure. > > Unfortunately, this doesn't work either. Same error message: > Rewrite of apa...@hrz.tu-chemnitz.de yielded unparseable address: empty > address

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Frank Richter
From: Lena--- via Exim-users: From: Frank Richter I'd like to rewrite envelope from "apache@*.mydomain" to the address in header From. I tried it according to https://github.com/Exim/exim/wiki/Q0801 with this rewrite rule: apache@*.mydomain ${sg{$h_from:}{^.*<(.*)>}{\$1}} Ffrs According to

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Lena--- via Exim-users
> From: Frank Richter > I'd like to rewrite envelope from "apache@*.mydomain" to the address in > header From. > I tried it according to https://github.com/Exim/exim/wiki/Q0801 with this > rewrite rule: > > apache@*.mydomain ${sg{$h_from:}{^.*<(.*)>}{\$1}} Ffrs According to

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Mueller
So in my case, and taht is what I do with rewriting is: Everyone, who sends emails with @from.mylocaldom is rewritten to @to.myproviderdom according the listing in a special file. Nearly the same as you want to do. This should help to get it done. *@tplk.loc "${extract{remote}

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Frank Richter
Am 12.07.2017 um 10:45 Mueller wrote: On the first glance: Just put a text-file in /etc/exim or where exims path is linked to Ex.: rewrite In rewrite : apchache@your.mydomain : remote=apache@rewritten.mydomain <-- first real then after remote what you want it to be In exim.conf: Rewrite

Re: [exim] Rewriting envelope from to header From

2017-07-12 Thread Mueller
On the first glance: Just put a text-file in /etc/exim or where exims path is linked to Ex.: rewrite In rewrite : apchache@your.mydomain : remote=apache@rewritten.mydomain <-- first real then after remote what you want it to be In exim.conf: Rewrite Rules: ##mails out apache@your.mydomain

[exim] Rewriting envelope from to header From

2017-07-12 Thread Frank Richter
Hwllo, I'd like to rewrite envelope from "apache@*.mydomain" to the address in header From. I tried it according to https://github.com/Exim/exim/wiki/Q0801 with this rewrite rule: apache@*.mydomain ${sg{$h_from:}{^.*<(.*)>}{\$1}} Ffrs Sending an email with a header From: leads to this: