Re: [Exim] Address rewriting active for exim, inactive for t…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Hans A Malissa
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Address rewriting active for exim, inactive for the recipient
Am Dienstag, 2. Dezember 2003 21:33 schrieb Marek Szuba:
> Hello,
>
> I haven't even managed to solve my previous problem (too bad nobody
> seems to have any ideas what's wrong) and here's another one. The
> following rules exist in the config:
>
> *@myhost.mydomain.com   $1@??? FrfsR
> *@*.internal     $1@??? FrfsR

>
> And once again the problem couldn't be that it simply doesn't work, oh
> no... "exim -brw" tests show the addresses rewritten as they should be,
> log entries for outgoing messages (created with mutt or mailx, haven't
> tested other clients) show mail.mydomain.com instead of
> myhost.mydomain.com - but when the recipient opens the message, it's
> myhost everywhere.
>
> I simply do not understand it... Been staring at the manual for hours,
> to no avail. Could you help?
>
> Regards,
> --
> MS
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
> details at http://www.exim.org/ ##


Glad to see that I'm not the only one having the same problem...
In my /etc/exim.conf, I have a line:

begin rewrite

*@* ${lookup{$1}dbm{/etc/email-addresses.dbm}{$value}fail} bctfrF

and /etc/email-addresses looks like:

hans: hans.malissa@???

/etc/email-addresses.dbm was created by

# exim_dbmbuild /etc/email-addresses /etc/email-addresses.dbm

when I test the rewriting configuration, it seems to work:

# exim -brw hans
sender: hans@???
from: hans.malissa@???
to: hans.malissa@???
cc: hans.malissa@???
bcc: hans.malissa@???
reply-to: hans.malissa@???
env-from: hans.malissa@???
env-to: hans@???

But when I try to send any email, they seem to be coming from
Hans Malissa <hans@>

So this is the same problem. I don't know what's wrong, the syntax of the
rewrite line in /etc/exim.conf seems to be right.
I'd be glad to get any suggestions on that.

/hans