How Can I Redirect Queued Mail in Postfix?
July 13, 2007 3:04 PM
Subscribe
Can I redirect a queued message in postfix?
Ack. A user had forwarding set up to an exchange server that won't talk to the lowly likes of my postfix based mailserver. I've cleaned up their .forward file so that new messages are routed properly, but now there are 160 messages sitting in the queue that still want to go to the exchange server.
The folks running the server don't seem to be very forthcoming about getting things to work on their side, so I'm trying to figure out if there's something I can do to drain the queue into the user's local account.
Throwing the messages back into the queue just results in another attempt and timeout on the exchange server. If I could edit the queued messages in the /var/spool/postfix/deferred directory to change their destination, I should be able to get this cleaned up. However, queued messages aren't in plaintext.
Googling around hasn't shown me anyone dealing with anything similar.
Ultimately, I can use strings to grab content, but that's only a last resort solution for some of the messages if the user can give me specific things to look for for critical messages. I'm not going to do that with all 160 messages though.
Any ideas? Something that can be automated would be ideal.
Thanks!
posted by ursus_comiter to computers & internet (6 comments total)
posted by nicwolff at 3:37 PM on July 13, 2007