Help - Search - Members - Calendar
Full Version: Mail que question
The Planet Forums > Control Panels > cPanel/WHM
Lippy
I am noticing that there are alot of old emails that have been bouncing in my mail queue. Is there any way to delete them and stop them from re-appearing? Thanks for any help.
binbash
QUOTE
Originally posted by Lippy
I am noticing that there are alot of old emails that have been bouncing in my mail queue.  Is there any way to delete them and stop them from re-appearing?  Thanks for any help.


Hello,

You mean lot of mails keeps comming to your mail queue , NOT from outside?. Are these from/to same address or random ones? If to same one, there could be some kind of error generated by one of the email/address/autoresponse.

Try stopping exim, then clear all mails in the queue and restart exim.
/ect/rc.d/init.d/exim stop
cd /var/spool/exim/input
rm -rf ./*
/ect/rc.d/init.d/exim start

MAKE SURE THAT YOU ARE IN /var/spool/exim/input BEFORE YOU DO "rm -rf" OR ELSE YOUR WHOLE SERVER WILL BE IN MESS


After this, tail exim log and watch for the address triggering this.

tail -f /var/log/exim_mainlog


Thanks
/bin/bash
Silverado
This can also be done in your crontab or at the shell command prompt.

rm -rf /var/spool/exim/input/
the first time you run it you may get a "directory not empty" message.... just repeat the command again.

If you set this up in your crontab

edit /etc/crontab

add the line (to clean it out at midnite daily)

00 00 * * * root rm -rf /var/spool/exim/input/

the same can be done for you /msglog/ if you want to.
Just be very careful with the rm -rf commands... as mentioned earlier.... it can really do some damage if you use it incorrectly.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.