Re: [exim] How do I implement .REDIRECT behaviour in exim4?

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Magnus Holmgren
Data:  
Para: exim-users
Asunto: Re: [exim] How do I implement .REDIRECT behaviour in exim4?
On Monday 22 January 2007 14:25, Staffan Emrén wrote:
> It might be me not good enough at reading docs and searching lists, but I
> have not been able to solve this one. My incoming SMPT server runs exim4,
> version 4.50, on debian 3.1. I have some ex-employees whose mail I want to
> forward with a sendmail-like .REDIRECT-behaviour, that is in addition to
> the mail being forwarded, the sender gets a message that the person have a
> new mail address. Is it possible to do this in this version of exim?


Certainly.

You can use a filter (in the standard .forward file, if you use those):

# Exim filter
if personal then
 mail subject "Staffan has a new address"
      text "Please use staffan@??? in the future."
endif
deliver staffan@???


See http://www.exim.org/exim-html-4.66/doc/html/filter.html for more details.

There are more advanced methods possible. Recent versions of Exim can return a
251 status code to the RCPT command, indicating that the message will be
delivered but there is a new address (not many MTAs are likely to present
that information to the user though). If you have cleaned out the accounts of
the ex-employees (and not merely locked them) and thus can't simply
use .forward files, or if you have a more advanced setup, you can use a
special router that does the same thing. The possibilities are endless.
Please tell us more about your environment if the above doesn't suit you.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)


"Exim is better at being younger, whereas sendmail is better for
Scrabble (50 point bonus for clearing your rack)" -- Dave Evans