On Wed, Nov 26, 2003 at 12:06:05PM -0500, Matej Cepl wrote:
[...]
> Currently everything above work, except that when I (matej) send
> an email with From: header "cepl<at>ISPdomain" it gets
> envelope_from "matej<at>myowndomain". So probably what I would
> like to achieve is something like this (forget
> /etc/email-addresses):
> matej<at><at> if $from contains cepl<at>ISPdomain then \
> cepl<at>ISPdomain \
> else matej<at>myowndomain \
> endif frFsq
> ceplova<at><at> ceplova<at>herschooldomain frFsq
> Any thoughts?
[...]
No nicer ones, reformulating your suggestion in exim-filter syntax
to a string expansion seems to work, as far as my limited testing
shows.
matej@@ "${if eq {cepl@ISPdomain}{${address:$header_from:}} \
{cepl@ISPdomain}fail}" Fs
i.e. if envelope from/sender is matej@primary hostname check whether
the address in the From:-header is cepl@ISPdomain and rewrite it to
cepl@ISPdomain, do nothing (fail) otherwise. (Paranoia setting would
use ${lc:...} on the domain.)
cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"