[prev in list] [next in list] [prev in thread] [next in thread]
List: exim-users
Subject: Re: [Exim] Re: Re: NB: return-path problem
From: Andreas Metzler <eximusers () downhill ! at ! eu ! org>
Date: 2003-11-30 14:23:46
[Download RAW message or body]
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"
--
## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at \
http://www.exim.org/ ##
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic