VMM/handler: Improved domaininfo subcommand.
Check all labels for ASCII-compatible encoding, not only the first one.
If something is in ACE format, convert it to IDNA.
======================Upgrading to vmm 0.5.x======================This page is valid only for vmm-0.4/vmm-0.4-r41 and vmm-0.5/vmm-0.5.1.If you are using vmm-0.3.x please upgrade first to`vmm-0.4-r41 <https://sourceforge.net/projects/vmm/files/vmm/0.4-r41>`_.Upgrading from vmm-0.4.x------------------------Database backup^^^^^^^^^^^^^^^It is always wise to back up your database from time to time.Particularly with regard to an impending structure modification.Example: Backing up the `mailsys` database with pg_dump_...code-block::consoleroot@host:~# pg_dump-hlocalhost-Uvmm-Wmailsys>mailsys-0.4.sqlStopping Postfix and Dovecot^^^^^^^^^^^^^^^^^^^^^^^^^^^^Before updating the database you have to stop Postfix and Dovecot...code-block::consoleroot@host:~# /etc/init.d/postfixstopStopping Postfix Mail Transport Agent: postfix.root@host:~# /etc/init.d/dovecotstopStopping IMAP/POP3 mail server: dovecot.Database update^^^^^^^^^^^^^^^Connect as your `vmm` database user to your database...code-block::consoleroot@host:~# psqlmailsysvmm-W-hlocalhostIn the PostgreSQL interactive terminal you have to run the followingcommands to perform the update...code-block::postgresql-consolemailsys=>\i/path/to/vmm-0.5.2/update_tables_0.4.x-0.5.pgsqlmailsys=>GRANTSELECTONpostfix_aliasTOpostfix;mailsys=>\q.._database-update-for-dovecot-v1-2-x:Database update for Dovecot v1.2.x^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^When you are already using Dovecot v1.2.x, you have to perform one or two**additional** database updates...code-block::postgresql-consolemailsys=>\i/path/to/vmm-0.5.2/update_tables_0.5.x_for_dovecot-1.2.x.pgsqlmailsys=>GRANTSELECTONdovecot_passwordTOdovecot;mailsys=>-- If you are using the function dovecotpassword() in themailsys=>-- password_query setting of your dovecot-sql.conf update it also:mailsys=>\i/path/to/vmm-0.5.2/update_types_and_functions_0.5.x_for_dovecot-1.2.x.pgsqlmailsys=>\q.._adjusting-permissions-of-the-setuid-root-deliver-copy:Adjusting permissions of the setuid root deliver copy^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Starting with Dovecot version 1.2.0 the LDA ``deliver`` will no longerwork, if the binary has the setuid-root bit set **and** it's executablefor everyone.Independent of the directory permissions, where the ``deliver`` binaryis located.For this reason you have to adjust the permission of the ``deliver`` binary...code-block::consoleroot@host:~# chownroot:`id-gnobody`/usr/local/lib/dovecot/deliverroot@host:~# chmodu+s,o-rwx/usr/local/lib/dovecot/deliver.._check-update-postfix-master-cf:Check/update Postfix' master.cf^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^In prior setups the service *dovecot* was configured slightly different.If you have set the command attribute user to ``nobody:mail``, eitherremove the group *mail* or replace it with the group *nobody* or *nogroup*.The second line of the service *dovecot* entry should look similar to this:: flags=DORhu user=nobody argv=/usr/local/lib/dovecot/deliver …Start Dovecot and Postfix again^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^After a successfully update start Dovecot and Postfix again...code-block::consoleroot@host:~# /etc/init.d/dovecotstartStarting IMAP/POP3 mail server: dovecot.root@host:~# /etc/init.d/postfixstartStarting Postfix Mail Transport Agent: postfix.Upgrade vmm^^^^^^^^^^^Finally execute the ``upgrade.sh`` script to install the new code andupdate your ``/usr/local/etc/vmm.cfg``...code-block::consoleroot@host:~# cd/path/to/vmm-0.5.2root@host:/path/to/vmm-0.5.2# ./upgrade.shPlease have a look at your /usr/local/etc/vmm.cfgand verify the value from option 'postconf' in section 'bin'.root@host:/path/to/vmm-0.5.2#Upgrading from vmm-0.5.x------------------------Upgrade vmm^^^^^^^^^^^When you have already installed vmm-0.5 or vmm-0.5.1 only a single step isnecessary to update your vmm installation.cd in the source directory and execute the ``upgrade.sh`` script.That's it...code-block::consoleroot@host:~# cd/path/to/vmm-0.5.2root@host:/path/to/vmm-0.5.2# ./upgrade.shroot@host:/path/to/vmm-0.5.2#When you are already using Dovecot ≧ v1.2.0, you should also respectfollowing points: ‣ :ref:`database-update-for-dovecot-v1-2-x` ‣ :ref:`adjusting-permissions-of-the-setuid-root-deliver-copy` ‣ :ref:`check-update-postfix-master-cf`..include:: ../ext_references.rst