postfix autoreply for old users

Hi

We are using postfix for mail delivery. I would like to know if it is possible to autoreply to mails saing that a user have moved email address. Ideally the user should not need an user account.

So the case is:
someone sends a mail to testuser@example.com, but he has recently stopped working here. We would now like to reply that testuser@example.com does not exist anymore but his new mail is testuser@someothermail.com.

Best regards
Troels

You can probably set up an alias that pipes into a procmail autoreply script.

Have a look at the procmail man page for a sample .forward pipeline that should be possible to use in /etc/aliases file.

Seems doable. Thanks for the tip.