LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2015, 08:54 AM   #1
GZB
LQ Newbie
 
Registered: Jan 2015
Location: Lansing, Michigan
Distribution: Many - RHEL 3-6.5, Fed 20
Posts: 4

Rep: Reputation: Disabled
Sendmail permissions issue - WARNING: RunAsUser for MSP ignored, check group ids


I've been a Linux admin off/on for about 2 years at work working with other O/S'es at the same time. Have been a UNIX admin for about 20 years so I'm not a newb by any means. But this one has me stumped as I can't see any reason for it.

Situation - a non-root user tries to send email and then receives an error:

---------------------------------------------------------------------------
sendmail -s "Test" joe@somewhere.org < (some text file)
WARNING: RunAsUser for MSP ignored, check group ids (egid=100, want=51)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

where 100 is the userID sending the email and 51 is the userID of smmsp.

---------------------------------------------------------------------------

Here's what I have on this server:

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.5 (Santiago)

# rpm -qa | grep -i mail
mailcap-2.1.31-2.el6.noarch
sendmail-8.14.4-8.el6.x86_64
libreport-plugin-mailx-2.0.9-19.el6.x86_64
procmail-3.22-25.1.el6_5.1.x86_64
mailx-12.4-7.el6.x86_64


# ls -ld *queue
drwxrwx---. 2 smmsp smmsp 3559424 Jan 23 09:40 clientmqueue
drwx------. 2 root mail 4096 Jun 17 2010 mqueue

sendmail itself (from the final link, and yes, all the links are correct):

# ls -l /usr/sbin/sendmail.sendmail
-rwxr-sr-x. 1 root smmsp 833512 Jun 17 2010 /usr/sbin/sendmail.sendmail


From passwd and group:

# grep smmsp /etc/passwd /etc/group
/etc/passwd:smmsp:x:51:51::/var/spool/mqueue:/sbin/nologin
/etc/group:smmsp:x:51:

resolv.conf is also correct.


And finally from the sendmail and submit config files:

# grep smmsp submit.cf sendmail.cf
submit.cf:O RunAsUser=smmsp
submit.cf:O TrustedUser=smmsp
[root@<server_name> mail]# grep RunAsUser submit.cf sendmail.cf
submit.cf:O RunAsUser=smmsp
sendmail.cf:#O RunAsUser=sendmail

---------------------------------------------------------------------------

So everything looks as it should.

I did a ton of searches all day yesterday trying to figure this out and they all say that it's a perms issue with either sendmail itself or the queue directories. As you can see, they are all correct. So what gives? Why the error?

Any help will be greatly appreciated.
 
Old 01-26-2015, 07:42 AM   #2
GZB
LQ Newbie
 
Registered: Jan 2015
Location: Lansing, Michigan
Distribution: Many - RHEL 3-6.5, Fed 20
Posts: 4

Original Poster
Rep: Reputation: Disabled
Anyone?

Anyone have anything?

Over 350 views and nothing?

These are prod systems and I need this fixed.
 
Old 01-26-2015, 08:25 AM   #3
GZB
LQ Newbie
 
Registered: Jan 2015
Location: Lansing, Michigan
Distribution: Many - RHEL 3-6.5, Fed 20
Posts: 4

Original Poster
Rep: Reputation: Disabled
OK, since this didn't seem to have a fix without opening a ticket with RH, I went back and double-checked the req's from the application folks. There was NO documented requirement to have sendmail installed to start with. They only required it in conf calls for setup. So, I removed it, installed postfix and viola! Problem solved.

If I had good req's to start with and they didn't insist on sendmail during conf calls this wouldn't have even been an issue.

We would all lead happier and easier lives if we just didn't have any users to deal with... ;-)
 
  


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
[SOLVED] Sendmail ignore RunAsUser option Pavel Samsonov Linux - Server 4 08-27-2010 04:39 AM
Sendmail-msp error message Erameh Linux - Newbie 2 10-21-2009 01:28 AM
Group Permissions issue EnigmaX Linux - General 9 06-13-2004 12:44 AM
user and group ids - individual permissions? LooseCanon Linux - General 2 09-14-2003 12:57 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration