I have a few emails in my mailq which are bounced for a good reason, the email address is wrong.
I was wondering if it is possible to modify the address of the recipient on the fly.
I can see the directory where the mail deferred are stored and I could probably change something there, but i am wondering if there is a proper way to do this.
Any thought?
Best Answer
The best way (or the least intrusive way) would be to have an address rewrite for that recipient. From the Postfix Address Rewriting
Following this example, you could try:
Add to the
generic
file or create it with:and build the associated map:
Add to
main.cf
:make Postfix load this configuration change:
smtpd
will usegeneric
to rewrite the problematic address upon next scan of queue.