Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
HOW TO     CONFIGURE          A     MAIL SERVER          IN       LINUX              Written By: Ahmer Mansoor         Ema...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoorConsiderations:...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor1) Install BIND...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor2) Install & Co...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor3) Install & Co...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor4) Create Mail ...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor5) Install & Co...
Written By: Ahmer MansoorEmail : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor6) Install & Co...
Upcoming SlideShare
Loading in …5
×

How to Configure a mail server in linux

16,618 views

Published on

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

Published in: Self Improvement, Technology

How to Configure a mail server in linux

  1. 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. 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. 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. 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. 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. 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. 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. 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

×