Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my queues get bogged up every hour

Status
Not open for further replies.

pdotd

Programmer
Jun 15, 2004
29
CA
hey there,

i receive email from about 10 different account and get around 1000 plus emails day, however every hour when i check my queue i will have:

messages in queue: 23
messages in queue but not yet preprocessed: 27

and when i check the queues in the morning i have:

messages in queue: 1276
messages in queue but not yet preprocessed: 1278

so everytime my queues get clogged, i have run:
ps afx | grep qmail-send

which gives me:

70734 ?? I 0:00.17 qmail-send
71477 p0 R+ 0:00.00 grep qmail-send
388 con- I 0:00.27 supervise qmail-send

then i kill the qmail-send process:

kill -9 70734

i keep doing this till i get 0 messages in my queues
ex:
messages in queue: 0
messages in queue but not yet preprocessed: 0

so if anyone knows how to fix this problem from qmail clogging up it would be greatly apprecaited.

thanks

 
The spammers do most their dirty work at night (USA) and you are probably finding that your queue is populated with bounces and undeliverables. I find that setting your queuelifetime to about a day is useful. This has the effect of making mail undeliverable after a day to anyone whose mailserver is down, but if they're down for a day, there's no reason to believe that their server will be up in any particular period of time.

You could address a potential failure of qmail send by adding a command in your crontab to do "killall qmail-send" once an hour or something. This may lead to some bad hygene or other unwanted issues, but it will keep the daemon running - assuming you're using daemontools to run your qmail-smtpd

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
what would be the code to put in the qmailctl script to run the killall qmail-send command every hour.


pdotd
 
add it to your crontab run hourly by the 'cron' process that almost every unix/linux runs.

see 'man crontab' for more help or google your way to knowledge. This has nothing to do with qmail.
the actual command is "killall qmail-send"

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top