We have a list of users who no longer have mailboxes in our Exchange environment. We want to have a very specific reply to these users with a possible custom variable.
I thought Postfix would possibly work for this. When it gets a message, it should:
- If address is in list: Automatic reply with a bounce-back message (or just a normal e-mail). Message should include a new address; maybe have a database table that translates the old address to new address?
- If address is not in list: Send it to exchange.example.com mailhost.
Anyone done something similar and could give me an idea of how to accomplish this?
Best Answer
You may use check_recipient_access to specify access map/table with custom reject messages for some recipients e.g.
You may use the above to accept messages to listed valid recipient (see
DUNNO
access action), reject messages to "moved" recipients with custom message, reject messages to non existing recipients.WARNINGS: