Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sendmail problem: can not chdir(/var/spool/clientmqueue/)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dcrandal
n00b
n00b


Joined: 04 Dec 2002
Posts: 2

PostPosted: Wed Dec 04, 2002 3:37 pm    Post subject: sendmail problem: can not chdir(/var/spool/clientmqueue/) Reply with quote

Good morning,

I have installed sendmail as a null client, and mailx.
When I perform a simple test as the root user:
mail -s "test" dcrandal
I get an error:
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

I have checked the permissions on /var/spool/clientmqueue/ and they are sufficient, and as I said, I'm performing the action as the root user.

I'm having a hard time discovering the problem.
Any insight would be highly apreciated.
_________________
Daniel

unix/net admin
TDHCA
Back to top
View user's profile Send private message
dcrandal
n00b
n00b


Joined: 04 Dec 2002
Posts: 2

PostPosted: Wed Dec 04, 2002 5:23 pm    Post subject: Reply with quote

I've learned some more...

Sendmail wants a gid of 407 (smmtp), but is emerged with ownership of root:root. So I changed that. (of course you have to stop and restart the sendmail daemon after making this adjustment)
Also, the group membership of /var/spool/mqueue and /var/spool/clientmqueue are not correct on instalation. They want to be in the smmtp group.

It seems to be working pretty well now.

Thanks for all of your valuable advice and kind words.:mrgreen:
_________________
Daniel

unix/net admin
TDHCA
Back to top
View user's profile Send private message
philthedrill
n00b
n00b


Joined: 10 Jan 2003
Posts: 18
Location: Moscow, ID

PostPosted: Fri Jan 10, 2003 12:23 am    Post subject: Reply with quote

As a follow up, I had a similar problem. Pine wouldn't send mail through the localhost ("Error sending: SMTP greeting failure: 421 SMTP connection went away!").

Doing something like:

echo "blah"|mail -s "test" philp

would give me an error message like this:

WARNING: RunAsGid for MSP ignored, check group ids (egid=209, want=667)
can not write to queue directory /var/spool/clientmqueue/ (RunAsGid=0, required=209): Permission denied

It ends up that the smmsp user was uid 1000, gid 667, and added to the smmsp group in /etc/group (group 209).

I fixed it by changing the gid to 209 (and removing the smmsp user from /etc/group since it's redundant).

/var/spool/clientmqueue is at permission 770 (smmsp:smmsp).
/var/spool/mqueue is at permission 700 (owned by root).

the sendmail binary is at permission 2555 (root:smmsp).
Back to top
View user's profile Send private message
linuxkrn
Tux's lil' helper
Tux's lil' helper


Joined: 13 Oct 2003
Posts: 140
Location: Denver,Colorado

PostPosted: Sat Jan 17, 2004 12:48 am    Post subject: Thanks Reply with quote

That fixed my problems too. Not sure why they had the user 'smmsp' in the group when the passwd file already specs out group 209 'smmsp'.

But I fixed the perms on the binary and directories. Thanks for the follow up post.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum