- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Limit number of Messages
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:27 AM
тАО11-19-2003 03:27 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:42 AM
тАО11-19-2003 03:42 AM
Re: Limit number of Messages
# single thread deliveries (requires HostStatusDirectory)?
#O SingleThreadDelivery
Uncomment the last line and restart sendmail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 03:53 AM
тАО11-19-2003 03:53 AM
Re: Limit number of Messages
you may control the message flow depending on the system load using two parameters in /etc/mail/sendmail.cf:
# Queue-Only Load Average (option QueueLA): #
# #
# In order to limit load on a very busy system, sendmail can be #
# configured to queue up low priority messages rather than attempt #
# delivery immediately if the five-minute load average is greater #
# than some integer value, by default 8. This value is defined on #
# the line beginning O QueueLA=. #
# #
# Refuse-Connections Load Average (option RefuseLA): #
# #
# In order to limit load on a very busy system, the sendmail daemon #
# can be configured not to accept SMTP connections if the five- #
# minute load average is greater than some integer value, by #
# default 12. This value is defined on the line beginning #
# O RefuseLA=.
NOTE: The load average is set as seen in top.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 08:47 AM
тАО11-19-2003 08:47 AM
Re: Limit number of Messages
Secondly, (and I could be wrong here) it sounds like Juan's answer is limiting mail being sent to sendmail.
I am looking at limiting at mail being sent from sendmail. The Sendmail server is a relay server which relays mail from the internet to a couple of internal SMTP gateways. The problem that I have is when Sendmail opens a connection with the internal gateway it delivers all of the email that it has which causes the internal server to choke. I want to balance this load across a number of internal gateways. The only way that I can think of is to limit the number of messages being passed to the internal gateway before it breaks the connection and creates a new one with a different gateway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 08:25 PM
тАО11-19-2003 08:25 PM
Re: Limit number of Messages
What you might be looking for is the following parameter in sendmail.cf:
# how many jobs can you process in the queue?
#O MaxQueueRunSize=10000
as well as the folowing two, but I'm not sure if these would be helpfull.
# maximum number of children we allow at one time
#O MaxDaemonChildren=12
# deliver each queued job in a separate process?
#O ForkEachJob=False
HTH
Kasper
HP sendmail OpenMail support engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-19-2003 08:32 PM
тАО11-19-2003 08:32 PM
Re: Limit number of Messages
As you can see there are 3 ways to do this as per others replies;
1. single thread sendmail
2. sendmail keyed to server load (as per uptime command) If server is quiet then it can run lots of processes, if busy then not.
3. limit sendmail to X children - ie. X processes only.
To not impact mail delivery too much I would try option 3. first and adjust the number of child processes until you find a balance. Using option 1. may reduce your mail throughput considerably.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-20-2003 01:06 AM
тАО11-20-2003 01:06 AM
Re: Limit number of Messages
If I activate the following, does that mean that each queue job will try to resolve the address for each job?
# deliver each queued job in a separate process?
#0 ForkEachJob=False
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-10-2003 09:18 PM
тАО12-10-2003 09:18 PM
SolutionThe answer to your last question, took a little while, but here it is:
When you set ForkEachJob, each message in the queue will have a process to deliver the message. Each forked job will do a resolver call to get the IP/Hostname to canonicalize..
This paramater is really only needed in a memory starved system. It will not provide any load balancing.
Sendmail will randomize MX records of equal value. You can verify this by doing a 17.1 (host signature). Load balancing should occur automatically when the mx records are of equal priority.
I hope this clarifies this.
Kasper
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2003 03:39 AM
тАО12-11-2003 03:39 AM