CentOS Linux Server Guide

Artica for Postfix on CentOS Linux Server

Installing Artica for Posftix Server 1.4.x on CentOS 5.x

 

The installation is very straight forward. However, I found the installation does not work well with clamav.

 

Pre-installation requirement

Artica is not compatible with SELINUX. If you have GNome Desktop installed earlier, selinux will be removed together with X-Window, we do not need gnome-desktop anymore. 

 

Make sure that you eemove Selinux and reboot  your CentOS Linux system. If you installed gnome-desktop earlier, you might found the X-Windows is missing,  just press <OK> .

 

yum -y remove selinux-policy gnome-desktop

 

Step1 : Install RPMforge repositories

You need RPMforge repositories to install rrdtool,perl-HTML-Parser, perl-HTML-Tagset,awstats,perl-File-Tail,mimedefang..

 

First, we need to trust DAG rpm package's GPG key

rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt

 

Download the RPMforge RPM packages

wget  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

 

It is advisable to verify the package you have downloaded

rpm -K rpmforge-release-0.5.1-1.el4.rf.i386.rpm

 

If the above verification process passed, we are safe to install the packages

rpm -iUvh  http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

 

 

Step2: Install Linux::Net:Dev

rpm -iUvh ftp://ftp.pbone.net/mirror/reb00t.com/fedora/8/perl/perl-Linux-net-dev-1.00-3.n0i.3.fc8.noarch.rpm


 

Step3 :Install Postfix and associated plugin packages

yum -y install upx ucl  spamassassin spamass-milter  milter-greylist mimedefang postfix   php httpd openssl openldap-servers mysql-server lighttpd lighttpd-fastcgi php php-mysql php-ldap php-gd php-imap rrdtool awstats perl-libwww-perl perl-TermReadKey GeoIP-data perl-File-Tail perl-LDAP perl-Unicode-MapUTF8 gcc make perl-Date-Calc perl-Crypt-SmbHash cyrus-imapd-perl perl-IMAP-Admin

 

start up mysql

service mysqld start

chkconfig --level mysqld on

 

Step4: Download Artica packages

Now, let us downloal artica-postfix-*.rpm from Artica Website

wget http://linux-mail.org/download/setup-centos.tgz

 

 

Step5 :Unpack Artica system

tar -xf setup-centos.tgz

 

chmod 777 setup-centos

 

 

Step6 :Setup Artica system

Now, let  us setup the Artica system for the system for the first time

./setup-centos

 

Now, let  us setup the Artica system for the system for the first time. You will notified by Artica that Artica is not compatible with SELINUX. If you have not uninstall and reboot the system, You have to uninstall it. Press "Y"

./setup-centos.

[root@artica software]# ./setup-centos
Exporting path in /root/.profile...
ERROR while exporting PATH
initialize...
Detected:CENTOS ""... Major version:5 Minor:4
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.pacific.net.au
* base: mirror.pacific.net.au
* centosplus: mirror.files.bigpond.com
* contrib: mirror.pacific.net.au
* extras: mirror.files.bigpond.com
* rpmforge: fr2.rpmfind.net
* updates: mirror.files.bigpond.com

cadaver.i386 0.22.5-1.el5.rf rpmforge
dnsmasq.i386 2.51-1.el5.rf rpmforge
kernel.i686 2.6.18-164.11.1.el5.centos.plus centosplus
lftp.i386 4.0.5-1.el5.rf rpmforge
mtr.i386 2:0.75-1.el5.rf rpmforge
rpmforge-release.i386 0.5.1-1.el5.rf rpmforge
rsync.i386 3.0.7-1.el5.rf rpmforge
syslinux.i386 3.85-1.el5.rf rpmforge
udftools.i386 1.0.0b3-3.el5.rf rpmforge
Checking.............: system...
Checking.............: SeLinux...
Artica is not compliance with SeLinux istalled on your system...
Do you want to uninstall it ? [Y]
Y
You need to reboot your computer.....
after rebooting , launch the command
"/software/setup-centos"

 

 

Step6a :Reboot the system (Optional)

If you have just uninstalled the Selinux and reboot the system just skip this step.

init 6

 

 

Step7 :Setup Artica again

Rerun the "./setup-centos" again

./setup-centos

 

Step8 : mandatory dependencies checking

After you run the ./setup-centos command, the installation will run a pre-installation dependecies checking process. Just wait until the following screen appeared.

Some dependencies will missing for next installation if you
continue, some packages installed will failed...
Press Enter key to continue or press "c" and Enter if you want to skip mandatories checking
<HIT ENTER BUTTON>

 

 

After you hit [Enter], the following screen appeared, hit [Enter] again to proceed with mandatory dependencies installation.

 

###########################################
## ##
## Artica-postfix modules installation ##
## ##
###########################################

"Be sure to not install Artica on a production server already set
Artica will transform this system to fit it`s needs that should not encounter
your same parameters strategy. use a free system before installing it!"
Select the modules you want to install:

##################################################################
## ##
## Install mandatories dependencies..:..................[ENTER] ##
## ##
##################################################################

This will install 97 package(s):
Quit the installation program.........................:[Q]
Type the option.......................................:
<HIT ENTER BUTTON>

 

Packages are now ready to be download and installed, press "Y" now. This is long installation process, go for a cup of coffee and relax :)

 


The following package(s) must be installed in order to perform continue setup

-----------------------------------------------------------------------------
",strace,lshw,openldap-clients,nfswatch,gfs2-utils,libmcrypt,php-pear,php-pear-Log,php-pecl-mailparse,php-pear-Mail-Mime,php-pear-Net-Sieve,php-mbstring,php-mcrypt,rrdtool-devel,perl-Module-Build,perl-Net-Server,perl-SOAP-Lite,perl-Net-IP,perl-XML-Simple,perl-Apache-DBI,perl-Tie-IxHash,perl-Socket6,perl-IO-Socket-INET6,mod_perl,mysql-devel,cyrus-sasl-ldap,perl-Authen-SASL,fuse-sshfs,fuse,bridge-utils,openvpn,catdoc,antiword,libwpd-tools,unrtf,xpdf,zabbix,zabbix-web,zabbix-agent,upx,glib-devel,expat-devel,libxml2-devel,pcre-devel,openldap-devel,byacc,flex,gcc-c++,clamav-devel,gdbm-devel,cyrus-sasl-devel,db4-devel,krb5-devel,libgssapi-devel,imake,unixODBC-devel,unixODBC,php-devel,freetype-devel,t1lib-devel,libpaper-devel,bzip2-devel,GeoIP-devel,aspell-devel,curl-devel,e2fsprogs-devel,freetype-devel,keyutils-libs-devel,krb5-devel,libidn-devel,libjpeg-devel,libpng-devel,libselinux-devel,libsepol-devel,libstdc++-devel,libX11-devel,libXau-devel,libXdmcp-devel,libXpm-devel,net-snmp-devel,openldap-devel,openssl-devel,zlib-devel,gd-devel,libtool-ltdl-devel,readline-devel,ntp,libusb-devel,perl-Inline,libcdio,lm_sensors,lm_sensors-devel,sysstat,arj,nmap,htop"
-----------------------------------------------------------------------------

Do you allow install these packages? [Y]
Y
 

 

 

Step9 : Downloading Artica latest version1.4.X

Next, we proceed with downloading Artica packages, the latest packages is 1.4.x

Complete!
Checking.............: system...
Checking.............: SeLinux...
Checking.............: Building package list...
Checking.............: waiting for rpm exporting list
Checking.............: Exporting list done...
Checking.............: Base system...
Check base system verify 151 packages
Checking.............: Building package list...
Checking.............: waiting for rpm exporting list
Checking.............: Exporting list done...
Check base system 0 packages to be installed
Checking.............: Postfix system...
Checking.............: Building package list...
Checking.............: waiting for rpm exporting list
Checking.............: Exporting list done...
Checking.............: Cyrus system...
Checking.............: Files Sharing system...
Checking.............: Squid proxy and securities...
Checking.............: PowerDNS System...
Artica is ready to be installed...
Do you want to install artica now ? [Y]
Y

Getting index file
####################################################################100.0%
Downloading 1.4.031417 artica version
##################################                                                                     45.1%
 

 

Step9 : Installing Artica Modules

After the downloading process completed, you will see the following screen. You have the choice of 4 installation options

1) Posftfix SMTP MTA (Mainly for Mail Services)

2) Samba File Sharing and Pure-ftpd  (File Sharing and FTP)

3) Squid Proxy (Proxy and URL Filtering)

4) All modules from 1-3 above

 

I  am going to accept ALL Artica Posfix modules at this moment. Type A to continue.

 

#################################################################################
## ##
## You can access to artica by typing https://yourserver:9000 ##
## Use on logon section the username "Manager" ##
## Use on logon section the password "secret" ##
## You have to logon to artica web site, set yours domains and apply policies ##
## ##
## You can install others package by executing artica-make ##
## /usr/share/artica-postfix/bin/artica-make --help ##
## ##
#################################################################################

Select the modules you want to install:
Install all modules.......:................................[A]

SMTP MTA (include postfix and securities modules):.....[1]
24 package(s) are not installed
**********************************************************
Files Sharing (include Samba and Pure-ftpd):...........[3]
8 package(s) is not installed
**********************************************************

Squid Proxy (include Squid and dansguardian):..........[4]
3 package(s) are not installed
**********************************************************

NFS System :...........................................Installed
**********************************************************

PowerDNS System :......................................Installed

----------------------------
Install/upgrade Artica-postfix:........................[5] (1.4.031417)
reboot Artica-postfix:................................[R]
Get SuperAdmin Infos:..................................[I]

Quit the installation program.........................:[Q]
Type the option.......................................:
A

 

Since we are choosing ALL modules, you have to accept all the following packages..Hit Y button to continue. My installation packages is approx 70+. The installation will also to install roundcubemail, one of the popular webmail  also Just be patient and relax for more coffee.

 

The following package(s) must be installed in order to perform continue setup

-----------------------------------------------------------------------------
" ,perl-Razor-Agent,sendmail-devel,perl-Crypt-SSLeay,perl-Convert-TNEF,perl-Archive-Zip,perl-Font-TTF,perl-BerkeleyDB,postfix,clamav-milter,spamass-milter,sendmail-devel,milter-greylist,spamassassin,mailman,postfix-pflogsumm,perl-Email-Valid,perl-File-ReadBackwards,perl-Mail-SPF,perl-Email-MIME,perl-Email-MIME-Modifier,perl-Mail-SRS,perl-Net-DNS,perl-Email-Send ,samba,samba-client,cups-devel,gimp-print-cups,gtk2-devel,libtiff-devel,pam-devel ,squid,sarg"
-----------------------------------------------------------------------------

Do you allow install these packages? [Y]
Y
 

 

 

We are almost there... You will notice 2 packages for SMTP MTA are not installed. I rerun option 1,

"Be sure to not install Artica on a production server already set
Artica will transform this system to fit it`s needs that should not encounter
your same parameters strategy. use a free system before installing it!"

#################################################################################
## ##
## You can access to artica by typing https://yourserver:9000 ##
## Use on logon section the username "Manager" ##
## Use on logon section the password "secret" ##
## You have to logon to artica web site, set yours domains and apply policies ##
## ##
## You can install others package by executing artica-make ##
## /usr/share/artica-postfix/bin/artica-make --help ##
## ##
#################################################################################

Select the modules you want to install:
Install all modules.......:................................[A]

SMTP MTA (include postfix and securities modules):.....[1]
2 package(s) are not installed
**********************************************************
Files Sharing (include Samba and Pure-ftpd):...........Installed
**********************************************************

Squid Proxy (include Squid and dansguardian):..........Installed
**********************************************************

NFS System :...........................................Installed
**********************************************************

PowerDNS System :......................................Installed

----------------------------
Install/upgrade Artica-postfix:........................[5] (1.4.031417)
reboot Artica-postfix:................................[R]
Get SuperAdmin Infos:..................................[I]

Quit the installation program.........................:[Q]
Type the option.......................................:
1
 

 

It seems that the packages already installed. Nevermind, I skip that

Package perl-Email-MIME-Modifier is obsoleted by perl-Email-MIME, trying to install perl-Email-MIME-1.903-2.el5.rf.noarch instead Package perl-Email-MIME-1.903-2.el5.rf.noarch already installed and latest version
 

 

Okay you will bring back to previous screen, press I for more information

#################################################################################
## ##
## You can access to artica by typing https://yourserver:9000 ##
## Use on logon section the username "Manager" ##
## Use on logon section the password "secret" ##
## You have to logon to artica web site, set yours domains and apply policies ##
## ##
## You can install others package by executing artica-make ##
## /usr/share/artica-postfix/bin/artica-make --help ##
## ##
#################################################################################
 

 

Step 10: Reboot Artica and Quit the services.

Now, press R to reboot Artica.

 

 

Step 11: Login to Artica

Start up your favorite browser, you can access to artica at the following URL

 

 URL  :httpS://yourserver:9000

 user : Manager

 password: secret

 

Artica Login Username and Password for CentOS Linux

 

You will see the following screen after login

Artica Dashboard

 

Step 12: Post installation clean up

 

Since we are giving 777 to setup-centos, it is best to remove it. Also, please remember to put  password for your mysql's root.

 

 

Back to Artica for Postfix on CentOS Linux



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy