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

How to Configure a mail server in linux

on

  • 15,034 views

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.

Statistics

Views

Total Views
15,034
Views on SlideShare
15,030
Embed Views
4

Actions

Likes
5
Downloads
531
Comments
2

3 Embeds 4

http://www.linkedin.com 2
http://www.slideshare.net 1
http://faq.usually.eu 1

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • I am configuring mail server (mebmail) to access mail in graphical mode ...but there is no direcory dovecot in /etc...so i am not able to configure 10-auth.conf and 10-mail.conf file...what should i do...please give response
    Are you sure you want to
    Your message goes here
    Processing…
  • i am configuring mail server in linux ... i am configuring server to access mail in graphical mode ..i installed squirrelmail...but in /etc there is no dovecote directory...so i am not anle to configure 10-auth.conf and 10-mail.conf file...so what should i do ...help
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

How to Configure a mail server in linux How to Configure a mail server in linux Document Transcript

  • HOW TO CONFIGURE A MAIL SERVER IN LINUX Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.comProfile : http://www.linkedin.com/in/ahmermansoor
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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