HELP + URGENT: Need to requeue 2400 mails from quantine to be reprocessed

Questions and answers about how to do stuff
Post Reply
SupportOU
Posts: 47
Joined: 12 Sep 2016 18:47

HELP + URGENT: Need to requeue 2400 mails from quantine to be reprocessed

Post by SupportOU » 06 Mar 2018 13:59

Hi there!
Anyone knows how to requeue mails from the quarantine to be reprocssed? The mails are in subfolders like /var/spool/MailScanner/quarantine/20180306/4DAD720089.A3D0A which contains a file 'message'.

I tried to use postdrop (postdrop < message and postdrop -r < message). I also tried copying te file to incoming folder from MailScanner as well the incoming folder from postfix. But nothing happened, maillog says nothing file stays there, have set owner and user to 'postfix'.

The GUI is not usefull for this, so if anyone can give me a hint, that would be great!!!

My end users are waiting for their mails and keep calling, sigh ...

Quarantine Whole Message = yes
Quarantine Whole Messages As Queue Files = no

Guess I should better set the 'no' to a 'yes'?

Grtz,
Ronald

User avatar
pdwalker
Posts: 1170
Joined: 18 Mar 2015 09:16

Re: HELP + URGENT: Need to requeue 2400 mails from quantine to be reprocessed

Post by pdwalker » 06 Mar 2018 18:24

Question: why did the messages get quarantined in the first place?

SupportOU
Posts: 47
Joined: 12 Sep 2016 18:47

Re: HELP + URGENT: Need to requeue 2400 mails from quantine to be reprocessed

Post by SupportOU » 07 Mar 2018 06:53

I had an mail storm coming in, filling up the incoming partition, new messages could not be placed in incoming and were moved to the quarantine, which is on the /var partition which has more space. So I needed to reprocess all these messages.

found out sendmail -toi < message was my friend.

See: http://blog.windhoek24.com/releasing-em ... ilscanner/

esp the line sendmail -toi < /var/spool/MailScanner/quarantine/YYMMDD/[spam|nonspam|msgid]/message

Post Reply