[exim] caseful use of $domain in redirect router/not alterin…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Lutz Preßler
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] caseful use of $domain in redirect router/not altering address
Hello,

this is a rather obscure problem, but anyway. Maybe some WishList
item is justified:

I have a configuration which for some reasons has to stick data
into $address_data for addresses generated by a special redirect
router (but not the original address itself). To do this I don't
know any way apart from jumping by "redirect_router" to a router
after all the normal ones which sets address_data and than jumps
back to the first router.
As it has to jump _back_, only redirect (or queryprogram) router
with another "redirect_router" statement is possible - and then
I have to use something involving $domain to redirect to the
identical address.
Any alternative idea up to this point?

The problem is, that by using $domain the case of the domain
is lost. Of course, this is no problem for routing as case
of domain is irrelevant. But for the same reasons case is restored
when using $domain in rewrite rules, there is the wish to
not "destroy" case of domains.

The WishList item would be to have a caseful_domain option.
Opinions?

I figured out a "solution", but that is really ugly: In ACLs
extract caseful domains from $smtp_command and $recipients,
save mappings from address to caseful domain into some
acl_m variable, transfer the value of that variable into
address_data in an early router, and extract the caseful domain
names from there where necessary. One has to add further
mappings each time a new address is generated in a
redirect router, too. Works, but... no further comment.


Greetings,
Lutz

-- 
Lutz Preßler  <Lutz.Pressler@???>    http://www.SerNet.DE/
SerNet Service Network GmbH, Bahnhofsallee 1b, D-37081 Göttingen
Tel.: +49-551-370000-2,      FAX: +49-551-370000-9
AG Göttingen, HRB 2816,      GF: Dr. Johannes Loxen