CSIE 1 Filtering mail Speaker: Chung yu Wu Adviser: Quincy Wu Date: 2005/12/07.

Slides:



Advertisements
Similar presentations
Basic Communication on the Internet:
Advertisements

WeeSan Lee
Exchange server Mail system Four components Mail user agent (MUA) to read and compose mail Mail transport agent (MTA) route messages Delivery agent.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 23 Electronic Mail: SMTP,
CS 497C – Introduction to UNIX Lecture 38: - Electronic Mail Chin-Chih Chang
Chapter 30 Electronic Mail Representation & Transfer
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Four : Mail 王俊城RHCE/RHCX.
-I CS-3505 Wb_ -I.ppt. 4 The most useful feature of the internet 4 Lots of different programs, but most of them can talk to each.
Electronic Mail: SMTP, POP, and IMAP
CT NIKHEF Nov Mail NIKHEF CT system support.
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
1 Introduction AfNOG CHIX 2011 Blantyre, Malawi By Evelyn NAMARA.
1 Web Server Administration Chapter 8 Providing Services.
1 Application Layer Lecture 5 Imran Ahmed University of Management & Technology.
Mail Server Three major components MTA MUA MDA Mail Transfer Agent
Mail Services.
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.
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
© 2010 Computer Science Faculty, Kabul University ELECTRONICE MAIL CONTINUED… 6 TH LECTURE 9, May, 2010 Baseer Ahmad Baheer.
1 北區機房 IP 維運處暨 IDC 維運組 鄭任峰 郵件系統維運 課程 : Sendmail 與 postfix 的設定與比較 北區機房 IP 維運處暨 IDC 維運組 鄭任峰.
Electronic Mail Originally –Memo sent from one user to another Now –Memo sent to one or more mailboxes Mailbox –Destination point for messages.
IST346 – Servies Agenda  What is ?  Policies  The technical side of  Components  Protocols  architecture  Security.
A form of communication in which electronic messages are created and transferred between two or more devices connected to a network.
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.
TCP/IP Protocol Suite 1 Chapter 20 Upon completion you will be able to: Electronic Mail: SMTP, POP, and IMAP Understand four configurations of architecture.
Computer Networks26-1 Chapter 26. Remote Logging, Electronic Mail and File Transfer.
BY SAGAR SINHA SAPTARSHI BAKSHI SARTHAK JAIN SHAILZA CHAUDHARY
SMTP/POSTFIX.
Simple Mail Transfer Protocol (SMTP)
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: .
Introduction to Internet Mail Abridged & Updated by Hervey Allen Noah Sematimba Based on Materials by Philip Hazel.
Electronic Mail. Client Software and Mail Hosts –Client PC has client software that communicates with user’s mail host –Mail hosts deliver.
Mail Service Mail Service using Postfix Campus-Booster ID : **XXXXX
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.
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 Network Protocols Chapter 26 (Data Communication and Networking): Remote Logging, Electronic Mail, and.
1 Electronic Messaging Module - Electronic Messaging ♦ Overview Electronic messaging helps you exchange messages with other computer users anywhere in.
Internet Protocol B Bhupendra Ratha, Lecturer School of Library and Information Science Devi Ahilya University, Indore
1 COP 4343 Unix System Administration Unit 14: – send and receive mail – mail filtering – mail server – mailing lists.
Application Security: (April 10, 2013) © Abdou Illia – Spring 2013.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
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.
  is a system of electronic communication that allows the user to exchange messages over the internet  Everyone’s address is unique  Two.
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)
1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Electronic Mail: SMTP, POP IMAP, and MIME.
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.
By: Derek Ton & Alex Pappas.  Most frequently used internet service that you will manage as network administrator.  You need to understand how they.
Implementing POP3 and IMAP4 Using Dovecot AfNOG 2016 Scalable Internet Services (SS-E) Gaborone, Botswana Presented by Michuki Mwangi (Built on materials.
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
Networking Applications
Remote Logging, Electronic Mail, and File Transfer
Unix System Administration
CIW Lesson 7 Part A Name: _______________________________________
14-мавзу. Cookie, сеанс, FTP и технологиялари
SMTP, POP3, IMAP.
has many aspects that work together to give people almost instant communication from any computer on the internet to any other computer There.
Remote Logging, Electronic Mail,
Unit – 4 Chap - 2 Mail Delivery System
 Zone in name space  DNS IN THE INTERNET  Generic domains :There are fourteen generic domains, each specifying an organization type.
Presentation transcript:

CSIE 1 Filtering mail Speaker: Chung yu Wu Adviser: Quincy Wu Date: 2005/12/07

CSIE2 Outilne Mail protocol MUA 、 MTA 、 MDA Procmail Sendmail Predicament Regular Expression

CSIE3 POP3 POP3(Post Office Protocol, version 3) Is a client/server protocol in which is received and held for you by your Internet server. Periodically, you check your mail-box on the server and download any mail. port: 110

CSIE4 SMTP SMTP (Simple Mail Transfer Protocol) Is a protocol used in sending . port:25

CSIE5 IMAP IMAP (Internet Message Access Protocol) Is a standard protocol for accessing from your local server. Can view just the heading and the sender of the letter and then decide whether to download the mail

CSIE6 Send and received mail Client AClient B MTA relay mail SMTP send mail relay mail POP3 receive mail IMAP read or manage mail

CSIE7 MUA 、 MTA 、 MDA MUA: Mail User Agent  Outlook Express 、 Netscape Mail MTA: Mail Transfer Agent  Send mail  Received mail MDA: Mail Delivery Agent  Mail filtering

CSIE8 Send mail

CSIE9 Received mail

CSIE10 Relay Mail server sender Spam Company Open relay

CSIE11 Procmail MDA Filtering spam and virus Header: sender 、 receiver 、 address 、 title 。 Body: content Regular Expression

CSIE12 Use Procmail Forward #vi $HOME/.forward Insert “|exec /usr/local/bin/procmail” Procmailrc #vi ~/.procmailrc

CSIE13.Procmailrc Rules Notation Meaning :0Begin a recipe : Use a lock file *Begin a condition ^TO_ Look for a header that begins with To, Cc, Resent- To, or another destination specification

CSIE14.Procmailrc Rules(cont) :0[flags] :0: * ^Subject:*test /usr/mail/spam :0: * ^Body:*test /usr/mail/spam :0: * /usr/mail/s

CSIE15 Sendmail MTA Relay-domains Access Aliases Local-host-names

CSIE16 Relay-domains Allow configure domains relay mail #touch /etc/mail/relay-domains #vi /etc/mail/relay-domains / *allow xxx */

CSIE17 Access Process configure source mail Rules:  Ok: Unconditional accept  RELAY: Accept configure source mail  REJECT: Refusal configure source mail #vi /etc/mail/access OK RELAY John.ipv6.club.tw REJECT

CSIE18 Aliases Create a aliases to root #vi /etc/mail/aliases root: mutanwo staff: Mary,Bill,Jordan #newaliases

CSIE19 Local-host-names Received localhost send mail #vi /etc/mail/local-host-names ipv6.club.tw john.ipv6.club.tw ok error

CSIE20 Predicament Freebsd 5.4 Perl5.8.6+sendmail+procmail+spamassassin MTA: Sendmail MDA: Procmail+Spamassassin MUA: ELM Q1:Procmail path: ex:MAILDIR , PATH 。 Q2: Procmail Log: Q3:.forward file 。 All mail send to /var/mail/mailnull not root

CSIE21 Regular Expression Search string ^^string ex: ’^test’ => testxxxx $string$ ex: ‘test&’ => xxxxtest * string* ex: ‘b*’ => △,b,bb,bbb,bbbb…...any string ex: ‘a.c’ =>abc,acc,foc…. [ ]String set ex: ‘[br]ear’ =>bear,rear

CSIE22 References