Unable to send mail due to the error "Cannot write ./[mail-id] (bfcommit, uid=0, gid=51): Permission denied"

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content