- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sendmail not sending or receiving email
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
12-19-2005 07:02 AM
12-19-2005 07:02 AM
sendmail not sending or receiving email
We have Sendmail 8.13.1 running on an HP-UX 10.20 secure system. The daemon appears to be running but e-mails are not being send or received on the server. I did a check of the /var/adm/syslog/mail.log file and discovered the following entry:
unable to write pid to /etc/mail/sendmail.pid: Permission denied
How would I go about correcting this issue? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:04 AM
12-19-2005 07:04 AM
Re: sendmail not sending or receiving email
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:09 AM
12-19-2005 07:09 AM
Re: sendmail not sending or receiving email
-r--r--r-- 1 bin bin 64302 Aug 24 15:03 sendmail.cf
-r--r--r-- 1 bin bin 1047 Jun 13 2005 sendmail.cw
-rw------- 1 root mail 34 Dec 18 14:02 sendmail.pid
check the pid in the sendmail.pid file and do a ps -ef |grep on it....make sure that pid is actually running and owned by root. It should return something like:
root 1960 1 0 14:02:04 ? 0:54 sendmail: accepting connections on port 25
also try running sendmail -q to see if it will flush out the queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:24 AM
12-19-2005 07:24 AM
Re: sendmail not sending or receiving email
Please check if the Sticky Bit is still set on sendmail (I think it is in /usr/bin)
If this is a hardened system it is possible that is set to 555 instead od 4555.
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:35 AM
12-19-2005 07:35 AM
Re: sendmail not sending or receiving email
I ran through the checks that had been suggested, and here are the results:
The root user, which runs mail, has full permission to the /etc/mail folder, while the bin group has read/execute permissions, as do do others.
The permissions on the sendmail.pid file are the following: root is the owner while smmsp is the group. The permissions on the file are rw for root and nothing for group and others.
I did a ps -ef |grep sendmail.pid command, and there was no listing of the file. I also did an /usr/sbin/sendmail -q command and simply got a shell prompt.
The permissions on the /usr/sbin/sendmail file are as follows:
-r-xr-sr-s 1 root smmsp 820492 ... sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:38 AM
12-19-2005 07:38 AM
Re: sendmail not sending or receiving email
-r-sr-sr-t 1 root mail 1019904 Oct 29 2003 /usr/contrib/sendmail/usr/sbin/sendmail
chmod +t your sendmail binary
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:41 AM
12-19-2005 07:41 AM
Re: sendmail not sending or receiving email
What does the t permission do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:43 AM
12-19-2005 07:43 AM
Re: sendmail not sending or receiving email
t Add or delete the save-text-image-on-file-
execution (sticky bit) permission. Useful
only if u is expressed or implied in who.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 07:56 AM
12-19-2005 07:56 AM
Re: sendmail not sending or receiving email
sendmail checks if it has write access to the directory in which it wants to create a file without granting special privileges to 'root'.
To have sendmail run properly, the directories /etc, /etc/mail, and/or /var/run should be owned by root and be writable by its owner.
can you test the following:
cd /etc/mail
touch test
check permissions
drwxr-xr-x root sys /etc
drwxr-xr-x bin mail /etc/mail
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:01 AM
12-19-2005 08:01 AM
Re: sendmail not sending or receiving email
in it you should see the process id for the sendmail daemon along with maybe some options that sendmail is running with. This pid in this file is what you should be looking for in your ps -ef command....to make sure that the sendmail daemon is running with this pid and not some other pid.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:20 AM
12-19-2005 08:20 AM
Re: sendmail not sending or receiving email
I checked the permissions on the /etc directory, and they were the following:
drwxr-xr-x 26 root bin ... etc
The permissions for the /etc/mail directory were as follows:
drwxr-xr-x 3 root bin ... mail
I then did a cat command on the sendmail.pid file, and here is the output:
1825
/usr/sbin/sendmail -bd
-OPrivacyOptions=noetrn
-ODeliveryMode=queueonly
-OQueueDirectory=/var/spool/mqueue.in
When I ran a ps -ef |grep sendmail command, the results came back as:
root 1825 1...sendmail:accepting connections
root 1035 1...sendmail:Queue runner@00:30:00
for /var/spool/mqueue
root 1827 1...sendmail:Queue runner@00:30:00
for /var/spool/mqueue
I have not set the t sticky bit as of yet. Shall I proceed with setting it up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:25 AM
12-19-2005 08:25 AM
Re: sendmail not sending or receiving email
Check how sendmail is started within the /sbin/init.d/sendmail?
with -bd or just -q30m
GoodLuck
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:28 AM
12-19-2005 08:28 AM
Re: sendmail not sending or receiving email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:32 AM
12-19-2005 08:32 AM
Re: sendmail not sending or receiving email
I checked the /sbin/init.d/sendmail script and the following two lines appeared in it:
/usr/sbin/sendmail -bd
-OPrivacyOptions=noetrn
-ODeliveryMode=queueonly
-OQueueDirectory=/var/spool/mqueue.in
/usr/sbin/sendmail -q30m && echo "sendmail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:34 AM
12-19-2005 08:34 AM
Re: sendmail not sending or receiving email
/var/spool/mqueue is empty.
total requests: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:36 AM
12-19-2005 08:36 AM
Re: sendmail not sending or receiving email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:39 AM
12-19-2005 08:39 AM
Re: sendmail not sending or receiving email
I checked the mail.log file and there are entries as recent as 16:38 EST.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:41 AM
12-19-2005 08:41 AM
Re: sendmail not sending or receiving email
Cheers!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:47 AM
12-19-2005 08:47 AM
Re: sendmail not sending or receiving email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:49 AM
12-19-2005 08:49 AM
Re: sendmail not sending or receiving email
Try the following and check the message:
sendmail -v
test
.
Don't forget the "."
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:51 AM
12-19-2005 08:51 AM
Re: sendmail not sending or receiving email
Darrel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 09:01 AM
12-19-2005 09:01 AM
Re: sendmail not sending or receiving email
However, when I sent a reply from the other computer to the account on the sendmail server, it did not go through.
The mail.log file did show the messages being sent.