[Exim] rewriting interesting query

Top Page
Delete this message
Reply to this message
Author: David Markham
Date:  
To: Exim User \(E-mail\)
Subject: [Exim] rewriting interesting query
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Ok i have a rewrite thing on a router which works great if i put the domain
names in :-

user_community:
driver = redirect
domains = *.community.co.uk
#domains = dbm;rewrite.db
data = ${extract{1}{.}{$domain}}@???
#redirect_router = arouter

I am re-writing anything@??? to user@??? With
thanks to mark from a preivous posting.

Ok this is great, but i need to make it more general so for domains will
juist use a db file but the last portion of the data string needs to be the
domain name withouht the first bit. This i am having tyrouble with below
will return a rewrite of:-

test@??? as user@???

I cann add other extracyt bits for 3 and 4 eg but there lies the problem i
need it to be gerneal. If the domain is a community.com or community.co.uk
or submaildomain.community.co.uk They are all different.

user_test:
driver = redirect
domains = dbm;rewrite.db
data =
${extract{1}{.}{$domain}}@${extract{2}{.}{$domain}}.${extract{3}{.}{$domain}
}
#redirect_router = arouter

Anyone any help?

----------------------------------------------------------------------------
------
Dave Markham ( Internet Systems Engineer )
( Internal - 7241 4805
( External - 01782 794805
* David.Markham@???
Fujitsu Services,
Westfields House, West Avenue, Kidsgrove,
Stoke-On-Trent, ST7 1TL
----------------------------------------------------------------------------
------

--