中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Four : Mail 王俊城RHCE/RHCX.

Slides:



Advertisements
Similar presentations
Introduction to Unix Sendmail. It's been said that you aren't a real Unix system administrator until you've edited a sendmail.cf file. It's also been.
Advertisements

中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap two : DNS 王俊城RHCE/RHCX.
WeeSan Lee
Configuring a Web Server. Overview  Understand how a Web server works  Install IIS (Internet Information Services) and Apache Web servers  Examine.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
DNS Setup DNS CONFIGURATION. DNS Configuration DNS Setup named daemon is used A DNS Server may be caching/master/slave server The named.ca file has information.
1 Information Systems 7/1/03 Tom Coppeto MIT Mail System Security Issues 1 July 2003.
SMTP Simple Mail Transfer Protocol. Content I.What is SMTP? II.History of SMTP III.General Features IV.SMTP Commands V.SMTP Replies VI.A typical SMTP.
2440: 141 Web Site Administration Services Instructor: Enoch E. Damson.
1 SMTP Transport Configuration SMTP Configurations and Virtual Servers Customizing the SMTP Service.
Sendmail configuration and installation Presented by kathleen.
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.
1 Web Server Administration Chapter 8 Providing Services.
Mail Server Three major components MTA MUA MDA Mail Transfer Agent
PRINCIPLES – DNS – ARCHITECTURES – SPAM
The Linux Operating System Lecture 7: Tonga Institute of Higher Education.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
1 北區機房 IP 維運處暨 IDC 維運組 鄭任峰 郵件系統維運 課程 : Sendmail 與 postfix 的設定與比較 北區機房 IP 維運處暨 IDC 維運組 鄭任峰.
IST346 – Servies Agenda  What is ?  Policies  The technical side of  Components  Protocols  architecture  Security.
S ystem P rogrammers' A ssociation for R esearching C omputer S ystems Popular MTAs EXIM & POSTFIX SPARCS 10 이대근 (harry)
思科网络技术学院理事会. 1 Application Layer Functionality and Protocols Network Fundamentals – Chapter 3.
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.
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.
ISQS server attacks Presented by Deven Patel.
Simple Mail Transfer Protocol (SMTP)
Configuring Linux Mail Servers
Copyright 2003 CCNA 1 Chapter 9 TCP/IP Transport and Application Layers By Your Name.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols.
1 Apache. 2 Module - Apache ♦ Overview This module focuses on configuring and customizing Apache web server. Apache is a commonly used Hypertext Transfer.
Introduction to Internet Mail Abridged & Updated by Hervey Allen Noah Sematimba Based on Materials by Philip Hazel.
CSN09101 Networked Services Week 11: Management Module Leader: Dr Gordon Russell Lecturers: G. Russell.
1 SCOoffice Server for OpenServer Technical Overview.
Configuring Linux Mail Servers Objectives –This chapter will show you how to install and use Mailservers Contents –An Overview Of How Sendmail Works –Sendmail.
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Five : Samba 王俊城RHCE/RHCX.
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.
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.
Module 5 Managing Message Transport. Module Overview Overview of Message Transport Configuring Message Transport.
Data Communications and Networks Chapter 5 – Network Services DNS, DHCP, FTP and SMTP ICT-BVF8.1- Data Communications and Network Trainer: Dr. Abbes Sebihi.
Module 5 Managing Message Transport. Module Overview Overview of Message Transport Configuring Message Transport.
1 COP 4343 Unix System Administration Unit 14: – send and receive mail – mail filtering – mail server – mailing lists.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Application Layer Functionality and Protocols Network Fundamentals.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
Advanced Sendmail Part 1
SMTP Tapu Ahmed Jeremy Nunn. Basics Responsible for electronic mail delivery. Responsible for electronic mail delivery. Simple ASCII protocol that runs.
INTRODUCTION Using Electronic one can send message to, can receive usages from other computer users anywhere in the world. is most common and.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Application Layer Functionality and Protocols.
中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap one : Service Control 王俊城RHCE/RHCX.
1 Web Server Administration Chapter 8 Providing Services.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
Module 5: Managing Addresses and Address Lists.
Discussion of OCP/SMTP profile and some Use cases Presented by Abbie Barbir
Application Layer instructors at St. Clair College in Windsor, Ontario for their slides. Special thanks to instructors at St. Clair College in Windsor,
Understanding POP3 / IMAP Created by : Ashish Shah, J. M. Patel College of Commerce 1.
concepts & protocols
Application Layer Functionality and Protocols Abdul Hadi Alaidi
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
SUBMITTED BY: NAIMISHYA ATRI(7TH SEM) IT BRANCH
IIS.
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
 Zone in name space  DNS IN THE INTERNET  Generic domains :There are fourteen generic domains, each specifying an organization type.
Data Communications and Networks
MESSAGE ACCESS AGENT: POP AND IMAP
Presentation transcript:

中華技術學院 Linux 課程 中華技術學院 Linux 課程 Chap Four : Mail 王俊城RHCE/RHCX

Agenda  Sendmail features  overview  Basic Sendmail configuration  Using the m4 macro language  Debugging Sendmail

Sendmail Features  Allows many different types of addresses to be routed  Supports virtual domains and users  Allows masquerading of users and machines  Provides automatic retry for failed delivery and other error conditions

Security and "Anti-spam" Features  Many security features and options:  rejects from unresolvable domains  full access control for users, machines, and domains  default configuration allows only local connections  no longer a setuid root program  "Anti-spam" features  no relaying by default  access databases  header checks

An Review  Mail user agent (MUA) passes message to mail transport agent (MTA)  MTA routes message to destination, giving to other intermediate MTAs as necessary  Domain MTA passes message to mail delivery agent (MDA)  User receives message(POP,IMAP)

Server Operations  User's agent connects to the local MTA as an unprivileged mail submission program (MSP)  Local MTA queries DNS for destination ’ s MX  Local MTA opens a TCP/IP connection to port 25 of the target MX  Both servers negotiate a SMTP (Simple Mail Transport Protocol) connection  Target MX allows or rejects delivery or relaying based upon its own rulesets  telnet localhost 25

Service Profile: Sendmail  Type: System V-manager service  Packages:sendmail{,-cf,-doc}  Daemons:sendmail  Script:sendmail  Ports:25 (smtp)  Configs:/etc/mail/sendmail.cf /etc/aliases/etc/mail/  Log:/var/log/maillog

Main Configuration Files  /etc/mail/sendmail.cf is the main configuration file for Sendmail:  Contains domain alias directives, header rewriting directives, relaying rules, etc.  Edit this file with care and comprehension  /etc/mail/sendmail.mc  m4 sendmail.mc > sendmail.cf

Other Configuration Files  /etc/aliases defines local user aliases  needs to be hashed to aliases.db with the newaliases command  service sendmail restart  /etc/mail/ contains access control, virtual user database, and configuration source files  local-host-names  hostname

Sendmail Configuration with the m4 Macro Language  m4 is a macro language that can help configure the sendmail.cf file  Red Hat ’ s default Sendmail configuration is generated from the m4 specification in /etc/mail/sendmail.mc  Red Hat recommends configuring Sendmail with m4 using sendmail.mc as a starting point

Sendmail Client Configuration  Often, clients do not accept incoming mail themselves  A central mail server accepts all incoming mail and relays all outgoing mail  MAIL_HUB, SMART_HOST defines  Central mail server must allow relaying from the client and have local-host-names set up  Useful for client to “ masquerade ” as the server in From: addresses  MASQUERADE_AS(`example.com')

/etc/mail/virtusertable  Allows multiple virtual domains and users to be mapped to other addresses:  shopper  jdj 

/etc/mail/access  Used to accept or deny incoming  REJECT  spamRus.net REJECT  REJECT  10.3 OK  virtualdomain1.com RELAY  ERROR:550 bad name

Debugging Sendmail  /etc/mail/local-host-names  must contain server ’ s name and aliases  mail -v user  view SMTP exchange with local relay  mailq and mailq – Ac  view messages queued for future delivery  tail -f /var/log/maillog  View log in real-time