Eray Aslan: > On Tue, Dec 19, 2017 at 10:53:38AM -0500, Wietse Venema wrote: > > Postfix will bail out if it knows that the queue or data directory > > are shared, because that can result in data corruption. > > > > How do I enforce that constraint when directories are imported into > > a container from the host? > > I don't think you can. But how is that different from the current > status quo? We can only continue doing what we have been doing so far.
The status quo (prior to containers) is that Postfix prevents unnecessary requests for support from people who do things like sharing a queue_directory or data_directory. The Postfix master relies on opening a 'lock' file below the queue and data directories, and holding an exclusive lock until the process terminates. If that works across container boundaries, then that is one less thing to worry about. But all this is speculation until it is proven to work. Wietse