Search K
Appearance
Appearance
Dovecot has an object storage emulator called fs-server
. It can be used to emulate Scality sproxyd. S3 is not currently supported.
This tool is not intended for production use. This can be ran as part of any Dovecot deployment, but for best results, you should use a dedicated instance for this.
First configure the storage location:
fs_server_backend = metawrap:posix:prefix=/var/fsserver/:dirs
Then you can configure the listener.
For sproxyd, use
service fs-server {
inet_listener sproxyd {
port = 801
}
}
To configure a backend to use sproxyd, configure
obox {
fs fscache {
size = 512M
path = /var/cache/mails/%{user | sha1 % 4}
}
fs dictmap {
dict proxy {
name = cassandra
socket_path = dict-async
}
#lock_path = /tmp # Set only without lazy_expunge plugin
}
fs sproxyd {
}
}
metacache {
fs compress {
}
fs dictmap {
dict proxy {
name = cassandra
socket_path = dict-async
}
}
fs sproxyd {
}
}
Note that sproxyd needs Dictmap to work.
Files are stored as-is into the specified directory.
To enable debugging, add
service fs-server {
executable = fs-server -D