Operating System - HP-UX
1836178 Members
2553 Online
110096 Solutions
New Discussion

sendmail queuing required for reducing load on other mailers

 
Mike_Ca Li
Regular Advisor

sendmail queuing required for reducing load on other mailers

I'm using Eric Allman's sendmail 8.7
Want to know to configure and run the sendmail daemon so that sendmail will run only if there is a certain amount (eg 5) of email messages in queue so that . Is it something like:

sendmail -bd -oc

Thanks
Mike
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: sendmail queuing required for reducing load on other mailers

Side note: Your sendmail version is somewhat out of date, exposing you to several years worth of security flaws.

Monitoring the thread, interested in the answer.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Andrew Cowan
Honored Contributor

Re: sendmail queuing required for reducing load on other mailers

I've never heard of a trigger using the number of messages, but the standard way is not to run the sendmail daemon full-time, but to trigger it on a regular basis from a cron script. E.g. every 30 minutes.
Balaji N
Honored Contributor

Re: sendmail queuing required for reducing load on other mailers

hi,
i am not sure if there is a simple approach.
but here is a work around.
1. configure sendmail to queue messages and also set the HoldExpensive Flag on. This will cause messages to be queued.
2. Setup a cron job, to find the no of messages in queue and if it is greater than 5,send all messages with sendmail -q.

hth
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.