SlideShare a Scribd company logo
2
Most read
4
Most read
13
Most read
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

More Related Content

PDF
如何修改Totolink 登入帳號及密碼
PDF
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)
PDF
如果忘記TOTOLINK路由器的無線網路密碼怎麼辦?
PPT
PDF
Mail
PPTX
SquirrelMail for webmail
PPT
Linux corporate-training-in-mumbai
PDF
Tola.leng mail server (sq_mail & rcmail)_q5_
如何修改Totolink 登入帳號及密碼
TOTOLINK 路由器要如何Reset (完全恢復原廠預設值)
如果忘記TOTOLINK路由器的無線網路密碼怎麼辦?
Mail
SquirrelMail for webmail
Linux corporate-training-in-mumbai
Tola.leng mail server (sq_mail & rcmail)_q5_

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

PDF
Basic Linux Configurations
PPTX
Mail server on linux
ODP
DIY eMail@Home
PPTX
Mail server configuration
PDF
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
PDF
Lab08Email
DOCX
Build your own secure mail server on the cloud using Amazon Web Services
PDF
mail server
PDF
Red_Hat_Enterprise_Linux-9-Deploying_mail_servers-en-US.pdf
PPS
Linux10 sendmail
PPT
Linux Based Mail Server
PPTX
PPT
Mail services
PDF
Install iRedMail on Red Hat Enterprise Linux, CentOS
PDF
Install iRedMail on Red Hat Enterprise Linux, CentOS
ODP
7.protocols 2
PDF
Linux instalação e-conf postfix - pop3 eimap
PDF
Postfix, Imap e Pop3
DOC
Setting up your own email server with hmailserver
PDF
OpenSMTPD: we deliver !!
Basic Linux Configurations
Mail server on linux
DIY eMail@Home
Mail server configuration
Mail server on Ubuntu Server 12.04 (Postfix, Courier, SSL, SpamAssassin, Clam...
Lab08Email
Build your own secure mail server on the cloud using Amazon Web Services
mail server
Red_Hat_Enterprise_Linux-9-Deploying_mail_servers-en-US.pdf
Linux10 sendmail
Linux Based Mail Server
Mail services
Install iRedMail on Red Hat Enterprise Linux, CentOS
Install iRedMail on Red Hat Enterprise Linux, CentOS
7.protocols 2
Linux instalação e-conf postfix - pop3 eimap
Postfix, Imap e Pop3
Setting up your own email server with hmailserver
OpenSMTPD: we deliver !!
Ad

Recently uploaded (20)

PPTX
Press Release Importance & Structure.pptx
PDF
CISSP Domain 6: Security Assessment and Testing
PPTX
Empowering Project Management Through Servant Leadership - PMI UK.pptx
PPTX
BASIC H2S TRAINING for oil and gas industries
PPTX
Project Management Methods PERT-and-CPM.pptx
PPTX
Chapter One an overview of political economy
PPTX
Self-Awareness and Values Development presentation
PPTX
Human Resources management _HR structure
PDF
CHAPTER 14 Manageement of Nursing Educational Institutions- planing and orga...
PDF
Human resources management is a best management
PPTX
Basics of Project Management for development of leadership skills in practice
PDF
MANAGEMENT LESSONS FROM ANCIENT KNOWLEDGE SYSTEM-ARTHASHASTRA AND THIRUKKURAL...
PDF
Phillips model training for evaluation pdf
PDF
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
PDF
Equity at the Helm_ Guiding Schools Through Inclusive Leadership by Dr.pdf
PDF
Timeless Leadership Principles from History’s Greatest Figures by Alfonso Ken...
PDF
The Plan: Save the Palestinian Nation Now
PPTX
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
PPTX
Mangeroal Finance for Strategic Management
PDF
ORGANIZATIONAL communication -concepts and importance._20250806_112132_0000.pdf
Press Release Importance & Structure.pptx
CISSP Domain 6: Security Assessment and Testing
Empowering Project Management Through Servant Leadership - PMI UK.pptx
BASIC H2S TRAINING for oil and gas industries
Project Management Methods PERT-and-CPM.pptx
Chapter One an overview of political economy
Self-Awareness and Values Development presentation
Human Resources management _HR structure
CHAPTER 14 Manageement of Nursing Educational Institutions- planing and orga...
Human resources management is a best management
Basics of Project Management for development of leadership skills in practice
MANAGEMENT LESSONS FROM ANCIENT KNOWLEDGE SYSTEM-ARTHASHASTRA AND THIRUKKURAL...
Phillips model training for evaluation pdf
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
Equity at the Helm_ Guiding Schools Through Inclusive Leadership by Dr.pdf
Timeless Leadership Principles from History’s Greatest Figures by Alfonso Ken...
The Plan: Save the Palestinian Nation Now
The Sustainable Site: Boosting Productivity in Construction – Pipe Dream or P...
Mangeroal Finance for Strategic Management
ORGANIZATIONAL communication -concepts and importance._20250806_112132_0000.pdf
Ad

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

  • 1. 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
  • 2. 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
  • 3. 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
  • 4. 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
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. 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
  • 12. 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
  • 13. www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) check test mail box w w w .onlinerana.com
  • 14. www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) w w w .onlinerana.com
  • 15. www.onlinerana.com POSTFIX MAIL SERVER CONFIGURATION |REDHAT|CENTOS|LINUX rana.shahzad@outlook.com(923334089872) That’s ALL w w w .onlinerana.com