Denis BUCHER
Denis BUCHER

Reputation: 320

Is it possible to redirect specific messages to a recipient in Postfix?

Currently I have plenty of emails in my postfix "hold" queue. These are all emails returned when sending newsletters. (Messages due to mailbox full, invalid email, and so on).

The problem is that these email came back based on different newsletter accounts, with different email lists.

What I would like to do is the following :

For each message in the hold queue, define a rewrite to a specific recipient, for example [email protected] or [email protected].

For example I know that message F4230148D6B5 should go to [email protected], message F422314D10C3 should go to [email protected], and so on...

Do you know if there is some way to do that in postfix ?

Any advice or idea will be appreciated :-)

Thanks a lot !

P. S. Sorry if this question is rather original or out of normal usage !

Upvotes: 1

Views: 294

Answers (1)

Farhad Farahi
Farhad Farahi

Reputation: 39387

I'm handling your problem differently. I'm parsing mail.log daily via bash script, getting permanent and temporary failures from it, then I unsubscribe them from newsletters depending on my policy.

Upvotes: 1

Related Questions