Local mail delivery refused
I have always had extreme difficulty in sending mail from one user to another in SuSE 8.0 - problems that never arose with my previous RedHat 7.0 installation. Running the following as user bjfowler produced the following: [bjfowler ~] $ mail -v bjfowler@localhost -stest24/7 test 24/7 . EOT collect: Cannot write ./dfg6O91mZM004258 (bfcommit, uid=500, gid=12): Permission denied The corresponding entry in /var/log/mail: Jul 24 09:01:48 bluebottle sendmail[4258]: g6O91mZM004258: SYSERR(bjfowler): collect: Cannot write ./dfg6O91mZM004258 (bfcommit, uid=500, gid=12): Permission denied Jul 24 09:01:48 bluebottle sendmail[4258]: g6O91mZM004258: from=bjfowler, size=52, class=0, nrcpts=1, relay=bjfowler@localhost When I repeated the exercise as root I got the following results bluebottle:/var/log # mail -v bjfowler@localhost -stest24/7-root test 24/7-root . EOT bjfowler@localhost... Connecting to localhost.ewginfo.co.uk. via relay... 220 bluebottle.ewginfo.co.uk ESMTP Sendmail 8.12.3/8.12.3/SuSE Linux 0.6; Wed, 24 Jul 2002 09:04:37 GMT
EHLO bluebottle.ewginfo.co.uk
..usual smtp messages
QUIT bjfowler@localhost... Deferred: 421 4.3.0 collect: Cannot write ./dfg6O94bp2004277 (bfcommit, uid=0, gid=12): Permission denied Closing connection to localhost.ewginfo.co.uk. QUIT
Corresponding entry in /var/log/mail: Jul 24 09:04:37 bluebottle sendmail[4277]: g6O94bp2004277: SYSERR(root): collect: Cannot write ./dfg6O94bp2004277 (bfcommit, uid=0, gid=12): Permission denied Jul 24 09:04:37 bluebottle sendmail[4277]: g6O94bp2004277: from=<root@bluebottle.ewginfo.co.uk>, size=380, class=0, nrcpts=1, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] On issuing the command (as root) sendmail -v -q, the messages were delivered, but without the body! Often I see lines similar to these: Jul 24 11:22:36 bluebottle sendmail[4902]: g6O94bB1004276: Losing ./qfg6O94bB1004276: bogus file uid/gid in mqueue Can anyone tell me what is going on? TIA Basil Fowler
On Wed, 24 Jul 2002, Basil Fowler wrote:
collect: Cannot write ./dfg6O91mZM004258 (bfcommit, uid=500, gid=12): Permission denied
Hi, I did a little testing on my test system and found out that you have the wrong permissions on your /var/spool/mqeue directory. What permissions are used within your /var/spool for mqueue and clientmqueue? They should be (regarding SECURITY file): -r-xr-sr-x root mail ... /PATH/TO/sendmail drwxrwx--- mail mail ... /var/spool/clientmqueue drwx------ root wheel ... /var/spool/mqueue -r--r--r-- root wheel ... /etc/mail/sendmail.cf -r--r--r-- root wheel ... /etc/mail/submit.cf I think you have something like this: drwx------ bjfowler mail ... /var/spool/mqueue but is to be by default: drwxrwx--- 2 mail mail 12288 Jul 25 07:24 clientmqueue drwx------ 3 root root 12288 Jul 25 07:23 mqueue Change it to the wright permission and you should be able to post your local mail. Oliver -- ... don't touch the bang-bang fruit
participants (2)
-
Basil Fowler
-
Oliver Fuchs