Postfix is a popular open source email referral source that can be used to send and send emails to a Linux system. It is estimated that about 25% of online public servers use Postfix.
Installing Required Software Packages
It enables the user to install valuable packages that are not shipped with the official repository of Enterprise Linux.
Firstly remove default MTA Sendmail if it’s already installed. by running the command.
Add hostname entry in /etc/hosts file:
Disable SELinux to reduce the complexity in postfix configuration
Allow the Apache default port 80 through your firewall/router
Configuring Postfix by edit /etc/postfix/main.cf file:
Start/restart Postfix service now:
Configuring Dovecot by editing file /etc/dovecot/dovecot.conf
Edit file /etc/dovecot/conf.d/10-mail.conf file
Edit file /etc/dovecot/conf.d/10-master.conf
Start Dovecot service:
Change to /usr/share/squirrelmail/config/ and run conf.pl
Create a squirrelmail vhost in apache config file:
Add the following lines at the end:
Restart the Apache service:
Now navigate to http://ip-address/webmail or http://domain-name/webmail from your browser.
LOGIN WITH YOUR USERNAME AND PASSWD