Translations:Complete Virtual Mail Server/Admin Support Systems/24/en

From Gentoo Wiki
Jump to:navigation Jump to:search
The last three entries are completely optional, but make adding and deleting of mailboxes and domains possible. When not using postfixadmin these can be omitted. Otherwise the noted scripts can be copied from /usr/share/doc/postfixadmin-2.3.7/ADDITIONS. For the scripts to work sudo needs to be installed and configured. Remember to make any used scripts executable (chmod +x), and to change the basedir and trashbase variables at the top of the scripts to the storage space.
root #visudo
apache ALL=(vmail) NOPASSWD: /usr/local/bin/
apache ALL=(vmail) NOPASSWD: /usr/local/bin/
apache ALL=(vmail) NOPASSWD: /usr/local/bin/

This will allow apache (via postfixadmin) to run the above mentioned scripts as the vmail user.