[Dovecot] Remote storage

Daniel L. Miller
Sun, 01 Mar 2009 21:48:39 -0000

Daniel L. Miller wrote:
> What options are available for remote storage, i.e. storage devices
> directly mounted on the machine running Dovecot?  I've seen
> discussions of NFS usage - but my experiences with NFS in times past
> have been poor.  CIFS has worked well for me for non-mail use - would
> this be suitable?  Or is there another method I've not considered?
I'm actually trying it - and at first glance it's functional.  I'm
using
the following mount parameters:

-o user=vmail%vmail,rw,serverino,directio

I'm using Dovecot 1.1.11 (from Ubuntu Jaunty).  Also Postfix, LDAP, and
a few other odds & ends.  While message delivery is working (using
deliver), I do see the following in my logs:

Mar  1 13:35:09 mailserver postfix/pickup[21464]: 5FAFC2A002: uid=0
from=<root>
Mar  1 13:35:09 mailserver postfix/cleanup[21526]: 5FAFC2A002:
message-id=<20090301213509.5FAFC2A002 at mailserver.amfeslan.local>
Mar  1 13:35:09 mailserver postfix/qmgr[21429]: 5FAFC2A002:
from=<root at mailserver.amfeslan.local>, size=367, nrcpt=1 (queue active)
Mar  1 13:35:09 mailserver dovecot: auth(default): master in:
USER^I1^Idmiller at amfes.com^Iservice=deliver
Mar  1 13:35:09 mailserver dovecot: auth(default): master out:
USER^I1^Idmiller at
amfes.com^Iuid=5000^Igid=8^Ihome=/var/mail/amfes.com/dmiller^Imail=dbox:/var/mail/amfes.com/dmiller/Maildir
Mar  1 13:35:10 mailserver deliver(dmiller at amfes.com):
fdatasync_path(/var/mail/amfes.com/dmiller/Maildir/INBOX/dbox-Mails)
failed: Invalid argument
Mar  1 13:35:10 mailserver deliver(dmiller at amfes.com):
msgid=<20090301213509.5FAFC2A002 at mailserver.amfeslan.local>: saved mail
to INBOX
Mar  1 13:35:10 mailserver postfix/pipe[21528]: 5FAFC2A002:
to=<dmiller at amfes.com>, relay=dovecot, delay=1.1, delays=0.07/0.01/0/1,
dsn=2.0.0, status=sent (delivered via dovecot service)
Mar  1 13:35:10 mailserver postfix/qmgr[21429]: 5FAFC2A002: removed

That error from deliver with "fdatasync_path" bothers me - what does
that indicate, and where should I go to fix it?  Based on mmap errors, I
already set "mmap_disable = yes"
--
Daniel