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 03-28-2005, 06:12 PM   #1
LQ Newbie
Registered: Mar 2005
Posts: 7

Rep: Reputation: 0
Sendmail "Permission denied" for local users

I am receiving the following error when sending mail as local users via command line, but not as root:

WARNING: RunAsUser for MSP ignored, check group ids (egid=500, want=51)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

I just did a clean install of FC3 and fully updated all packages. In fact, I did this for 2 new servers and mirrored most settings on both. However, I can send mail from local user accounts just fine on the other. I have compared most all sendmail files and /var/spool permissions and found no differences. I have SELinux set to 'Warn' on both machines.

Any ideas?

Old 03-28-2005, 07:15 PM   #2
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
i know that the file /etc/mail/access lists the hosts that are allowed to use your sendmail service to relay mail. what you describe sounds similar to problems i had, but the difference is that sending mail worked from my localhost, but not from remote hosts (because that's how sendmail is set by default). so anyway, my /etc/mail/access file now looks like this:

192.168.1 RELAY RELAY

so i can send mail from anywhere on my local network, and from my computer at work. once you edit that file, run


and then restart sendmail.
Old 03-28-2005, 07:40 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Actually I do not need to receive mail on this machine, just send mail from this machine.

Old 03-29-2005, 02:37 AM   #4
Red Hat India
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
you have to configure your mailserver to relay the mail from your domain or subnet or whatso ever. you have to add that entry in /etc/mail/access. by default only users logged in the server would be able to send mal thriugh that machine....
Old 03-29-2005, 10:30 AM   #5
LQ Newbie
Registered: Mar 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Exactly...the default is what I am looking for. Access file should only need to contain for local users to send mail from this machine while logged in. In all prior Linux installations of mine (RHL and FC3) the default sendmail installation will allow this. But for some reason on this particular installation, that is not the case.

I fixed my problem last night by reinstalling FC3. This time it is operating as intended (local users can send outbound email). However, I am still curious as to why it was not so in the last installation. I believe I did everything the same. Obviously that is not so.

Old 11-14-2013, 03:47 AM   #6
LQ Newbie
Registered: Nov 2013
Posts: 4

Rep: Reputation: Disabled
I had the same problem. Today for me on my CentOS 5 helped reinstalling sendmail with yum. But still I don't understand why.


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
"Permission Denied" for normal users on physical console brycebent Linux - Security 5 07-14-2005 11:42 PM
"permission denied" when I try to send raw data to the sound device. Travis86 Linux - Hardware 2 10-29-2003 09:08 AM
sendmail: "permission denied" when using include:/file sohmc Linux - Software 1 05-22-2003 06:40 AM
sendmail: "Who are you?: Permission denied!" markus1982 Linux - Networking 2 10-08-2002 11:55 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 PM.

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