I need help with email redirection

Top Page
Delete this message
Reply to this message
Author: Steven A. Reisman
Date:  
To: exim-users
Subject: I need help with email redirection
I use exim 1.62 to host a virtual domain for a customer who wants all
email forwarded to his AOL account. That is, any email addressed to:

xxxxxx@???

should be delivered to:

yyyyyy@???


I've tried this with a rewrite rule:

   *@*     ${lookup{${lc:$domain}}dbm{/var/lib/exim/remail}{$value}fail}   T


where /var/lib/exim/remail contains:

   customerdomain.com:       yyyyyy@???



This substitutes nicely, but after the rewrite, exim rejects the message
because it looks like relaying:

1997-08-30 14:09:04 refused relay (host accept) to
webmaster@??? from <zzzzzz@???>
H=host.senderdomain.com [192.168.11.1]


Is there a way to reroute without adding aol.com to "relay_domains"?


-- 
Steven A. Reisman      |     Internet: sar@???
PressEnter!            |  River Falls: 715-426-2100        Fax: 715-426-2111
P.O. Box 312           |   Eau Claire: 715-830-1273
421 N 2nd Street       | New Richmond: 715-246-7060   Somerset: 715-246-7060
River Falls, WI  54022 |  Twin Cities: 612-436-5254   Red Wing: 612-792-5279