procmail
[Top] [All Lists]

Re: Procmail, FreeBSD 7.2 NFS (w/ZFS?) Maildir issue

2009-06-11 16:24:38
This seems to be a known issue with NFS and ZFS on FreeBSD 7.2-STABLE.
http://www.freebsd.org/cgi/query-pr.cgi?pr=135412

Quoting "Rick Romero" <rick(_at_)havokmon(_dot_)com>:

Hey guys,

I run Qmail/vpopmail based mail server(s) on FreeBSD, and due to recent
ZFS issues with 7.x on the mailbox stoage server, I've upgraded to
kernel 7.2-stable.  This seems to have upgraded NFS to v4 as well.
I've tried using NFS from ZFS's own export, plus 'external' NFS
via /etc/exports.  Both behave the same.

Due to that upgrade, I seem to have come across a bug in procmail's
Maildir delivery.  This doesn't occur with maildrop or vdelivermail, and
I also found a post from December regarding NFSv4 in general:
http://drewp.quickwitretort.com/2008/12/24/1

In any case, when processing through procmail from either FreeBSD 6.2 or
a FreeBSD 7.2 NFS client, the following occurs in my procmail.log:
procmail: Match on "^X-Spam-Status:.*Yes"
procmail: Error while writing to
"/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/.Spam/tmp/1244517910.82369_0.www51.havokmon.com"
procmail: Couldn't create or rename temp file
"/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/.Spam/tmp/1244517910.82369_0.www51.havokmon.com"

The file is then 'left' in /tmp :

# ls
-la /usr/home/vpopmail/domains/havokmon.com/rick/Maildir/.Spam/tmp/1244517910.82369_0.www51.havokmon.com

----------  1 vpopmail  vchkpw  0 Jun  8
22:25 /usr/home/vpopmail/domains/havokmon.com/rick/Maildir/.Spam/tmp/1244517910.82369_0.www51.havokmon.com

The file gets created with no permissions.  From what the above post
says, it seems procmail uses O_EXCL in some way -which doesn't work
correctly over NFSv4.  I've also had the same issue with older FreeBSD
installs when editing a file with Vi - it creates a .swp file
incorrectly then complains.  Newer versions of Vi don't have that
problem.  Unfortunately procmail is up to date, and still has the same
problem.

Is this a known issue? Is there a fix?  My filters aren't all that
complicated (well, the individual scripts aren't :), I'd just like them
to work again.

Any sugestions are appreciated!  Thanks!

Rick

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>