www.idziorek.net | blog | contact

Miscellanous Notes on Server Hosting specifics

LUKS container over sshfs

NOTE: backup your data example use : rsync -a –info=progress2 source dist


Mounting Ownclouds DavFS

$ apt-get install davfs2

* since owncloud seems to have problems with locks, edit /etc/davfs2/davfs2.conf and set use_locks to 0 in order to allow creating files (as well as probably writing)

$ mount -t davfs https://secure.sf.com/owncloud/remote.php/webdav /mnt/

rescan/rebuild ownlocud files database

inside ownlcoud  directory run:
sudo -u www-owncloud php console.php files:scan –all


We want to handle different domains on a single postfix server and have virtual users along real unix users. For the virtual users we use uid/gid 5000.

Relevant config files are:

/etc/postfix/smtpd_sender_login_maps (tells which emails belong to which login)
/etc/postfix/vmailbox (sepcifies our VIRTUAL mailboxes and the names of the spoolfiles)
/etc/postfix/virtual (aliases for our local unix users)
/etc/dovecot/users (specifies the logins, passwords, home directories,..)
/etc/dovecot/conf.d/10-mail (set inbox and mailbox dirs)

Be careful about the permissions of the different folders, so uid/gid 5000, postfix and dovecot can access as relevant.

A very nice tutorial on setting up postfixadmin can be found here: