Page 1 of 2

Postfix Maildir delivery failure due to read-only file system

Posted: 2018/04/22 23:18:39
by Omlette
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.

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

Posted: 2018/04/22 23:31:02
by avij
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).

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

Posted: 2018/04/22 23:37:42
by Omlette
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

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

Posted: 2018/04/23 04:10:32
by hunter86_bg
What is the output of ( 'sealert' comes with the package 'setroubleshoot-server'):

Code: Select all

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

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

Posted: 2018/04/23 06:12:12
by TrevorH
Are you sure that's not the error being returned from the system to which yours is trying to deliver mail?

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

Posted: 2018/04/23 10:39:36
by hunter86_bg
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.

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

Posted: 2018/04/23 12:27:41
by Omlette
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.

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

Posted: 2018/04/23 13:20:41
by TrevorH
That's the other end's problem, not yours. Unless you manage the receiving system too?

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

Posted: 2018/04/23 13:59:20
by Omlette
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.

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

Posted: 2018/04/23 14:59:44
by TrevorH
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.