Operating System - HP-UX
1747985 Members
4776 Online
108756 Solutions
New Discussion юеВ

Can we limit the number of emails sent by sendmail?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

Can we limit the number of emails sent by sendmail?

Can we limit the number of emails sent by sendmail?

HPUX 11.0 sendmail 8.9.3.1

We want to limit the number of emails that sendmail sends at any one time (say 100 emails every 10 seconds). Is this possible?
Sometimes we get flooded with emails and they fill up the process table on the system.

10 points to any good answer.
TIA, Gino
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: Can we limit the number of emails sent by sendmail?

There is a sendmail macro file called:

generic-hpux10.mc


In /usr/newconfig/etc/mail/cf/cf

It can be modified to do all kinds of limiting things to sendmail. It can limit the number of recipients, it can limit the frequency and size of emails.

There is an hpux adaptation of that script linked off the front page of http://www.hpux.ws

This is sendmail macro work. It can also be done in sendmail.cf but doing the macro programming and using the script gives you the opportunity to change the configuration and generate sendmail.cf via automation/cron.

For details on sendmail macro programming, see http://www.sendmail.org

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
Gino Castoldi_2
Honored Contributor

Re: Can we limit the number of emails sent by sendmail?

Steven,

Any ideas on how to limit the frequency of emails being sent. (I have no experience with sendmail).

10 points to any good answer.
TIA, Gino
Steven E. Protter
Exalted Contributor

Re: Can we limit the number of emails sent by sendmail?

in the aforementioned .mc file

define('confCONNECTION_RATE_THROTTLE','10')

that will surely help

define('confMAX_DAEMON_CHILDREN','200')

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