- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Odd Sendmail Behaviour
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
Forums
Discussions
Discussions
Discussions
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
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
08-16-2001 07:30 AM
08-16-2001 07:30 AM
Odd Sendmail Behaviour
Any ideas of how I can go about solving this??
Thanks in advance,
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 07:42 AM
08-16-2001 07:42 AM
Re: Odd Sendmail Behaviour
The problem might be caused by bad permissions.
The permissions should be
dr-xr-xr-x bin: bin /etc
dr-xr-xr-x bin:bin /etc/mail
-rw-r--r-- root:sys /etc/mail/aliases
-rw-r--r-- root:mail /etc/mail/aliases.db
After checking the permissions, stop and re-start sendmail
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail -q -v
(to force immediate processing of sendmail's message queue)
-HTH
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 07:48 AM
08-16-2001 07:48 AM
Re: Odd Sendmail Behaviour
Knowledge Base document #KBRC00002189 suggests that this may be a permission problem:
/begin_quote/
PROBLEM
The sendmail process is at the top of the list as far as CPU usage. Attempts to stop sendmail using:
/sbin/init.d/sendmail stop
result in the following errors:
"hash map "Alias0": unsafe map file /etc/mail/aliases.db: world writable directory"
"hash map "Alias0": unsafe map file /etc/mail/aliases: world writable directory"
RESOLUTION
These types of problems often are due to a permission problem either on the /etc/mail/aliases, /etc/mail/aliases.db file, OR on one of the parent directories, namely /etc or /etc/mail.
To resolve the problem, make sure the following
permissions are set:
dr-xr-xr-x 29 bin bin 6144 May 10 12:30 /etc
dr-xr-xr-x 2 bin bin 1024 May 10 13:43 /etc/mail
-rw-r--r-- 1 root sys 835 Aug 30 1999 /etc/mail/aliases
-rw-r--r-- 1 root mail 32768 May 10 13:43 /etc/mail/aliases.db
/sbin/init.d/sendmail stop
should now work.
Re-start it using:
/sbin/init.d/sendmail start
and run:
sendmail -q -v
to force immediate processing of sendmail's message queue.
/end_quote/
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 07:50 AM
08-16-2001 07:50 AM
Re: Odd Sendmail Behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:05 AM
08-16-2001 08:05 AM
Re: Odd Sendmail Behaviour
I'd delete the ancient stuff.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:09 AM
08-16-2001 08:09 AM
Re: Odd Sendmail Behaviour
The delete may take some time. When I ran the sendmail -q -v it was processing about 300 and then hanging on one indefinitely, this process then acted just like the others and started consuming CPU time while not appearing to do much else. Do you know of a way to find out more info about why it was hanging??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:21 AM
08-16-2001 08:21 AM
Re: Odd Sendmail Behaviour
How does the mail.log look? does it say that there are any problems (like mail undeliverable)? You could look in the syslog for kicks as well.
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:31 AM
08-16-2001 08:31 AM
Re: Odd Sendmail Behaviour
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:32 AM
08-16-2001 08:32 AM
Re: Odd Sendmail Behaviour
I think Mark meant check the mail.log, anyway,
before you noticed the problem was sendmail running? 44254 is a lot of mails, but did they indicate the cron job ran or failed? ;)
how long has the machine been up?
Just do a "grep rebooted /var/adm/syslog/mail.log" that would give an idea if anyone else tried bouncing sendmail on that machine.
But good your problem is resolved
-Regards
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:37 AM
08-16-2001 08:37 AM
Re: Odd Sendmail Behaviour
If you don't really care about the mails in the queue, i think it is safe to delete all the files in the /var/spool/mqueue.
-Regards
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 08:40 AM
08-16-2001 08:40 AM
Re: Odd Sendmail Behaviour
Any sendmail experts around?!?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 09:10 AM
08-16-2001 09:10 AM
Re: Odd Sendmail Behaviour
We had this problem once, where the messages would just queue up. Further investigation revelead that the load average on the machine was high. Sendmail (by default) only queues message when the load average gets above 8.
There are certain parameters in the sendmail.cf
QueueLA=8, change it a higher number.
Also there is another parameter RefuseLA=12, which indicates sendmail will refuse connections if the load average goes above 12. change these parameters to a higher number and restart sendmail.
That might help
-I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 10:00 PM
08-16-2001 10:00 PM
Re: Odd Sendmail Behaviour
You haven't said anything about the system and network configuration. If you're sending mails to the internet maybe there is bottleneck in your connection. Be also very carefull with big messages. Sendmail doesn't handle them very well and can even make the OS crash. If it is not a problem set the MaxMessageSize in sendmail.cf in to something small (a couple of Megs) and see if smaller messages are exchanged easier. From my experience the REAL problems in sendmail come either from a big number of huge mails or network routing and name resolving problems. Check them both...
Regards
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2001 01:40 AM
08-17-2001 01:40 AM