has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.

Slides:



Advertisements
Similar presentations
Basic Communication on the Internet:
Advertisements

© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 10: Application Layer Introduction to Networks.
The Application Layer Chapter 7. Where are we now?
Exchange server Mail system Four components Mail user agent (MUA) to read and compose mail Mail transport agent (MTA) route messages Delivery agent.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
CS 497C – Introduction to UNIX Lecture 38: - Electronic Mail Chin-Chih Chang
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
Mail Server Setup MAIL SERVER SETUP.
Chapter Eleven An Introduction to TCP/IP. Objectives To compare TCP/IP’s layered structure to OSI To review the structure of an IP address To look at.
Mail Server Three major components MTA MUA MDA Mail Transfer Agent
Mail Services.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
A form of communication in which electronic messages are created and transferred between two or more devices connected to a network.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 3: TCP/IP Architecture.
Webmail. Agenda Why use webmail? Why use webmail? What is webmail What is webmail – basic » system MDA MDA MTA MTA MUA MUA »Protocol SMTP SMTP.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
BY SAGAR SINHA SAPTARSHI BAKSHI SARTHAK JAIN SHAILZA CHAUDHARY
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
Simple Mail Transfer Protocol (SMTP)
Recovery-Oriented Computing User Study Training Materials October 2003.
1 Using Messages sent from machine to machine and stored for later reading. You will use a client to read –Type mail or pine in UNIX to read.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
What is and How Does it Work?  Electronic mail ( ) is the most popular use of the Internet. It is a fast and inexpensive way of sending messages.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
and its Protocols Hina Patel TCM
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Proxy Server PROXY SERVER. What is a Web Proxy? Proxy Server A proxy is a host which relays web access requests from clients Used when clients do not.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
1 COP 4343 Unix System Administration Unit 14: – send and receive mail – mail filtering – mail server – mailing lists.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
Protocols COM211 Communications and Networks CDA College Olga Pelekanou
A Quick Look At How Works Understanding the basics of how works can make life a lot easier for any user. Especially those who are interested.
4343 X2 – Outline The Domain Name System The Web.
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
1 Kyung Hee University Chapter 22 Simple Mail Transfer Protocol (SMTP)
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
1 Outlook web app مریم جعفری. Preface 2 Webmail (or web-based ) is any client implemented as a web application running on a web server. Examples.
IST 201 Chapter 11 Lecture 2. Ports Used by TCP & UDP Keep track of different types of transmissions crossing the network simultaneously. Combination.
Understanding POP3 / IMAP Created by : Ashish Shah, J. M. Patel College of Commerce 1.
Mail Server Mail is just a message in any form sends from sender to receiver. Mail Server is a computerized system that is equivalent to virtual post office.
concepts & protocols
Network Programming 10- SMTP-POP3
Networking Applications
UNIT II Configuring additional hardware. Everyday task using Linux.
Remote Logging, Electronic Mail, and File Transfer
SMTP SMTP stands for Simple Mail Transfer Protocol. SMTP is used when is delivered from an client, such as Outlook Express, to an server.
Instructor Materials Chapter 5 Providing Network Services
SMTP SMTP stands for Simple Mail Transfer Protocol. SMTP is used when is delivered from an client, such as Outlook Express, to an server.
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
Chapter 10: Application Layer
HmailServer Karam al-sofy & Faten alhasan.
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
Topic 5: Communication and the Internet
Working at a Small-to-Medium Business or ISP – Chapter 7
Protocols 2 Key Revision Points.
Unit – 4 Chap - 2 Mail Delivery System
Chapter 10: Application Layer
Applications Layer Functionality & Protocols
Networking for Home and Small Businesses – Chapter 6
Chapter 7 Network Applications
 Zone in name space  DNS IN THE INTERNET  Generic domains :There are fourteen generic domains, each specifying an organization type.
Presentation transcript:

Setting up email servers.

Email Email has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There are three main parts that we will look at: sending email on a server, receiving email on a server and receiving email as a client The simplest is to receive email as a client. You merely put in the name of the server that holds your email and download it.

Cont.. On Linux, you can view your email through many different programs. There are graphical programs like Mozilla, Ximian Evolution and Kmail You can also use programs from the command line like 'pine' and 'mutt'

Email on the Server Getting and reading email is simple on a client, but setting up a server to get and send email requires a little more understanding of how email works There are three parts to have an email server The MTA – Mail Transport Agent (most people use the program called 'sendmail') The LDA – Local Delivery Agent (most people use the program procmail)

Cont… IMAP and POP3 servers – these are two ways to get email from a server. When a client connects to a server to get email, they will use one of these servers

Setting up Sendmail Sendmail normally runs with all RedHat distributions, so you won't need to start any service. Sendmail is a Mail Transport Agent – this means that it is a program which moves mail from one computer to another computer. It is estimated that 80% of all email is handled by Sendmail today. With Sendmail, you can do many things, like block spam, relay mail, have forwarders and configure ways to route mail automatically across networks.

Setting up Sendmail Setting up Sendmail can be an enormous task if you want to do complicated things, but if we just want it to accept email, we can keep it simple. First change into /etc/mail where the sendmail files are saved Sendmail has a different configuration, where you edit files and then compile them into a form that Sendmail accepts.

Cont… First open the file “access” - This is the file that contains all the domains to which the Send mail is allowed to send emails. You’ll also want to make a file called “relay-domains” and put your domain in there. This is to stop people from outside using your server to send spam You need to add your domain here and any domains that might be owned by your network

Setting up Sendmail You'll also want to open up the file “local-host-names” - This will contain other names for your computer, so that Send mail will still accept mail from these domains. This file should contain any other names you have for your computer Now your sendmail will know from whom it can accept mail from and whom it must not.

Setting up Sendmail The actual sendmail configuration file is “sendmail.cf” to which the changes are made, which you then compile to make into the “sendmail.mc” In RedHat, they use this program called “m4” to generate the sendmail.cf file So after we edit the “sendmail.mc” file, we use m4 to change it, like [root@comp root]# m4 sendmail.mc > sendmail.cf

Setting up Sendmail Now that you have the configuration set up for Sendmail, you can restart the service if you want to take the new changes into affect So we use the service command to restart sendmail [root@comp root]# service sendmail restart And you can check to see if it's running by using 'ps -aux' and you'll see an entry that says, “sendmail: accepting connections” This means that it is up and running and people can send email to your server

MX Records MX Records – Mail Exchange records are part of the DNS system for the entire Internet. In order for other computers to know where to send you email, you need to have the correct MX records set up on some Name Server on the internet. They use a numerical priority determines the order in which servers should be used. The server with the lowest priority is the primary.

Local Delivery Agents In most RedHat distributions, Sendmail will get the mail from some server on the Internet and then pass it off to another program for local delivery This means there is another layer of handling before an email will reach your inbox. Procmail is usually the program that is chosen to do the local delivery. The reason that there is another layer is that it is easy to do things to mail after it has come in with procmail. For example, you could sort mail into different folders, delete it if it is spam or make copies of everybody's email

Procmail When a new message comes in, Procmail will start automatically and deliver the mail to the correct folder for the person to read it You can change how mail is delivered through a procmail configuration file. Initially, there is no configuration file for procmail, because it will just give whatever mail comes in to the person who should receive it

Cont… You can make one yourself though by creating a file called “/etc/procmail.rc” This is the file where you can put rules that will change how mail is delivered

Cont… For example, if you want to make a copy of everyone's email so you can read it yourself: :0c /home/mycopy-email The ':0' part says that a new rule is starting. The 'c' says copy all email and the following line says where to copy it.

Procmail Example: If you wanted to delete all email that came from a certain domain :0 * ^From.*bad-person@bad-domain.com /dev/null The first line says a new rule is starting. The next line checks if the 'From' field is from bad-person@bad-domain.com

Cont… The last line says move that message to /dev/null if the email is from that person /dev/null is like the trash bin for linux. If you move something there, it delete's it automatically.

IMAP and POP3 The last part of setting email on the server is to have a way for users to get that email. The most popular way is through to services called IMAP and POP3 IMAP - Internet Message Access Protocol It permits a "client" email program to access remote message stores as if they were local.

Cont… For example, email stored on an IMAP server can be manipulated from a desktop computer at home, a workstation at the office, and a notebook computer while traveling, without the need to transfer messages or files back and forth between these computers.

Turning on IMAP To get IMAP and POP3 working on your server or to get them started, you need to edit a file called “/etc/inetd.conf” This file has a list of all the services that are running and what ports they are connected on.

Cont.. Look down the list until you see the info for port “139” – pop3 and “143” – IMAP. Uncomment those lines and the next time you restart the server, IMAP and pop3 should be started

POP3 The other way to get email is through the POP3 service POP – Post Office Protocol It was the first way to get email from a server. POP3 is the latest version, which has replaced POP2.

Cont… POP is different from IMAP in that everything is downloaded to the client machine. Thus, if you make a change to your mail, it will only be changed on the client machine and not the server You can turn it on using the same procedures from IMAP

Cont… A good way to see if it is running, try [root@comp root]# telnet localhost 25 What this command will do is use the telnet program to connect to port 25 on the computer you are using. You will then be able to see the protocol and server messages coming from the SMTP server

IMAP and POP You can also see how the IMAP and POP servers work by using the same telnet idea IMAP runs on port 143 POP3 runs on port 110 [root@comp root]# telnet localhost 143 [root@comp root]# telnet localhost 110