Your SlideShare is downloading. ×
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
How to Configure a mail server in linux
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

How to Configure a mail server in linux

14,376

Published on

Step by step guide to create and configure a mail server in LINUX.

Step by step guide to create and configure a mail server in LINUX.

Published in: Self Improvement, Technology
2 Comments
6 Likes
Statistics
Notes
No Downloads
Views
Total Views
14,376
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
582
Comments
2
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. HOW TO CONFIGURE A MAIL SERVER IN LINUX Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor
  • 2. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoorConsiderations: Hostname : khan.kkarachistan.com IP Address : 192.168.2.100 Operating System : RHEL 5 Page | 2
  • 3. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor1) Install BIND and Setup a DNS Server $ yum install bind $ yum install system-config-bind $ system-config-bind Add a Zone with the domain name (i.e. kkarachistan.com) Add an A record for the host (i.e. khan) Add an MX record for the domain. Final Configuration should look like this. $ vi /etc/resolve.conf Add: nameserver 192.168.2.100 make sure it is the first nameserver in the list. $ service named start $ chkconfig --add named Page | 3
  • 4. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor2) Install & Configure Postfix SMTP Server $ yum install postfix Set default MTA using following command $ alternatives --config mta $ vi /etc/postfix/main.cf Set: inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain home_mailbox = Maildir/ $ service postfix start $ chkconfig --add postfix Page | 4
  • 5. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor3) Install & Configure Dovecot IMAP/POP3 Server $ yum install dovecot $ vi /etc/dovecot.conf Find and update following settings protocols = pop3 pop3s imap imaps mail_location = maildir:~/Maildir/ pop3_uidl_format = %08Xu%08Xv imap_client_workarounds = delay-newmail outlook-idle netscape-eoh pop3_client_workarounds = outlook-no-nuls oe-ns-eoh For 64-bit users: Add the line login_process_size = 64 $ service dovecot start $ chkconfig --add dovecot Page | 5
  • 6. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor4) Create Mail User Accounts $ groupadd kkarachistan Create users by using the following commands $ useradd irfan -g kkarachistan -s /sbin/nologin $ passwd irfan Page | 6
  • 7. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor5) Install & Configure Apache Web Server $ yum install httpd $ service httpd start $ chkconfig --add httpd Page | 7
  • 8. Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor6) Install & Configure Squirrel Webmail Server $ yum install squirrelmail $ cd /usr/share/squirrelmail/config/ $ ./conf.pl Select C if you cannot see options Select D to set predefined Settings select dovecot From Main Screen Select 2 (Server Settings) set domain to kkarachistan.com Save Settings and Exit.Open your Browser and access http://khan.kkarachistan.com/webmailMUA like thunderbird, outlook, etc. can be configure to use this Server. Page | 8

×