{"id":17731,"date":"2015-10-17T13:19:45","date_gmt":"2015-10-17T18:19:45","guid":{"rendered":"https:\/\/mail.rosehosting.com\/blog\/?p=17731"},"modified":"2022-12-08T09:06:27","modified_gmt":"2022-12-08T15:06:27","slug":"how-to-install-citadel-9-with-spamassassin-and-clamav-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-citadel-9-with-spamassassin-and-clamav-on-a-centos-7-vps\/","title":{"rendered":"How to Install Citadel 9 with SpamAssassin and ClamAV on a CentOS 7 VPS"},"content":{"rendered":"
In this tutorial we are going to provide you with step-by-step instructions on how to install Citadel\u00a0on a CentOS 7 VPS<\/a>. Citadel is an open source messaging and collaboration platform. Citadel has lot of useful features, such as managing emails, calendars, scheduling, instant messaging and other collaboration tools.<\/p>\n This install guide assumes that a web server is already installed and configured on your\u00a0virtual server, so make sure to use a different port for the WebCit front end. At the time of writing this tutorial, the latest stable version of Citadel is\u00a09.01.<\/p>\n <\/p>\n Update your operating system packages, then install the ‘Development Tools’ using the following commands:<\/p>\n The ‘Development tools’ are a yum group, which is a predefined bundle of software (GCC, C\/C++ compilers, make etc.) that can be installed on your virtual server<\/a> at once, instead of having to install each application separately. The Development tools are mainly used to allow a user build and compile software from source code etc.<\/p>\n In order to finish the installation successfully, Citadel requires some additional packages such as WebCit front end, Berkeley DB, libical, libSieve etc., so run the following command to install them:<\/p>\n Start the installation process:<\/p>\n Citadel installation will automatically download and install all required dependencies. Once this process is complete, follow the easy steps:<\/p>\n Install SpamAssassin:<\/p>\n Edit the ‘local.cf’ configuration file and set SpamAssassin to rewrite the subject of spam emails:<\/p>\n Enable SpamAssassin to automatically start on boot and start the SpamAssassin service:<\/p>\n Update SpamAssassin rules using the following command:<\/p>\n ClamAV is available on EPEL repository, so install the EPEL package using the following command:<\/p>\n Install ClamAV, configure it and update the virus definitions:<\/p>\n That is it. The Citadel installation is complete.<\/p>\n Open\u00a0https:\/\/yourdomain.com:2443 using your favorite web browser, log in using the newly created administrator user account login credentials and start configuring Citadel: <\/p>\n <\/p>\n <\/p>\nyum clean all\r\nyum update\r\nyum groupinstall \"Development Tools\"<\/pre>\n
yum install gettext openssl-devel shared-mime-info which<\/pre>\n
cd \/opt\/\r\n\/usr\/bin\/wget -q -O - http:\/\/easyinstall.citadel.org\/install | sh<\/pre>\n
enter the name and password of the administrator\u00a0user account\r\n\r\nset user ID to\u00a0'citadel'\r\n\r\nenter\u00a0'0.0.0.0'\u00a0as\u00a0IP address which the server should be listening to\r\n\r\nset\u00a0the TCP port number to '504'\r\n\r\nchoose 'internal' as user authentication mode\r\n\r\nset WebCit to automatically start on boot\r\n\r\nset the locale WebCit should use (e.g. en_US)\r\n\r\nset WebCit to listen on port 2000 for HTTP requests\r\n\r\nset WebCit to listen on port 2443 for HTTPS requests<\/pre>\n
yum install spamassassin<\/pre>\n
vi \/etc\/mail\/spamassassin\/local.cf<\/pre>\n
rewrite_header Subject [SPAM]<\/pre>\n
systemctl enable spamassassin\r\nsystemctl start spamassassin<\/pre>\n
sa-update --nogpg<\/pre>\n
yum install epel-release<\/pre>\n
yum install clamav clamav-update\r\nsed -i -e \"s\/^Example\/#Example\/\" \/etc\/freshclam.conf\r\nfreshclam\r\n<\/pre>\n
\nGo to ‘Administration’ >> ‘Domain names and Internet mail configuration’ >> ‘SpamAssassin hosts’ and enter ‘127.0.0.1’ as the IP address of your SpamAssassin server.
\nOn the same page, enter ‘127.0.0.1’ to the ‘ClamAV server clamd hosts’ field as the IP address of ClamAV server.<\/p>\n