Postfix Maildir delivery failure due to read-only file system

Issues related to applications and software problems
Omlette
Posts: 9
Joined: 2018/04/22 01:22:08

Postfix Maildir delivery failure due to read-only file system

Post by Omlette » 2018/04/22 23:18:39

Hello,

Postfix fails to deliver messages with error "Read-only file system":

Code: Select all

status=bounced (maildir delivery failed: create maildir file ... : Read-only file system)
My directory permissions are set to 700 and 755:

Code: Select all

   .
    +-- /home/enduser: 700
        +-- Maildir: 775
            +-- cur: 775
            +-- new: 775
            +-- tmp: 775
These permissions are identical to my arch postfix server, so I'm not quite sure were the problem is coming from.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Postfix Maildir delivery failure due to read-only file system

Post by avij » 2018/04/22 23:31:02

Perhaps your file system is read-only? This can happen if the kernel detects an error, in which case the filesystem is mounted read-only as a precaution. See findmnt --target /home and search for ro (read only) or rw (read-write, which is normal).

Omlette
Posts: 9
Joined: 2018/04/22 01:22:08

Re: Postfix Maildir delivery failure due to read-only file system

Post by Omlette » 2018/04/22 23:37:42

avij wrote:Perhaps your file system is read-only? This can happen if the kernel detects an error, in which case the filesystem is mounted read-only as a precaution. See findmnt --target /home and search for ro (read only) or rw (read-write, which is normal).
It lists "rw":

Code: Select all

$ findmnt --target /home
TARGET SOURCE    FSTYPE OPTIONS
/      /dev/vda1 ext4   rw,relatime,data=ordered

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Postfix Maildir delivery failure due to read-only file system

Post by hunter86_bg » 2018/04/23 04:10:32

What is the output of ( 'sealert' comes with the package 'setroubleshoot-server'):

Code: Select all

sealert -a /var/log/audit/audit.log

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Postfix Maildir delivery failure due to read-only file system

Post by TrevorH » 2018/04/23 06:12:12

Are you sure that's not the error being returned from the system to which yours is trying to deliver mail?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Postfix Maildir delivery failure due to read-only file system

Post by hunter86_bg » 2018/04/23 10:39:36

Omlette wrote: status=bounced (maildir delivery failed: create maildir file ... : Read-only file system)
It seems that it got bounced , which leads ne that the e-mail reached it's destination.

Omlette
Posts: 9
Joined: 2018/04/22 01:22:08

Re: Postfix Maildir delivery failure due to read-only file system

Post by Omlette » 2018/04/23 12:27:41

hunter86_bg wrote:What is the output of ( 'sealert' comes with the package 'setroubleshoot-server'):

Code: Select all

sealert -a /var/log/audit/audit.log
output of `sealert` is:

Code: Select all

$ sealert
could not attach to desktop process
TrevorH wrote:Are you sure that's not the error being returned from the system to which yours is trying to deliver mail?
You're correct, this is an error from the receiving system saying that the receiving system is unable to write to the recipient's mailbox. This leads me to believe postfix is set up properly to deliver mail to the recipient, but unable to write to the system.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Postfix Maildir delivery failure due to read-only file system

Post by TrevorH » 2018/04/23 13:20:41

That's the other end's problem, not yours. Unless you manage the receiving system too?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Omlette
Posts: 9
Joined: 2018/04/22 01:22:08

Re: Postfix Maildir delivery failure due to read-only file system

Post by Omlette » 2018/04/23 13:59:20

TrevorH wrote:That's the other end's problem, not yours. Unless you manage the receiving system too?
Sorry, I wasn't clear; I manage the receiving system.

User avatar
TrevorH
Site Admin
Posts: 33191
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Postfix Maildir delivery failure due to read-only file system

Post by TrevorH » 2018/04/23 14:59:44

Then check your logs for i.o errors on the disks involved and/or filesystem problems. Your entire filesystem has been made readonly and the kernel only does that for severe i/o errors on the device(s) that make it up. To correct it in that case will mean rebooting.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply