Hi,

Frank Richter <frank.rich...@hrz.tu-chemnitz.de> (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
> > > rewrite rule:
> > > 
> > > apache@*.mydomain ${sg{$h_from:}{^.*<(.*)>}{\$1}}  Ffrs

seems complicated. Lena's approach is better (using the ${address:…}
operator.

> > According to
> > https://www.exim.org/exim-html-current/doc/html/spec_html/ch-address_rewriting.html
> > (untested):
> > 
> > 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 in address
> 
> I'm sendig with: swaks --to ...  --from apa...@hrz.tu-chemnitz.de --server
> ... --data  /tmp/mail

The rules from the rewrite section are applied at the time the
message is receveived (as written in the spec file). So, at the time
the envelope gets rewritten, the $h_from: isn't set yet.

Probably you need to rewrite at transport time. But … the envelope
sender can't be rewritten at transport time, transports have a
"return_path" option for modification of the envelope sender.

[The usual disclaimer: I may be wrong, I didn'nt cross check with the
documentation.]

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -

Attachment: signature.asc
Description: PGP signature

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to