Spool Counter?

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
User avatar
ditoh1
New user
New user
Posts: 7
Joined: 2011-06-09 21:09
Location: Washington DC

Spool Counter?

Post by ditoh1 » 2011-06-23 15:50

Hi All,
I was wondering if there is a script, or any type of application that would check the spool, and, depending on its size, send a notification via email; you know, in case of a spam attack.

Thanks!

-D
Thanks!!!

-D

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Spool Counter?

Post by ^DooM^ » 2011-06-23 16:56

none to my knowledge but you can easily access the database and check how many messages are in the queue or access the data directory and see how many files are in there.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Spool Counter?

Post by Bill48105 » 2011-06-23 18:33

Actually I believe JamesDR in IRC made such a beast & thought he planned to share in the scripting forum but will check with him.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

rolaids0
Normal user
Normal user
Posts: 150
Joined: 2010-04-27 02:03
Location: Florida
Contact:

Re: Spool Counter?

Post by rolaids0 » 2011-06-23 19:09

Does with Nagios, however, could be modified to suit.

http://www.hmailserver.com/forum/viewto ... 20&t=20057

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Spool Counter?

Post by Bill48105 » 2011-06-23 19:15

Woo cool thx James! Reminds me I need to get that up & running here.
Bill
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Bill48105
Developer
Developer
Posts: 6192
Joined: 2010-04-24 23:16
Location: Michigan, USA

Re: Spool Counter?

Post by Bill48105 » 2011-06-23 22:20

OK I posted up a mod'd version of rolaids0 queue script that doesn't require nagios so can be run from task scheduler or called from monitoring tool (checking the return code if desired) where it sends an email if the queue is above the defined limit: http://www.hmailserver.com/forum/viewto ... 32#p126932
hMailServer build LIVE on my servers: 5.4-B2014050402
#hmailserver on FreeNode IRC https://webchat.freenode.net/?channels=#hmailserver
*** ABSENT FROM hMail! Those in IRC know how to find me if urgent. ***

Post Reply