Secure Email Server On Centos   June 4th, 2010

Qmailtoaster is a project whose purpose is to install Qmail with RPMs on RPM based Linux and these RPMs are source RPMs. The advantage of Qmailtoaster is that it contains all patches needed for Qmail for example domainkeys etc.

Included Featureset by Qmailtoaster

  • Source RPM packages easily rebuilt for multiple distributions
  • SMTP with SMTP-AUTH, TLS, REMOTE-AUTH
  • DomainKeys, SPF “Sender Policy Framework” and SRS “Sender Rewriting Scheme”
  • Integrated SpamAssassin, ClamAV and Simscan
  • Warlord virus and worm loader realtime MIME signature scanning
  • CHKUSER 2.0 functions for qmail-smtpd
  • Qmail-Tap provides email archive capability
  • Virtual Domains and Virtual Users using MySQL
  • Autoresponder for vacation/away from office messages
  • Integrated Mailing List (ezmlm)
  • Web-based email system using Squirrelmail
  • Web-based administration tools
  • POP3, POP3-SSL, IMAP and IMAP-SSL
  • Submission port (587) allows roaming users to skip RBL checks and port 25 blocks
  • eMPF patch for advanced policy control over email

Qmailtoaster has support for RHEL/CentOS (3.x, 4.x, 5.x , Fedora, Suse, Mandriva. We are going to install Qmailtoaster for CentOS 5.x

Prerequisites: Install Centos 5 base system, remaining packages and dependencies will be installed automatically with qmailtoaster scripts.

1) Configuration

#hostname
server.techbabu.com
#hostname –fqdn
server.techbabu.com

The hostaname should be in DNS with an A record, and it should also resolve to your reverse DNS name.

2) Dependencies scripts

All the dependencies are filled by the Qmailtoaster scripts. The first script will fill the dependencies. Create a directory to store downloads (scripts and packages) and run the dependency script:

#mkdir /usr/local/qmail
#cd   /usr/local/qmail
#wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-deps.sh
#wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-perl.sh
#sh cnt50-deps.sh
#sh cnt50-perl.sh

This script will ask some questions, default answers are fine.

In following firewall script change MYIP to machine’s IP on which you are installing Qmailtoaster. In svcs script change mysql root password of your choice.

#wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-svcs.sh
#wget http://www.qmailtoaster.com/distro/centos/cnt50/firewall.sh
#sh firewall.sh
#sh cnt50-svcs.sh

3) Install a caching only DNS server

It is better to install a DNS server, to resolve your mx entry for email. Just Follow following steps

#yum -y install caching-nameserver
#service named start
#chkconfig named on
#service named status

4) Download the Qmailtoaster packages

The Qmailtoaster contains a script to download all of the required packages for installation. This may take some minutes as packages are with sizes upto 20-30 MB

#wget http://www.qmailtoaster.com/distro/centos/cnt50/current-download-script.sh
#sh current-download-script.sh

5) Installing Qmailtoaster itself

Now actual work starts that is Email server, the Qmailtoaster contains installation scripts to install everything for you.

#wget http://www.qmailtoaster.com/distro/centos/cnt50/cnt50-install-script.sh
#sh cnt50-install-script.sh

The script will build each package for you, and also installs it . After each build process process it will pause and ask you if you want to continue. Once everything is done, reboot. Congratulations! You should have a fully installed secure Email system with anti virus scanning, spam filter and with other features described above.

6) Final Steps

For the final steps in your system, let’s make sure that the Qmailtoaster server is up and running:

qmailctl start
qmailctl stat

Add a domain, User & edit php.ini

# /home/vpopmail/bin/vadddomain techbabu.com password
# /home/vpopmail/bin/vadduser techbabu.com password

Bring up your browser and go to:

http://www.techbabu.com/admin-toaster/
Username: admin
Password: toaster
Change your password . . .

Edit /etc/php.ini and set register_globals = Off

#service httpd restart

Check your mail server:

http://www.techbabu.com/webmail

login with your full email address and your password

Send a email to your own account & another account check emails. That All. Enjoy

source here

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
This entry was posted on Friday, June 4th, 2010 at 8:58 pm and is filed under CentOS, databases, linux, mysql, Networking. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.

No Responses

Leave a Reply

*


http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_bye.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_good.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_negative.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_scratch.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_wacko.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_yahoo.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_cool.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_heart.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_rose.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_smile.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_whistle3.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_yes.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_cry.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_mail.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_sad.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_unsure.gif 
http://blog.csatpk.com/wp-content/plugins/wp-monalisa/icons/wpml_wink.gif