Re: [Exim] domain missing in rewrite key string "$1}dbm{/etc…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jon Bendtsen
Ημερομηνία:  
Προς: Andreas J Mueller
Υ/ο: exim-users
Αντικείμενο: Re: [Exim] domain missing in rewrite key string "$1}dbm{/etc/exim/user2email}{$value}fail}" in line 286
Den 13. maj 2004, kl. 13:58, skrev Andreas J Mueller:

> Hi Jon!
>
> Thursday, May 13, 2004, 10:23:07 AM, you wrote:
>>>         headers_rewrite = *@laerdal.dk
>>> ${lookup{${lc::$1}}dbm{/etc/exim/user2email}{$value}fail}@???
>>> f
>>>          ^^^^^^^^^

>
>> sorry, it still didnt work :( the localpart is not replaced with
>> something else
>
> How did you create the DBM file? If the keys do not contain a
> terminating null byte, you have to use "dbmnz" for lookup. That may be
> the case, if you wrote $users{'jberndtsen'} = "jon.berndtsen" in Perl.
>
> In a previous post, you wrote:
>> user2email contains one line
>> jbendtsen: jon.bendtsen
>
> If user2email is a plain text file and has not been created by any DBM
> utility, please use "lsearch" lookups, not "dbm[nz]".


of course, thats probably it. I did experience with lsearch at some
time, but it failed as well
because of the missing :${} that people told me to add.


nope, didnt work

vash:/etc/exim# grep user2 exim.conf
headers_rewrite = *@*.laerdal.dk
${lookup{${lc::$1}}lsearch{/etc/exim/
user2email}{$value}fail}@??? f
vash:/etc/exim# cat user2
cat: user2: No such file or directory
vash:/etc/exim# cat user2email
jbendtsen: jon.bendtsen
vash:/etc/exim#



JonB