<?php /* function __dovecot_preremove(){ } function __dovecot_postremove(){ } -- Remember to user 'purge' not 'remove' */ function __dovecot_remove(){ global $global; vexec('systemctl stop dovecot'); // Remove symlink for mailx @unlink('/usr/bin/doveadm'); @unlink('/usr/bin/doveconf'); @unlink('/usr/sbin/dovecot'); @unlink('/usr/lib/systemd/system/dovecot.service'); }