WeeSan Lee

Slides:



Advertisements
Similar presentations
Protocols and Troubleshooting Brandon Checketts.
Advertisements

1 Electronic Mail u Three major components: u user agents u mail servers u simple mail transfer protocol: SMTP u User Agent u a.k.a. “mail reader” u composing,
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
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.
Electronic Mail and SMTP
Chapter 30 Electronic Mail Representation & Transfer
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
Simple Mail Transfer Protocol
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.
Electronic Mail: SMTP, POP, and IMAP
CT NIKHEF Nov Mail NIKHEF CT system support.
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.
2: Application Layer1 Chapter 2 Application Layer These slides derived from Computer Networking: A Top Down Approach, 6 th edition. Jim Kurose, Keith Ross.
SMTP, POP3, IMAP.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Mail Services.
CSE401N: Computer Networks Lecture-5 Electronic Mail S. M. Hasibul Haque Lecturer Dept. of CSE, BUET.
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.
PRINCIPLES – DNS – ARCHITECTURES – SPAM
Intro to Computer Networks Bob Bradley The University of Tennessee at Martin.
Review: –How do we address “a network end-point”? –What services are provided by the Internet? –What is the network logical topology observed by a network.
Application Layer Protocols Simple Mail Transfer Protocol.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
IST346 – Servies Agenda  What is ?  Policies  The technical side of  Components  Protocols  architecture  Security.
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.
CSIE 1 Filtering mail Speaker: Chung yu Wu Adviser: Quincy Wu Date: 2005/12/07.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
Sending and Receiving Mails
Simple Mail Transfer Protocol (SMTP)
ITI-481: Unix Administration Meeting 5 Christopher Uriarte Rutgers University Center for Applied Computing Technologies.
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.
SMTP( 简单邮件传输协议 ) SIMPLE MAIL TRANSFER PROTOCOL RFC 2812.
File Transfer Protocol (FTP)
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
1 SMTP - Simple Mail Transfer Protocol –RFC 821 POP - Post Office Protocol –RFC 1939 Also: –RFC 822 Standard for the Format of ARPA Internet Text.
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.
Jump to first page Electronic Mail Peter D’Souza.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
Application Layer 2-1 Chapter 2 Application Layer Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
ITI-481: Unix Administration Meeting 5 Christopher Uriarte Rutgers University Center for Applied Computing Technologies.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Electronic Mail.
26.1 Electronic Mail Sending/Receiving Mail Addresses User Agent MIME Mail Transfer Agent Mail Access Protocols.
@Yuan Xue A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their.
26.1 Chapter 26 Remote Logging, Electronic Mail, and File Transfer Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
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.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
Understanding POP3 / IMAP Created by : Ashish Shah, J. M. Patel College of Commerce 1.
concepts & protocols
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
Remote Logging, Electronic Mail, and File Transfer
Data Communications and Computer Networks Chapter 2 CS 3830 Lecture 9
Unix System Administration
CIT 383: Administrative Scripting
Simple Mail Transfer Protocol
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Chapter 2: Application layer
Unit – 4 Chap - 2 Mail Delivery System
Chapter 2 Application Layer
Presentation transcript:

WeeSan Lee

Roadmap Introduction Mail System Architecture Headers Sendmail Debugging Aliases Forwarding Procmail Q&A

Introduction MTA (port 25) MSA (port 587) MUA Eudora MUA pine MUA mail The Internet MTA (port 25) LDA procmail Message store MUA mail MUA pine AA Imapd, pop3 MUA Outlook

Introduction (cont) A mail system consists of:  MUA – Mail User Agent Lets users read and compose , eg. Mail, Pine, Eudora, Outlook  MTA – Mail Transport Agent Routes s among machines, eg. Sendmail, Postfix Speaks SMTP (Simple Mail Transport Protocol)  MSA – Mail Submission Agent Accepting s from MUA, eg. Sendmail  LDA – Local Delivery Agent Places s to a local message store, eg. Procmail /var/spool/mail/username  AA – Access Agent Connects MUA to message store, eg. POP3, IMAP Question: What are the differences between POP3 and IMAP?

Mail System Architecture Incoming SMTP server  For accepting incoming s with spam filters Outgoing SMTP server  For sending outgoing s IMAP or POP3 server  For retrieving s Message Store  /var/spool/mail/username  /home/username/mail/INBOX

Header  Attribute: value  Eg. From: Bcc:  Header starts with X- will be ignored, eg. X-Spam-Flag: YES Body  7-bit ASCII text  Question: How are binary data sent over s?

Sendmail Both a MTA (port 25) and MSA (port 587) Configuration file  /etc/mail/sendmail.cf Mail queue  /var/spool/mqueue/

Debugging mail  $ cal | mail -s “test” sendmail -oi -t  $ cat | sendmail -oi –t  From:  To:  Subject: Hi Bill  Linux is better  -WeeSan  ^D

Debugging (cont) telnet  $ telnet mail.cs.ucr.edu 25  …  220 esmtp.cs.ucr.edu ESMTP Postfix  mail from:  250 Ok  rcpt to:  250 Ok  data  354 End data with.  Subject: Hi Bill  Linux is better :) .  250 Ok: queued as F1C832AFBE4  quit  221 Bye  Connection closed by foreign host.

/etc/aliases or /etc/mail/aliases Allows users to be referred by multiple names Used by mailing list $ cat /etc/aliases | grep weesan  root: weesan, To rehash aliases  $ newaliases

~/.forward $ cat ~/.forward  \weesan 

~/.procmailrc # For spam :0 * (^Subject:.*\[SPAM\]|X-Spam-Flag: YES) INBOX.spam # Another type of spam :0 * /dev/null

~/.procmailrc # SMS myself :0 c * | (formail -c -XFrom: -XSubject: ; echo "To: $MY_CELL") | $SENDMAIL -oi -t

~/.procmailrc # UCR Systems support s :0 * ^Subject:.*(New Ticket|Ticket Assigned) { :0 c INBOX.systems :0 | (formail -c -XFrom: -XSubject: ; echo "To: $MY_CELL") | $SENDMAIL -oi -t }

Reference LAH  Ch 18: Electronic Mail