Advertisement
scriptz-team

[USAGE-HELP] QMAiL REPAiR QUEUE

Apr 29th, 2012
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. _____ _____ _ _____ _____ _____ _____ _____ _____
  2. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  3. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  4. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|████████████████████████████
  6.  
  7. - iNfO -
  8.  
  9. [USAGE-HELP] QMAiL REPAiR QUEUE
  10.  
  11. - NOtIcE -
  12.  
  13. SCRiPT: http://pastebin.com/uJECFNQF
  14.  
  15. LOGiN TO SSH:
  16.  
  17. copy the script from http://pastebin.com/uJECFNQF and call it as repair.py and run as repair.py --repair or see repair.py --help
  18.  
  19. then
  20.  
  21. /usr/local/etc/rc.d/qmail.sh stop
  22. cd /var/qmail/queue && find intd todo local remote mess info bounce -type f -print |xargs rm
  23. /usr/local/etc/rc.d/qmail.sh start
  24.  
  25. Start qmail back up, and the queue should be empty. Note that if you only wanted to clear out bounce messages (a fairly frequent cause of mailservers getting wedged) you could abbreviate the find part of the sequence above like so:
  26.  
  27. cd /var/qmail/queue && find bounce -type f -print |xargs rm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement