Installing vmm¶
After you’ve prepared everything, it’s time to install vmm.
Change into the vmm-0.7.0
directory an execute the
install.sh
script.
You can adjust the installation prefix by modifying line 8 of the script.
root@host:~# cd /path/to/vmm-0.7.0
root@host:/path/to/vmm-0.7.0# ./install.sh
Don't forget to edit /usr/local/etc/vmm.cfg - or run: vmm cf
and /etc/postfix/pgsql-*.cf files.
root@host:/path/to/vmm-0.7.0#
pgsql-*.cf files¶
After executing the install script you have to edit all pgsql-*.cf
files in postconf -h config_directory. For details see pgsql_table(5).
The used parameter values are:
parameter |
value |
---|---|
dbname |
mailsys |
hosts |
localhost |
password |
some_password |
user |
postfix |
So it’s easy to use just the sed command, in order to edit all files at once. For example:
root@host:~# sed -i "s|\bpostfix\b|_postfix|g" `postconf -h config_directory`/pgsql-*.cf
root@host:~# sed -i "s|some_password|3Q>MO…|g" `postconf -h config_directory`/pgsql-*.cf
root@host:~#
If your sed doesn’t like the -i option (is unable to edit files in place), you can do it with perl:
# perl -pi -e "s|\bpostfix\b|_postfix|g" `postconf -h config_directory`/pgsql-*.cf
Note
Don’t forget to start or restart Dovecot and Postfix.
vmm configure¶
Finally you have to edit your vmm.cfg
. You can edit the configuration
file in your favorite editor or execute vmm configure.
vmm’s configuration parameters are described in vmm.cfg(5).
The initial Configuration file for vmm is also well documented.
Ready, set, go!¶
For a list of available subcommands execute vmm --help. For details about the subcommands see vmm(1) or continue reading at Using vmm.