Unable to send mail due to the error "Cannot write ./[mail-id] (bfcommit, uid=0, gid=51): Permission denied"
Issue
-
Root and non-root users are not able to send mail.
root@hostname:/root 13:57:08 # cat /etc/hosts | mailx -s "testmail-root" root@example.com root@hostname:/root 13:57:11 # collect: Cannot write ./df48P5vBC9102850 (bfcommit, uid=0, gid=51): Permission denied
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- sendmail
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.