cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with sendmail

Gustavo Souza Lima
Frequent Advisor

Problems with sendmail

Hi,

I have a server with Red Hat Enterprise Linux ES release 4 (Nahant Update 3) kernel 2.6.9-34.ELsmp and the sendmail installed in this server is sendmail-8.13.1-2.
I'm trying to send mail use mailx command with patrol user but when I run the command mailx I get this error:

WARNING: RunAsUser for MSP ignored, check group ids (egid=101, want=51)

can not chdir(/var/spool/clientmqueue/): Permission denied

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

I compare the permissions and contents of configuration files with another server where the command works well and everything is right.
I don't know what to do...
Can anybody help to fix this problem..please???

Thank you since now..
4 REPLIES
Court Campbell
Honored Contributor

Re: Problems with sendmail

Check the line with RunAsUser in sendmail.cf. Also you might look at this thread:

http://www.issociate.de/board/post/254248/clientmqueue_permission_problem_....html

It's not necessarily a fix, i just found it interesting.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Steven E. Protter
Exalted Contributor

Re: Problems with sendmail

Shalom,

Well sendmail is finally tightening up a bit to prevent direct abuse of the daemon.

What needs to be done is to make the user in question a trusted sendmail user.

I think the issue here may be the user id is below 500 which is defined as the lowest number normal user. Users below that are considered system users and may not send mail.

Test:

sendmail -v -d8 -d38 someuser@somedomain.com

type some text

.


SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Court Campbell
Honored Contributor

Re: Problems with sendmail

What are your permissions on /usr/sbin/sendmail.sendmail?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Gustavo Souza Lima
Frequent Advisor

Re: Problems with sendmail

I change the primary group of user patrol.
I put the smmsp as primary group and then the mailx command works well...

Thank you everyone for help...