Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-25-2011, 06:46 AM   #1
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
sendmail error


recently I was running sendmail server in centos5.0 version
when I sent mail through apache its not working
I checked mail logs I got like this error.

server1 sendmail[3211]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied
Aug 25 21:40:05 server1 sendmail[5729]: NOQUEUE: SYSERR(munin): can not chdir(/var/spool/clientmqueue/): Permission denied

in apache error_logs it show like this

Program mode requires special privileges, e.g., root or TrustedUser.
Program mode requires special privileges, e.g., root or TrustedUser.
Program mode requires special privileges, e.g., root or TrustedUser.
Program mode requires special privileges, e.g., root or TrustedUser.

but when i send mail through command prompt its working fine.
can any one give me solutions.
I am using sendmail version8.13
Old 08-25-2011, 07:58 AM   #2
Senior Member
Registered: Jul 2007
Distribution: Ubuntu 10.10, Slackware 64-current
Posts: 2,124

Rep: Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778Reputation: 778
I am not sure I can give you a solution, but perhaps a hint as to where to begin looking. The error messages indicate a problem with permissions. When you call your sendmail or script that you are using, it is accessing the /var/spool/clientmqueue directory. It appears that the permissions on this directory are such that your regular user account can access it (likely has execute permissions), but the user that your Apache installation runs under can't. I am not sure what the appropriate permissions structure is. It would depend on the language you are programming in and if you are using any library functions, etc. One thing I can say is don't just blindly change the permissions without understanding what you are doing and especially don't go changing permissions to something like 0x777.


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
sendmail: STARTTLS read error=generic SSL error.... All of a sudden! 3dMaster Linux - Server 2 12-08-2010 05:41 AM
Sendmail: eocket wedge , 504 error , dsn error, mail relay connection error djcs Debian 0 03-03-2009 12:41 AM
sendmail error 553 5.1.8 error "domain doesnot exist" kevinm2 Linux - Newbie 8 09-16-2004 12:39 AM
Sendmail error PcHammer Linux - Software 0 01-25-2003 11:40 AM
Sendmail Error while sendmail mail palavsachin27 Linux - Networking 1 01-22-2003 04:14 PM

All times are GMT -5. The time now is 09:18 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