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

Linux Lecture 013 IITK

The document outlines the setup of a mail server, detailing the architecture involving SMTP for mail transfer and PoP/IMAP for client retrieval. It includes specific configuration steps for Sendmail and Dovecot servers. Additionally, it provides instructions for setting up a Linux router with two network cards and enabling IP forwarding.

Uploaded by

Abhishek Goutam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views8 pages

Linux Lecture 013 IITK

The document outlines the setup of a mail server, detailing the architecture involving SMTP for mail transfer and PoP/IMAP for client retrieval. It includes specific configuration steps for Sendmail and Dovecot servers. Additionally, it provides instructions for setting up a Linux router with two network cards and enabling IP forwarding.

Uploaded by

Abhishek Goutam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 8

Mail Server Setup

MAIL SERVER SETUP


Mail Server Setup

Mail Architecture

Internet

Mail
Server
Mail
Server
Mail Server Setup

Mail Architecture
Mail Server Setup

Mail Architecture

Simple Mail Transfer Protocol (SMTP) is used to


transfer mail between Mail Servers over Internet
Post Office Protocol (PoP) and Internet Message
Access Protocol (IMAP) is used between Client and
Mail Server to retrieve mails
Mail Server Setup

Sendmail Configuration
Daemon: sendmail
Configuration File: /etc/mail/sendmail.mc
Edit the following lines

LOCAL_DOMAIN(`localhost.localdomain')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1,
Name=MTA')dnl

Run “make –C /etc/mail” command to compile


sendmail.mc and generate sendmail.cf file.
Restart sendmail and watch for errors
Mail Server Setup

PoP & IMAP Server

PoP3 & IMAP Server can be started using dovecot


server (service dovecot restart).
Linux Router Setup

LINUX ROUTER
Linux Router Setup

Linux Router

Install two Network Cards


Configure the two network cards to belong to two
networks
Edit the following line in /etc/sysctl.conf and reboot
net.ipv4.ip_forward=1
(The default value is 0)

You might also like