LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 12-19-2005, 01:57 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 718

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/sendmail.pid: Permission denied

How would I go about correcting this issue? Thanks.
 
Old 12-20-2005, 08:26 AM   #2
timmeke
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
/etc/mail/sendmail.pid.
You can do this via "chmod".

So:
-check your sendmail config and /etc/passwd to know which user sendmail runs under;
-Type:
ls -l /etc/mail/sendmail.pid
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
 
  


Reply


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 01:32 AM
How To Divert Email While Receiving And Sending? kiranprashant Programming 2 09-14-2005 05:21 AM
How To Divert Email While Receiving And Sending? kiranprashant Linux - Newbie 2 09-13-2005 01:51 PM
local email sending/receiving problem htm Linux - Software 2 04-09-2004 11:06 PM
Automatic email sending with sendmail? Stingreen Linux - General 10 04-15-2002 02:55 PM


All times are GMT -5. The time now is 08:19 PM.

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