Commands to delete all messages containing string... obviously these commands are EXTREMELY dangerous, in both cases the list is generated to a file, which you can then examine and check that it only contains the 'problem' messages and nothing else :-)
DOUBLE CHECK the file before running the command to actually delete the files :-)
ChrisP.
# Windows cd \surgemail\mbox findstr /s /m "THINGTOFIND" u* >delete.txt (examine delete.txt) for /f %i in (delete.txt) do del %i # Linux find /var/surgemail/DOMAINPATH -name "u*" -print | xargs grep -l "THINGTOFIND" | awk '{print "rm \x22"$1"\x22" }' > doit.sh more doit.sh # // check the files are correct, examine them!!! ONLY ONCE YOU ARE CERTAIN!!!! source doit.sh
HI all, We had a phishing message delivered to a bunch of mailboxes that made it past our spam filters. Is there a tellmail command that will let me scan all mailboxes and delete a message from a sender? Thanks Jeff.
HI all,
We had a phishing message delivered to a bunch of mailboxes that made it past our spam filters. Is there a tellmail command that will let me scan all mailboxes and delete a message from a sender?
Thanks
Jeff.
Last Message | Next Message