Postfix requeing missed message to be processed by milter

0

I have a situation where we missed configuring smtpd_milters in main.cf, but lots of emails have come in and stored at /var/spool/postfix/deferred queue. Now that I have fixed the smtpd_milters in the postfix configuration, I want those emails that have already stored in deferred queue to be processed by milter. Is there anyway to achieve it? I tried moving those files around to incoming, active etc., but not helping. Any help here would be great!

Sathish Kumar

Posted 2017-10-06T19:30:26.407

Reputation: 1

Answers

0

Since you are running postfix, you can try the command:

postqueue -f

This will cause postfix to flush the queue and attempt to deliver all queued messages. Alternatively, you can use:

postqueue -i <queue_id>

to schedule immediate delivery of the message identified by <queue_id>. that way you can try out your milter settings before actually flushing the entire queue. You can read more about postqueue on the postqueue documentation page.

Justin Pearce

Posted 2017-10-06T19:30:26.407

Reputation: 2 712