Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sendmail: collect: Cannot write ... Permission denied-SOLVED
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
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Thu Jun 09, 2011 9:00 pm    Post subject: sendmail: collect: Cannot write ... Permission denied-SOLVED Reply with quote

I am getting errors when receiving email on a new server running sendmail. The log looks like:
Code:

Jun  9 15:40:01 rcvbox sm-mta[31606]: p59Je0f0031606: SYSERR(root): collect: Cannot write ./dfp59Je0f0031606 (bfcommit, uid=0, gid=209): Permission denied
Jun  9 15:40:01 rcvbox sm-mta[31606]: p59Je0f0031606: from=<rj@sendingdomain.com>, size=576, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=xxxxxx-5.iglou.com [xxx.xxx.xxx.xxx]

and my /var/spool directory looks like:
Code:

total 0
drwxr-xr-x  6 root  root   72 May 30 12:17 .
drwxr-xr-x 14 root  root  145 May  1 13:12 ..
-rw-r--r--  1 root  root    0 Apr 19 10:10 .keep
drwxrwx---  2 smmsp smmsp  58 Jun  7 14:56 clientmqueue
drwxr-x---  4 root  cron   70 Apr 27 00:33 cron
drwxrwxr-x  2 root  mail   38 Apr 27 00:32 mail
drwxr-xr-x  2 smmsp root   38 May 30 12:17 mqueue

I have another machine running sendmail just fine, but I can't figure out where the perm error lies. It would be nice if sendmail put the full path in the error message. :evil:

Can anybody help me with this? :?:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.


Last edited by Moriah on Sat Jul 09, 2011 4:47 am; edited 1 time in total
Back to top
View user's profile Send private message
jhardin
n00b
n00b


Joined: 12 Oct 2005
Posts: 30

PostPosted: Sat Jul 09, 2011 4:38 am    Post subject: Reply with quote

Try changing ownership of /var/spool/mqueue to root.
Back to top
View user's profile Send private message
Moriah
Veteran
Veteran


Joined: 27 Mar 2004
Posts: 1860
Location: Kentucky

PostPosted: Sat Jul 09, 2011 4:47 am    Post subject: Reply with quote

I'm sorry. I forgot about this stale post. I sloved this so long ago I don't even remember what the soloution was. :oops:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
zeroeth
n00b
n00b


Joined: 11 Jul 2012
Posts: 1

PostPosted: Wed Jul 11, 2012 12:34 pm    Post subject: Reply with quote

it looks like /var/spool/mqueue didn't have write permissions for the group

chmod g+w /var/spool/mqueue got rid of the permissions denied error for me
Back to top
View user's profile Send private message
lgt42
n00b
n00b


Joined: 07 Jan 2013
Posts: 1

PostPosted: Mon Jan 07, 2013 2:10 am    Post subject: Reply with quote

zeroeth wrote:
it looks like /var/spool/mqueue didn't have write permissions for the group

chmod g+w /var/spool/mqueue got rid of the permissions denied error for me


Same thing for me with default installation of sendmail ( 8.14.4 as of today ), procmail, m4, fetchmail. It was necessary to exec the chmod g+w /var/spool/mqueue to get mail sent correctly.

Thanks and regards.
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