Re: [EXIM] smartuser/frozen messages/dumb users

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Skye Merlin Poier
CC: exim-users
Subject: Re: [EXIM] smartuser/frozen messages/dumb users
On Tue, 16 Dec 1997, Skye Merlin Poier wrote:

>     qualify_recipient = direct.ca
>     receiver_unqualified_hosts = *


Unqualified email address messages are definitely Considered Harmful. :-)

> set in my configuration file. By running exim in debug mode, I realized
> that its taking "skye@???" as the local part and sticking
> @direct.ca on the end:


That is what it should do.

> Any ideas? 1.70 rolled right over this, although I'm not sure what its
> behaviour was.


It wasn't treating "user"@??? as being the same address as
user@??? - it was leaving the quotes as part of the local part.
I received a complaint about this, and on reading the RFC carefully,
decided that they should be treated as being identical local parts - in
other words, the quoting was just a way of getting special characters
into the operative local part.

Previously, an address such as "user"@??? would have taken the
local part to be "user" (including the quotes), whereas now it is taken
as 'user' (without the quotes).

You can put the quotes back by using the new "quote" operator.

>     virtual_users:
>       driver = smartuser;
>       new_address = ${lookup{${local_part}@${domain}}dbm{/etc/exim/virtusertable.db}{${value}}{${local_part}@${domain}}}


Change the final occurrence of ${local_part} (the lookup failure case) to
${quote:${local_part}}.

It has been pointed out that the quote operator currently quotes
full stops (periods), which may not be a good idea. I may well change
that in the next release. The place to hack is line 1377 of expand.c.

(I seem to be giving a lot of hacking advice this morning :-)

-- 
Philip Hazel                   University Computing Service,
ph10@???             New Museums Site, Cambridge CB2 3QG,
P.Hazel@???          England.  Phone: +44 1223 334714



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