Fabio Viero wrote:
On Wed, May 13, 2009 at 2:54 PM, Scott Haneda <talkli...@newgeo.com> wrote:
On May 13, 2009, at 10:40 AM, Fabio Viero wrote:

I need to do something like this:

Someone sends an e-mail to u...@domain.com
Someone gets a reply from postfix saying "User has moved to
newu...@newdomain.com"
I need postfix to STILL deliver the message to u...@domain.com (which
doesn't happens)

I tried using relocated with virtual aliases, transport with virtual
aliases but neither worked (or were not correctly configured). I can
send the reply informing that the user has moved, but cannot make
postfix still deliver the original message. I want this because the
users had not actually moved yet, itÅ› going to be a gradual process.
I may be totally wrong on this, but how about an auto-reply?
You would have u...@domain.com auto reply for the time being with the
message you desire.

http://www.postfix.org/VIRTUAL_README.html#autoreplies

This will allow email to deliver as usual to u...@domain.com.  I would also
configure u...@domain.com t pass messages off from that account to the
newu...@newdomain.com account.

This is how I would approach it, though I am nut sure how to configure it,
the docs at the link above seem a  good starting point.
--
Scott * If you contact me off list replace talklists@ with scott@ *



Thanks for your reply

We thought about doing that but actually this system we're talking
about is just a mail gateway in front of an exchange server, so there
are no accounts there, no users, no home dirs...

You can still do an auto-reply using scripts. Hand off the user's message, then send it to the new location. I used smtpd_recipient_restrictions and created a list. I then passed this on to the autoresponder once a user/input validation script made did a few checks. After this, the script sends it on its merry way.

RCR


Reply via email to