OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Configure message back to sender

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Tue Apr 22 2008 - 12:44:35 CDT


Gerry Massat wrote:
> mouss wrote:
>> LinuxCorporate [ Postfix ] wrote:
>>> Hi everybody,
>>>
>>> I'm changing my domain name and I've got some tips from here
>>> how to receive and send messages in both of them, and it works.
>>>
>>> Well, I'd like to know if there's an easy way to send a message
>>> to the sender when it sends e-mail to my old domain.
>>>
>>> If it sends a message to userold_domain.com the user receives the
>>> message (it already working) and a message with a common text should
>>> be sent back to the sender warning about the old_domain changed to the
>>> new_domain and the new mail address is usernew_domain.
>>
>>
>> try vacation.
>>
>>
> Isn't this what relocated_maps is for?
> http://www.postfix.org/postconf.5.html#relocated_maps
> "Optional lookup tables with new contact information for users or
> domains that no longer exist."

Yes, but note that relocated_maps will reject the message with
"relocated to userexample.com" as the rejection reason text.
  Some mail systems mangle reject messages such that the
sender will never see rejection text.

Vacation or similar auto-responder will generate a new message
which may be more likely to be received at the expenses of
somewhat more processing required by your mail server.
Using vacation also allows you to actually receive the message
sent to your old address. This may be desirable during a
domain name transition.

Either vacation or relocated_maps may be appropriate depending
on your needs.

--
Noel Jones