On Thu, 22 Oct 1998, James Dehnert wrote:
> Mail comes in for
>
> geough.xmeaux@origonal_company.com
>
> Mail goes out to
>
> geough.xmeaux@new_company.com
>
> and a letter saying that geough.xmeaux's address is now
> geough.xmeaux@new_company.com is sent back to the sender
There are several ways you could do this. One that springs to mind is to
put in a special transport and director to handle the messaging, like
this:
#transport
message_transport:
driver = autoreply
from = postmaster@xxxxx
to = $sender_address
text = "${local_part}'s address is now ....."
user = mail
#director
message_sender:
driver = smartuser
transport = message_transport
domains = original_company.com
condition = $sender_address
unseen
This is completely untested and off the top of my head. Then you deal
with sending the message to its correct destination using a conventional
alias file. Or even a smartuser like
new_company:
driver = smartuser
domains = original_company.com
new_address = $local_part@new_company.com
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
--
*** Exim information can be found at
http://www.exim.org/ ***