Saturday, August 25, 2012

Build A Full-Featured Mail Server

Linux Open source Mail server for CentOs 6.
By following this tutorial, you will have below major software and services ready for production use:
  • Postfix: SMTP service
  • Dovecot: POP3/POP3S, IMAP/IMAPS, Managesieve service
  • PostgreSQL: Storing mail accounts and application data
  • Apache: Web server
  • Amavisd, SpamAssassin, ClamAV: Anti-spam, anti-virus
  • Roundcube: Webmail
  • Fail2ban: scans log files (e.g. /var/log/maillog) and bans IPs that show the malicious signs -- too many password failures, seeking for exploits, etc.
  • iRedAdmin: A basic, free & open source administration panel to manage the mail accounts. Full featured edition is available for purchase here: http://www.iredmail.org/admin_panel.html.
  • Awstats: Apache and Postfix log analyzer
  • phpPgAdmin: web-based administration tool for PostgreSQL


iRedMail is:
  • A ZERO COST, fully fledged, full-featured mail server solution. All components are free and open source software.
  • An open source project, released under GPLv2, hosted on BitBucket.
With iRedMail, you can set up a full-featured, zero-cost mail server in less than 2 minutes. iRedMail works on 8 major Linux/BSD distributions:

Hostname setting: /etc/sysconfig/network
# Part of file: /etc/sysconfig/network
HOSTNAME=vishalvyas.com 
Verify the FQDN hostname with command 'hostname -f'. If you change the hostname, please reboot the server to make it work.
$ hostname -f
vishalvyas.com  

Download
iRedMail from Here Download
cd /opt
tar -xvf iRedMail-0.8.1.tar.bz2
cd iRedMail-0.8.1
bash iRedMail.sh

1) Welcome and thanks for your use:
yes
2) Specify location to store all mailboxes. Default is /var/vmail/.
3) Choose backend used to store mail accounts. We will choose PostgreSQL for example in this tutorial, please choose the one which you're familiar with. You can manage mail accounts with iRedAdmin, our web-based iRedMail admin panel. 
4) Set password of PostgreSQL/MysQl admin user. PostgreSQL/MysQl is used to store mail accounts and application data. e.g. Roundcube webmail, Amavisd-new. 
5) Add your first mail domain name: 
mail.vishalvyas.com
6) Set password of admin account of your first mail domain.
7) Choose optional components:
After these questions, iRedMail installer will ask you to confirm this installation. It will install and configure required packages automatically. Type y or Y and press Enter to confirm, type n or N and press Enter to cancel this installation.   
Important Things You Should Know After Installation
> Read file /root/iRedMail-x.y.z/iRedMail.tips first, it contains:
> URLs, usernames and passwords of web-based applications
> Location of mail serve related software configuration files
>
Some other important and/or sensitive information
Access Webmail And Other Web Applications
After installation has successfully completed, you can access web-based programs if you choose to install them. Replace your actual server name or IP address.

Webmail: http://vishalvyas.com/mail/ (or /webmail, /roundcube. HTTPS is available also.)
Admin panel: httpS://vishalvyas.com/iredadmin/
phpMyAdmin: httpS://vishalvyas.com/phpmyadmin/
Awstats: httpS://vishalvyas.com/awstats/awstats.pl?config=web (or ?config=smtp) 
 



Thanks,
Vishal Vyas                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

How to Install docker-compose CentOS7

 Install Docker-compose on CentOs7 Linux. yum install -y epel-release yum install -y python-pip pip install --upgrade pip pip install ...