~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to proto/NFS_README.html

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2005-02-27 09:33:07 UTC
  • Revision ID: james.westby@ubuntu.com-20050227093307-cn789t27ibnlh6tf
Tags: upstream-2.1.5
ImportĀ upstreamĀ versionĀ 2.1.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
 
2
        "http://www.w3.org/TR/html4/loose.dtd">
 
3
 
 
4
<html>
 
5
 
 
6
<head>
 
7
 
 
8
<title>Postfix and NFS</title>
 
9
 
 
10
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
 
11
 
 
12
</head>
 
13
 
 
14
<body>
 
15
 
 
16
<h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix and NFS</h1>
 
17
 
 
18
<hr>
 
19
 
 
20
<p> This question was asked on the postfix-users mailing list a
 
21
while ago: </p>
 
22
 
 
23
<blockquote> <p> Also, what considerations are there for file
 
24
locking or other potential problems when running Postfix with a
 
25
Netapp-style box for /var/mail delivery?  I know that FreeBSD has
 
26
broken NFS file locking (both client and server?) but I'm not sure
 
27
if this is something Postfix can work around or not. </p> </blockquote>
 
28
 
 
29
<p> Postfix jumps several hoops in order to deal with NFS-specific
 
30
problems. Thus, Postfix on NFS is slightly less reliable than
 
31
Postfix on a local disk. That is not a problem in Postfix; the
 
32
problem is in NFS and affects other MTAs as well. </p>
 
33
 
 
34
<p> For queue locking within Postfix, NFS is not an issue because
 
35
you cannot share Postfix queues among multiple Postfix instances.
 
36
</p>
 
37
 
 
38
<p> In order to have mailbox locking over NFS, you have to configure
 
39
everything to use fcntl() locks for mailbox access (or switch to
 
40
maildir style, which needs no application-level lock controls).
 
41
</p>
 
42
 
 
43
<p> To turn on fcntl() mailbox locks with Postfix you specify: </p>
 
44
 
 
45
<blockquote>
 
46
<pre>
 
47
/etc/postfix/main.cf:
 
48
    virtual_mailbox_lock = fcntl
 
49
    mailbox_delivery_lock = fcntl
 
50
</pre>
 
51
</blockquote>
 
52
 
 
53
<p> Obviously, this approach is useful only if all other mailbox
 
54
access software also uses fcntl() locks. </p>
 
55
 
 
56
<p> You can also "play safe" and throw in <i>username</i>.lock files: </p>
 
57
 
 
58
<blockquote>
 
59
<pre>
 
60
/etc/postfix/main.cf:
 
61
    virtual_mailbox_lock = fcntl, dotlock
 
62
    mailbox_delivery_lock = fcntl, dotlock
 
63
</pre>
 
64
</blockquote>
 
65
 
 
66
<p> This is the combination that many applications end up using. </p>
 
67
 
 
68
</body>
 
69
 
 
70
</html>