New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postfix/postdrop didn't work anymore over NFS after update to 0.7.x #6949
Comments
|
@behlendorf Your link is not working. Please fix it. |
|
@behlendorf I found the right commit. Github search didn't find. I had to patch an other commit url. |
|
@aerusso I found this patch in your 0.7.4 code base. So I hope they will update soon. |
|
@ggzengel Can you confirm that 0.7.4 fixes your problem? Building the zfs and spl Debian packages should be relatively easy. The branch |
|
@aerusso The patch makes sense and would match to the problem I have. |
|
|
I experienced postfix hangs too, but they seem random, and not easily reproducible, in this case in lxc containers mounted on glusterfs hosted on zfs. I only had to put /var/spool/postfix/pid/ on a tmpfs as a workaround. I'm wondering if it could be related. @ggzengel was your case easy to reproduce ? |
|
@janlam7 Sending mail from localhost with maildrop never worked again. |
|
@aerusso Thanks for your help. |
This issue exist only in combination with nfs and zfs.
I think there is a compatibility issue with sticky bits and nfs groups in 0.7.x. But I don't know how to discover this.
I don't use "--manage-gids" on nfs server.
The problem exists with kernel 3.16 and 4.9.
After upgrading of 3 ZFS systems from 0.6.11 to 0.7.3 all diskless VMs didn't send mail over postfix any more.
On the 3rd system I updated all packages except zfs, made a reboot and verified the mail function.
After the mail function worked as before I updated zfs and got this issue.
Sending mail as non root with /usr/bin/mail (package bsd-mail) uses postdrop which wants to write to /var/spool/postfix/maildrop and freezes.
For testing I use the following command which sends successfully mails on 0.6.11 but not with 0.7.3.
On 0.7.3 it's hanging endless and I have to use CTRL-C.
As root I can send mails. So it's a access issue on zfs/nfs server.
If I replace /var/spool/postfix/maildrop with a tmpfs filesystem I can send mails too.
While it's hanging it looks like:
After each try I have one more zero length file in maildrop:
postdrop doesn't say a lot, but with NFS/ZFS it freezes and I have to use CTRL-C:
Client (XEN + diskless)
Server
The text was updated successfully, but these errors were encountered: