Re: [EXIM] Rewrite rules with DBM files

Top Page
Delete this message
Reply to this message
Author: Robert Franklin
Date:  
To: Philip Hazel
CC: EXIM users
Subject: Re: [EXIM] Rewrite rules with DBM files
On Thu, 7 Jan 1999 17:18:06 +0000 (BST) Philip Hazel <ph10@???>
wrote:

> On Thu, 7 Jan 1999, Robert Franklin wrote:
>
> > First up, if I feed in BOB@??? as an address, it won't match
> > bob@??? in a DBM file, so I have a rule thus:
> >
> >   *@*         ${lc:$local_part}@${lc:$domain}

> >
> > Is there a better way to do this?
>
> Nope. Though $domain should already be lower cased.


If I did an 'exim -brw bob@???', it didn't match the entry
'bob@???' entry in the synonym file. Am I doing something wrong
there (or am I remembering my tests wrong - the machine I'm testing this
on is not 'here' at the moment). I was using Exim 2.10 on Linux 2.0.36
with Redhat 5.2 for my tests (if that matters).


> Your rewrite rule above is therefore not correct, because you are
> applying it to *all* domains. You should not change the case of local
> parts at domains other than those you control.


Okey doke. I'll work out a better way to do it...


> Exim, by default, lower cases local parts for local domains, that is,
> being in a Unix world, it assumes caselessness for local parts. (You can
> set locally_caseless = false if you don't like this.) However, it may
> not make any such assumption about remote addresses. It is entirely
> possible (according to the RFCs) that R.C.Franklin@??? and
> r.c.franklin@??? refer to different mailboxes, though
> R.C.Franklin@??? has to be the same as the first. IMHO this is
> crazy, but what do I know?


brain# /etc/reboot


> Exim certainly has some odd corners as a result of this. I keep meaning
> to do a sweep through it and try to come up with some clear rules, but I
> haven't got round to it.


OK... I think that's things sorted then.

It shouldn't be a problem, because the actual files used will be script
generated, so I'll lower case as required when I do that.

Thanks for you help,

- Bob


----------------------------------------------------------------------------
  The Day Today             ... because FACT times IMPORTANCE equals NEWS!
----------------------------------------------------------------------------
  Bob "Mince" Franklin ~{], CNE ;), MCSE ;)           Tel. (0118) 931 8432
  Systems and Communications                          Fax. (0118) 975 3094
  IT Services                                   R.C.Franklin@???
  University of Reading, U.K.          http://www.reading.ac.uk/~suq96rcf/
----------------------------------------------------------------------------




--
*** Exim information can be found at http://www.exim.org/ ***