LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 03-28-2005, 06:12 PM   #1
kassemi
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?

-K
 
Old 03-28-2005, 07:15 PM   #2
mcd
Member
 
Registered: Aug 2003
Location: Boulder, CO
Distribution: Slackware, RHEL, CentOS
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
4.28.10.51 RELAY


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

make

and then restart sendmail.
 
Old 03-28-2005, 07:40 PM   #3
kassemi
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.

-K
 
Old 03-29-2005, 02:37 AM   #4
vimal
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
kassemi
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 127.0.0.1 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.

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

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.
 
  


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
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


All times are GMT -5. The time now is 05:19 AM.

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