0% found this document useful (0 votes)
234 views8 pages

Configure A Mail Server in Linux

The document provides step-by-step instructions for configuring a mail server on a Linux system. It describes installing and configuring BIND as the DNS server, Postfix as the SMTP server, Dovecot as the IMAP/POP3 server, creating mail user accounts, installing Apache as the web server, and SquirrelMail as the webmail client. The configuration is demonstrated for a server with the hostname khan.kkarachistan.com and IP address 192.168.2.100 running Red Hat Enterprise Linux 5.

Uploaded by

Gangadhar Gutta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
234 views8 pages

Configure A Mail Server in Linux

The document provides step-by-step instructions for configuring a mail server on a Linux system. It describes installing and configuring BIND as the DNS server, Postfix as the SMTP server, Dovecot as the IMAP/POP3 server, creating mail user accounts, installing Apache as the web server, and SquirrelMail as the webmail client. The configuration is demonstrated for a server with the hostname khan.kkarachistan.com and IP address 192.168.2.100 running Red Hat Enterprise Linux 5.

Uploaded by

Gangadhar Gutta
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

HOW TO CONFIGURE A MAIL SERVER IN LINUX

Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

Considerations: Hostname : IP Address : Operating System : khan.kkarachistan.com 192.168.2.100 RHEL 5

Page | 2

Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

1) 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 Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

2) 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 Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

3) 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 Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

4) 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 Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

5) Install & Configure Apache Web Server $ yum install httpd $ service httpd start $ chkconfig --add httpd

Page | 7

Written By: Ahmer Mansoor Email : ahmer_mansoor@hotmail.com Profile : http://www.linkedin.com/in/ahmermansoor

6) 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/webmail MUA like thunderbird, outlook, etc. can be configure to use this Server.

Page | 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy