Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-19-2005, 02:57 PM   #1
Registered: Nov 2003
Posts: 791

Rep: Reputation: 39
sendmail not sending or receiving email

Hi there --

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/ Permission denied

How would I go about correcting this issue? Thanks.
Old 12-20-2005, 09:26 AM   #2
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Simply give the user that's running the sendmail daemon write permission on the file
You can do this via "chmod".

-check your sendmail config and /etc/passwd to know which user sendmail runs under;
ls -l /etc/mail/
To know the permissions on the file, who owns it, etc.
-change the permissions with chmod so that the user sendmail runs under is given write access (either
by owning the file or via the group permissions). Don't make the file just "rwxrwxrwx", since PID (process ID) files are used by the system to control services (eg start/stop/restart them). A corrupted PID can thus lead
to a broken service.
In general, it's a bad idea to make any system file "world-writable".

If you want more help, post the following:
-user sendmail runs under
-output of the ls -l command above


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending email from a script without sendmail tangle Linux - Networking 1 12-06-2005 02:32 AM
How To Divert Email While Receiving And Sending? kiranprashant Programming 2 09-14-2005 06:21 AM
How To Divert Email While Receiving And Sending? kiranprashant Linux - Newbie 2 09-13-2005 02:51 PM
local email sending/receiving problem htm Linux - Software 2 04-10-2004 12:06 AM
Automatic email sending with sendmail? Stingreen Linux - General 10 04-15-2002 03:55 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration