[EXIM] help with evelope recipient

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: arb-exim
Dátum:  
Címzett: exim-users
Tárgy: [EXIM] help with evelope recipient
Hi! I have a question:

On my server, I have 2 domains: a.com and b.com

A user, user1@??? receives mail, and has a .forward file:

\user1, user1@???

The mail is delivered once to user1 and then forwarded on.
Now, all mail for b.com is handled by local user2, via an alias file like this:

*@b.com:    user2-$original_local_part
*@sub.b.com:    user2-$original_local_part


And I have ~user2/.forward as follows:

# Exim filter
if $original_domain is b.com
    save Maildir/
elif $original_domain is sub.b.com
    save Maildir-sub/
endif


Normally, this works fine. All addresses to xxx@??? and yyy@??? are
handled OK, since they will have b.com in their envelope to start with.

This is where the problem lies: for a message forwarded from user1's
.forward file, the $original_domain will still be a.com, and so this message
fails to get handled by the filter for b.com. Other than entering a
rewriting rule in the main config file, does anyone have a solution for
this problem?

PS. Philip: exim 2.02 on my server crashed once last week with signal 11 -
still seems there might be some bugs in it. It's doing well otherwise.

--
Anand

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