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
server.techbabu.com
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:
#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/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
#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
#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.
#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 stat
Add a domain, User & edit php.ini
# /home/vpopmail/bin/vadduser techbabu.com password
Bring up your browser and go to:
Username: admin
Password: toaster
Change your password . . .
Edit /etc/php.ini and set register_globals = Off
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
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.
