FAQ / Rewriting addresses / Q0804
| /Q0801 /Q0802 /Q0803 /Q0804 /Q0805 /Q0806 /Q0807 /Q0808 |
Q0804
Question
I'm using this rewriting rule to change login names into friendly names, but if mail comes in for an upper case login name, it doesn't get rewritten.
*@my.domain ${lookup{$1}dbm{/usr/lib/exim/longforms}\
$value}fail}@my.domain bcfrtFTThe longforms database has entries of the form:
ano23: A.N.Other
Answer
Replace $1 in your rule by ${lc:$1} to force the local part to lower case before it is used as a lookup key.
| /Q0801 /Q0802 /Q0803 /Q0804 /Q0805 /Q0806 /Q0807 /Q0808 |
FAQ / Rewriting addresses / Q0804
