Hi, all.
I'm trying to set up Postfix with dovecot LTMP delivery on a host where the user files (/var/spool/mail as well as home directories) are on NFS filesystems, which are exported root-squashed to the mail server. I definitely don't want to give the mail server root permissions on the user files.
LMTP delivery fails with this logged message (e.g.):
Nov 16 17:51:36 lust dovecot: lmtp(anne)<16830><mkkzEPg1lGG+QQAAs/mAJw>: msgid=<202111162229.1AGMTfAO024765@vindemiatrix.encs.concordia.ca>: save failed to INBOX: Read-only mbox
I found this posting where someone else had a similar problem and traced it in some detail back in 2019:
https://dovecot.org/list/dovecot/2019-February/114611.html
but apparently no one answered the fellow.
In order to check that this is indeed the same problem, I temporarily changed the INBOX definition to make it write into /var/tmp/ (on a local filesystem), and delivery worked.
I then temporarily changed the INBOX definition to make it write into an NFS filesystem with root NOT squashed, and again it worked (after I chmodded the directory to 1777 to allow any user to create a file).
I believe that the person who wrote the above posting is correct: at some point, file access is (incorrectly) checked as root instead of as the target user.
This is a bit of a showstopper for me. Any plans to address this?
I attach the output of "dovecot -n", fwiw, but I don't think that this is a configuration problem...
Anne.
Ms. Anne Bennett, Senior Sysadmin, ENCS, Concordia University, Montreal H3G 1M8 anne@encs.concordia.ca +1 514 848-2424 x2285