Exim and Mail Queue

babarhyd

New member
Joined
Nov 29, 2007
Messages
3
Since last few days my Mail Queue is going out of control, I had to manually send the mails by pressing retry button. The problem is its not sending mails now. Although I receive emails from other servers but I cannot send local mails to remote mail servers. I have now stopped Exim to delete my Mail Queue. Its not even deleting old frozen emails neither they are being flagged FROZEN. Can you guys please help me out here a bit?
 
Go into /var/spool/exim/input using ssh then rm -f * to delete everything if thats what you want to do.
 
Well Mail Queue is gone! and have updated the whole system and restarted it after 3 months! Checking mailing system now! :)
 
its still the same! Mail Queue log is gathering up again and I had to send them manually. Any help would be appreciated
 
What do you mean by mailqueue is gathering up again? You wanted to know how to remove frozen files and messages which is what i suggested you do. But now your saying the queue is filling up again? If thats true you probably have some spammer pumping messages inbound. Why its not delivering is anyones guess. One would need to look at your server to find out exactly whats going on. Pretty much impossible to do via the forums.
 
pucky, your answer was over simplified, and it deleted all the email in the queue's input folder, but none in the msglog folder, so it didn't really delete the queue at all. However it made all the email undeliverable.

To delete only frozen messages:
Code:
# exiqgrep -z -i | xargs exim -Mrm[/quote]
or to delete all message from a certain sender:
[code]exiqgrep -i -f [email protected] | xargs exim -Mrm
but the above only work if exiqgrep is installed on your server.

The easiest way to delete all messages is to:

a) stop exim from the DA control panel
b) delete the entire contents of both the /var/spool/exim/input and the /var/spool/exim/msglog directories.
c) restart exim from the DA control panel

babarhyd,

Since you didn't post any specific entries from your /var/log/exim/mainlog file we can't tell why all your email is being frozen, but I can guess.

From your shell, try to resolve the recipient domain in any of your outgoing emails. If it doesn't resolve, your local resolving DNS is broken.

Jeff
 
The file should be there its included with exim that directadmin distributes...

/usr/sbin/exigrep
 
mr.applesauce: Please read carefully before you post. exigrep and exiqgrep are two different programs.

You can get exiqgrep (which comes with exim's tarball as distributed at exim.org, but not in the default DirectAdmin install), can be obtained from my website. It must be renamed from exiqgrep.txt to exiqgrep before using; I have it as a .txt file to make it easier to download rather than run automatically.

Once you download it you should install it at the same location, /usr/sbin/ and give it the same ownership and permissions as exigrep which is a completely different program.

Jeff
 
babarhyd have you had any luck?

the same thing is happening to my mail. everytime vbulletin trys to send an email it gets put into an mail exim process and it almost seems to build on itself, as if the the servers blocking it(like spam or soemthing) and the server loads go off the charts, if i reset the exim, the emails seem to send, and if i dont kill vbulletin the mail builds right back up over loading the server.
 
the same thing is happening to my mail. everytime vbulletin trys to send an email it gets put into an mail exim process and it almost seems to build on itself, as if the the servers blocking it(like spam or soemthing) and the server loads go off the charts, if i reset the exim, the emails seem to send, and if i dont kill vbulletin the mail builds right back up over loading the server.
The answer to this will certainly be found in your exim mainlog; a careful read will tell you what's happening to the mail.

Jeff
 
Back
Top