create the password<\/a> so you can know what the password is.<\/p>\nConfigure Apache and PHP<\/h3>\n
Once the installation of the required packages is completed, it is time to configure the software. Let\u2019s start with Apache. Enable the following Apache and PHP modules:<\/p>\n
a2enmod rewrite ssl cgi include actions suexec dav_fs dav auth_digest alias\r\nphpenmod mcrypt<\/pre>\nsystemctl restart apache2<\/pre>\nWe also need to configure Roundcube webmail to prevent it from showing server name input in the webmail login form.<\/p>\n
nano \/etc\/roundcube\/config.inc.php<\/pre>\nEdit the ‘default_host’ value to ‘localhost’<\/p>\n
$config['default_host'] = 'localhost';<\/pre>\nSave the file, then exit.<\/p>\n
Configure pure-ftpd<\/h3>\n
Since you will have to provide the users with FTP access to your Ubuntu VPS so they can upload and download files, you need to configure a chroot environment. That way, the users will not have access to the rest of the system. Edit the \/etc\/default\/pure-ftpd-common<\/code> file and change the value for VIRTUALCHROOT from false to true.<\/p>\nnano \/etc\/default\/pure-ftpd-common<\/pre>\nVIRTUALCHROOT=true<\/pre>\nSave the file and exit, then restart the service for the changes to take effect:<\/p>\n
systemctl restart pure-ftpd-mysql<\/pre>\nCreate a New List for Mailman<\/h3>\n
We can create a new list for Mailman now.<\/p>\n
newlist mailman<\/pre>\nYou will be asked to enter the email of the person that runs the list as well as a password. The script will provide you with an output of aliases that should be added to the \/etc\/aliases<\/code> file.<\/p>\nnano \/etc\/aliases<\/pre>\nThe file should be like the following:<\/p>\n
# Required aliases\r\npostmaster: root\r\nMAILER-DAEMON: postmaster\r\n\r\n# Common aliases\r\nabuse: postmaster\r\nspam: postmaster\r\n\r\n# Other aliases\r\nclamav: root\r\n\r\nmailman: \"|\/var\/lib\/mailman\/mail\/mailman post mailman\"\r\nmailman-admin: \"|\/var\/lib\/mailman\/mail\/mailman admin mailman\"\r\nmailman-bounces: \"|\/var\/lib\/mailman\/mail\/mailman bounces mailman\"\r\nmailman-confirm: \"|\/var\/lib\/mailman\/mail\/mailman confirm mailman\"\r\nmailman-join: \"|\/var\/lib\/mailman\/mail\/mailman join mailman\"\r\nmailman-leave: \"|\/var\/lib\/mailman\/mail\/mailman leave mailman\"\r\nmailman-owner: \"|\/var\/lib\/mailman\/mail\/mailman owner mailman\"\r\nmailman-request: \"|\/var\/lib\/mailman\/mail\/mailman request mailman\"\r\nmailman-subscribe: \"|\/var\/lib\/mailman\/mail\/mailman subscribe mailman\"\r\nmailman-unsubscribe: \"|\/var\/lib\/mailman\/mail\/mailman unsubscribe mailman\"\r\n<\/pre>\nSave and close the file. Initialize the alias database and restart the services.<\/p>\n
newaliases\r\nsystemctl restart mailman<\/pre>\n