On 2008-01-26 17:08, Luke Sheldrick wrote:
 > Hello,
 >
 > Another quick question, I personally utilise receipent forwarding or
 > whatever it is called, i.e. [EMAIL PROTECTED] will come to
 > [EMAIL PROTECTED]
 >
 > However to reply to groups, I have subscribed to using this method, means
 > the mail has to come from that address. The way I am doing it, is to 
setup a
 > new imap account in my email software. However this is getting all a bit
 > much :P
 >
 > Is there a way to get exim to rewrite the from, if the to is a paticular
 > address. I.e. If a mail comes from [EMAIL PROTECTED], destined for
 > [EMAIL PROTECTED], it can rewrire it to [EMAIL PROTECTED]
 >
 > I am guessing it can, but havent a clue on the config.
 >
 > Cheers
 >
I just did this using a system filter (named myfilter here) and containing:

# Exim filter
if $h_to: contains "xxxxxx" then
headers remove "From"
headers remove "Reply_To:"
headers add "From: yyyyyy qqqqqq <[EMAIL PROTECTED]>"
endif

Add to the main config file something like:
system_filter = /etc/exim/myfilter
system_filter_user = exim





-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to