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
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

/tmp/mail contains  an e-mail with From:-Header.


Frank
Chemnitz University of Technology, Germany

Attachment: smime.p7s
Description: S/MIME Cryptographic 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