Advertisements
Skip to content

How to configure mail server in linux

Our Score
Click to rate this post!
[Total: 0 Average: 0]

In This Tutorial We Are Going To Learn How To Configure Mail Server In Linux But Before Configuring Mail server You Must Have configured Yum Server In Linux

If you don’t know how to configure yum server so by click this link you can learn how to configure yum server

 

How To Configure Yum Server In Redhat Linux Rhel-4&5

Now How To Configure Mail Server

Here Is The Coding Of Configuring Mail Server

#yum install http* -y {For Installing http Package}
#yum install httpd* -y
#yum install sendmail* procmail* mutt* m4* make* -y {For Installing Sendmail Procmail Mutt m4 And Make Package}
#vim /etc//mail {To Go Inside The Mail Folder}
#vim sendmail.mc {After Running This Command Then go To The Line No.116 And The Starting The line Type dnl #}
#m4 sendmail.mc > sendmail.cf
#service sendmail restart {For Restarting The service Of sendmail Server}
#yum install dovecot* -y
#vim/etc/dovecot.conf {After Running This Command Then go To The Line No.20 And Erase Imaps And Pop3s}
#service dovecot restart {For Restarting The service Of Dovecot Server}
#service httpd restart {For Restarting The service Of httpd Server}
#yum install squrrerilmail* -y {For Installing Squrrerilmail Package}
#service sendmail restart {For Restarting The service Of sendmail Server}
#service dovecot restart {For Restarting The service Of Dovecot Server}
#service httpd restart {For Restarting The service Of http Server}
#iptables -F {To Turn Off The Firewall Of Linux}
#setenforce 0

Now we have to create user

Now here you can see how to create a user in linux

#useradd linux
#passwd linux
{Now Create Password}

#Useradd ccna
#passwd ccna
{Now Create Password}

After creating user now go to the chrome browser and then in search Engine insert the ip address of the linux machine and type \webmail

192.168.56.101\webmail

After this now login with any one user and then mail to another user to see that the mail server we have configured is working or not.

This Is All How We Configured Mail Server In Linux\

 

Cyber Security Training Notes

Advertisements

Leave a Reply

Discount Offer

Now Get 50% Discount

On Cyber Security Training                                                       Notes  

Click here  To Purchase

%d bloggers like this: