1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.

Slides:



Advertisements
Similar presentations
Kalpesh Vyas & Seward Khem
Advertisements

Basic Communication on the Internet:
Lesson 7: Business, , & Personal Information Management
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
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.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Apache : Installation, Configuration, Basic Security Presented by, Sandeep K Thopucherela, ECE Department.
Chapter 2: Application layer  2.1 Web, HTTP and HTML (We will continue…)  2.2 FTP  2.3 SMTP 9/22/2009 Lecture 7, MAT 279, Fall
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
Introduction 1 Lecture 7 Application Layer (FTP, ) slides are modified from J. Kurose & K. Ross University of Nevada – Reno Computer Science & Engineering.
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Four : Mail 王俊城RHCE/RHCX.
Introduction 1-1 Chapter 2 FTP & Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 IC322 Fall.
Managing Client Access
Module 4 Managing Client Access. Module Overview Configuring the Client Access Server Role Configuring Client Access Services for Outlook Clients Configuring.
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
Electronic Mail (SMTP, POP, IMAP, MIME)
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
1 Web Server Administration Chapter 8 Providing Services.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Mail Server Three major components MTA MUA MDA Mail Transfer Agent
IT 424 Networks2 IT 424 Networks2 Ack.: Slides are adapted from the slides of the book: “Computer Networking” – J. Kurose, K. Ross Chapter 2: Application.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Fall 2005 By: H. Veisi Computer networks course Olum-fonoon Babol Chapter 7 The Application Layer.
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.
Module 4: Add Client Computers and Devices to the Network.
 TCP/IP is the communication protocol for the Internet  TCP/IP defines how electronic devices should be connected to the Internet, and how data should.
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.
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols.
Managing User Accounts. Module 2 – Creating and Managing Users ♦ Overview ► One should log into a Linux system with a valid user name and password granted.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Mail Service Mail Service using Postfix Campus-Booster ID : **XXXXX
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
NETWORK HARDWARE AND SOFTWARE MR ROSS UNIT 3 IT APPLICATIONS.
1 Internet Network Services. 2 Module - Internet Network Services ♦ Overview This module focuses on configuring and customizing the servers on the network.
Kickstart Installation
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
1 COP 4343 Unix System Administration Unit 14: – send and receive mail – mail filtering – mail server – mailing lists.
CS 3830 Day 9 Introduction 1-1. Announcements r Quiz #2 this Friday r Demo prog1 and prog2 together starting this Wednesday 2: Application Layer 2.
TCP/IP (Transmission Control Protocol / Internet Protocol)
1 Network Information System (NIS). 2 Module – Network Information System (NIS) ♦ Overview This module focuses on configuring and managing Network Information.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
SMTP Tapu Ahmed Jeremy Nunn. Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs.
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.
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter One Introduction to Exchange Server 2003.
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.
Week-2 (Lecture-1) An electronic message sent from one computer to another. contains account i.e. How does.
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
Application layer tcp/ip
Instructor Materials Chapter 5 Providing Network Services
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
Working at a Small-to-Medium Business or ISP – Chapter 7
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Unit – 4 Chap - 2 Mail Delivery System
Chapter 7 Network Applications
Presentation transcript:

1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in the world. This module focuses on this very powerful and useful tool, commonly known as . ♦ Lessons covered in this module ► Introduction to Electronic Mail ► Sendmail ► Other Mail Utilities

2 Electronic Messaging Lesson 1 - Introduction to Electronic Mail Introduction to Electronic Mail ♦ Introduction There are some essential elements, processes and procedures which make possible. Understanding these will help in managing communication across networks. ♦ Topics covered in this lesson ► The Process ► Components and Mail Agents ► Protocols

3 Electronic Messaging Topic 1 – The Process ♦ uses specifically designed separate programs for mail creation, transmission, and delivery. Any element, like the transmission program can be replaced without affecting the whole system. ♦ The main components essential for to work properly are the following. ► A mail user agent (MUA) ► A mall transfer agent (MTA) ► A mail delivery agent (MDA) ► A mail-notification program (optional)

4 Electronic Messaging Topic 2 – Components and Mail Agents ♦ The MUA provides an interface for reading and writing messages. This can have GUI, such as Mozilla Thunderbird or KMail or it can have a CLI, such as Mutt or elm. They serve the purpose of composing an message and sending it to an MTA. ♦ MTA sends messages across the network without any intervention from the user. It reads the information in the “To:” section and determines the IP address. Then it connects to the recipient's server through a TCP/IP port 25. DNS plays a vital role in mail service. ♦ MDA receives the message. Then it stores the message in the recipient's mailbox file. The mailbox file, called the mail spool, is identified by the username.

5 Electronic Messaging Topic 3 - Protocols ♦ Simple Message Transfer Protocol (SMTP) ► The primary purpose of SMTP is to transfer between mail servers. The SMTP protocol does not require authentication. So anyone on the Internet can send to anyone or to large groups of people. ♦ Post Office Protocol (POP) ► With a POP server, clients download s and by default configured to delete the message on the server after successful transfer. Secure Socket Layer (SSL) encryption for client authentication and data transfer adds security. Contd …

6 Electronic Messaging Topic 3 - Protocols ♦ Internet Message Access Protocol (IMAP) ► In an IMAP mail server, messages remain on the server where users can read or delete them. IMAP also allows clients to create, rename, or delete mail directories to organize and store on the server. IMAP is useful for those who use multiple machines to access their . ► IMAP is compatible with Internet messaging standards, which permit attachments. SSL encryption for client authentication and data transfer adds security.

7 Electronic Messaging Lesson 2 – Sendmail ♦ Introduction Sendmail is the default MTA in Red Hat Linux. Sendmail's purpose is to safely transfer among hosts. It uses the SMTP protocol and is highly configurable. ♦ Topics covered in this lesson ► Security and Antispam Features ► Operational Overview of Messaging ► Configuring Sendmail with m4 Macros ► Sendmail Client Configuration

8 Electronic Messaging Topic 1 - Security and Antispam Features ♦ spam is unnecessary and unwanted received by a user who never requested the communication. Sendmail's access control features in the /etc/mail/access file can prevent connections from unwanted hosts. ♦ Using LDAP is a way to find specific information about a particular user from a much larger group. LDAP server can look up a particular address from a common corporate directory by the user's last name. LDAP stores the hierarchical user information and Sendmail gets the result of LDAP queries. ♦ Sendmail can be used with SpamAssassin to combat spam. SpamAssassin uses header analysis, text analysis, blacklists, and a spam-tracking database to identify and tag spam.

9 Electronic Messaging Topic 2 - Operational Overview of Messaging ♦ Red Hat Linux uses two MTAs, Sendmail and Postfix. Sendmail is usually configured as the default MTA. You can also switch the default MTA to Postfix. ♦ Sendmail is highly configurable. You have full control over all aspects handling including the protocol used. Many system administrators use Sendmail due to its power and scalability. ♦ Sendmail also has its limitations. Users may require much more than simple delivery. They may want use an MUA that uses POP or IMAP, to download their messages. ♦ Sendmail could be configured to do hundreds of different options and rule sets. You can learn about them from different sources.

10 Electronic Messaging Topic 3 - Configuring Sendmail with m4 Macros ♦ The Sendmail executable is /usr/sbin/sendmail. Sendmail configuration file is /etc/mail/sendmail.cf. To make configuration changes to Sendmail, you can edit the /etc/mail/sendmail.mc file. /etc/mail/sendmail.cf is the main configuration file of sendmail. ♦ To make configuration changes to Sendmail, edit the /etc/mail/sendmail.mc file. Then, back up the original /etc/mail/sendmail.cf. Then you should use the m4 macro processor to create a new /etc/mail/sendmail.cf. ♦ You can use the following command: server1~]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

11 Electronic Messaging Topic 4 - Sendmail Client Configuration ♦ When you start sendmail it processes all mails waiting in the queue to be transmitted. You should then create a cron table that runs the runq command periodically to service the mail spool. ♦ The mail spool is the /var/spool/inqueue directory. This is where the mail is queued before being transmitted. The mailq command displays a formatted list of all messages in the mail spool and their status. The /usr/bin/mailq command is a symbolic link to the sendmail executable. ♦ If there is a queue, the message ID, size, the time it was placed in the queue, the sender, and its current status will also be displayed.

12 Electronic Messaging Lesson 3 - Other Mail Utilities ♦ Introduction Postfix is the other MTA in Red Hat and Linux. It has a modular design, conserves machine resources and is quicker. Procmail is the local delivery agent. ♦ Topics covered in this lesson ► Introduction to Postfix ► Using Postfix ► Postfix Configuration ► Procmail Local Delivery

13 Electronic Messaging Topic 1 - Introduction to Postfix ♦ Postfix is a mail program, which uses a modular design i.e. several smaller programs working together to complete the required tasks. This means that Postfix conserves machine resources is lightning quick. ♦ It has sendmail compatibility with the mailq and newaliases commands, as well as a link to the sendmail binary location /usr/sbin/sendmail. They are not the same as in sendmail but their functionality is the same.

14 Electronic Messaging Topic 2 - Using Postfix ♦ With Red Hat Linux Postfix RPM is available as part of the distribution. For using postfix you can use the alternatives as follows: ~]# alternatives – config mta ♦ Then by typing the appropriate selection you can start using Postfix. You can also revert to sendmail in the same way by typing the other option.

15 Electronic Messaging Topic 3 - Postfix Configuration ♦ For security reasons configure Postfix to run chrooted, which means Postfix processes will only access files in /var/spool/postfix. For instructions on configuring Postfix in a chrooted environment, read the INSTALL document in the Postfix source directory. ♦ You can edit various parameters in /etc/postfix/main.cf. Please look at main.cf and edit these parameters carefully. Some are not found in main.cf, but are defined in main.cf.default. Do not edit them in main.cf.default but insert those lines into main.cf:

16 Electronic Messaging Topic 4 - Procmail Local Delivery ♦ Procmail processes s based on instructions from recipes, or rules, which the program matches against the mails. Depending on the recipe, the will be placed in a certain file, deleted, or otherwise processed. ♦ Procmail reads the message and separates the body from the header. Next, it reads /etc/procmailrc for default, system-wide, Procmail variables and recipes. Then it reads.procmailrc file in the client’s home directory to find any specific rules. ♦ To use Procmail you have to construct a.procmailrc file with environment variables and rules for different types of messages.

17 Electronic Messaging Lab Exercises ♦ Verification of MTAs ► Starting and verifying sendmail operation ► Starting and verifying Postfix operation

18 Electronic Messaging Conclusion ♦ Summary ► The Sendmail configuration file is /etc/mail/sendmail.cf. To configure Sendmail use m4 macros to generate a new /etc/mail/sendmail.cf file. ► /etc/postfix/main.cf is the main configuration file for Postfix. There are many options available to edit this. For security it is better to edit in chroot. ► Procmail reads /etc/procmailrc for default, system-wide, Procmail variables and recipes and then it reads.procmailrc file for specific rules for delivery and acts accordingly. ♦ Question and Answer Session