www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Configuring Postfix Mail Server in RHEL:- Mail server in Linux is usually three steps 1. Configure SMTP server. 2. Configure POP3/IMAP server. 3. Configure Web Mailer (Optional). Prerequisites:-  One static public IP address  HTTP server (Webserver) for the installation of Web mailer Configuring SMTP server: Install postfix package using yum w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Install system mail switch using yum Execute system mail switch and change MTA from send mail to postfix w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now use the netstat command to see which application is listening to port 25 Open postfix configuration file using vim Define queue directory w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Define the host name of the machine on which mail server is running by uncommenting and editing line Define local domain name by uncommenting and editing Uncomment the myorgin option w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Define the network interfaces addresses from which locally posted mails comes from Uncomment and edit the line and write domain name at the end of line Save and quit the file Define the aliases of the machine on which the post fix is running w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now place the entry in /etc/hosts file (if not using dedicated DNS) To enable mail relay configure the file w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Restart the post fix service and schedule it to run on startup Verify that post fix is running and listening on port 25 w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) 2. Configuring Dovecot (POP3/IMAP) server: Install dovecot package using yum Open dovecot configuration file using vim Define protocols that dovecot will use to retrieve the mails, do this by uncommenting the line w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Save and quit the file Start dovecot service w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) 3. Configuring Web Mailer:- Install apache HTTP server using yum Install squirrelmail using yum w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now open Apache configuration file Enable named based virtual hosting w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Enable virtual host stanza in the end of http Save and quit the configuration file Check the syntax for apache configuration file now to test web mailer use web browser on client side w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) check test mail box w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) w w w .onlinerana.com
www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) That’s ALL w w w .onlinerana.com

How to install and configure Postfix Mail Server in Redhat (RHEL) / CentOS Linux

  • 1.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Configuring Postfix Mail Server in RHEL:- Mail server in Linux is usually three steps 1. Configure SMTP server. 2. Configure POP3/IMAP server. 3. Configure Web Mailer (Optional). Prerequisites:-  One static public IP address  HTTP server (Webserver) for the installation of Web mailer Configuring SMTP server: Install postfix package using yum w w w .onlinerana.com
  • 2.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Install system mail switch using yum Execute system mail switch and change MTA from send mail to postfix w w w .onlinerana.com
  • 3.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now use the netstat command to see which application is listening to port 25 Open postfix configuration file using vim Define queue directory w w w .onlinerana.com
  • 4.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Define the host name of the machine on which mail server is running by uncommenting and editing line Define local domain name by uncommenting and editing Uncomment the myorgin option w w w .onlinerana.com
  • 5.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Define the network interfaces addresses from which locally posted mails comes from Uncomment and edit the line and write domain name at the end of line Save and quit the file Define the aliases of the machine on which the post fix is running w w w .onlinerana.com
  • 6.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now place the entry in /etc/hosts file (if not using dedicated DNS) To enable mail relay configure the file w w w .onlinerana.com
  • 7.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Restart the post fix service and schedule it to run on startup Verify that post fix is running and listening on port 25 w w w .onlinerana.com
  • 8.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) 2. Configuring Dovecot (POP3/IMAP) server: Install dovecot package using yum Open dovecot configuration file using vim Define protocols that dovecot will use to retrieve the mails, do this by uncommenting the line w w w .onlinerana.com
  • 9.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Save and quit the file Start dovecot service w w w .onlinerana.com
  • 10.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) 3. Configuring Web Mailer:- Install apache HTTP server using yum Install squirrelmail using yum w w w .onlinerana.com
  • 11.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Now open Apache configuration file Enable named based virtual hosting w w w .onlinerana.com
  • 12.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) Enable virtual host stanza in the end of http Save and quit the configuration file Check the syntax for apache configuration file now to test web mailer use web browser on client side w w w .onlinerana.com
  • 13.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) check test mail box w w w .onlinerana.com
  • 14.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) w w w .onlinerana.com
  • 15.
    www.onlinerana.com POSTFIX MAIL SERVERCONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) That’s ALL w w w .onlinerana.com