1 Web Server Administration Chapter 8 Providing E-mail Services.

Slides:



Advertisements
Similar presentations
Providing Services Chapter 8 Providing Services.
Advertisements

Securing Bruce Maggs. Separate Suites of Protocols Protocols for retrieving POP, IMAP, MAPI (Microsoft Exchange) Protocols for sending
Protocols and Troubleshooting Brandon Checketts.
INTRANET MAIL SERVER (DESIGN OF SMTP and POP3)
Lesson 7: Business, , & Personal Information Management
CPSC 441: FTP & SMTP1 Application Layer: FTP & Instructor: Carey Williamson Office: ICT Class.
Electronic Mail and SMTP
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.
Mail Server Fitri Setyorini. Content SMTP POP3 How mail server works IMAP.
-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.
» Explain the way that electronic mail ( ) works » Configure an client » Identify message components » Create and send messages.
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.
Implementing POP3 and IMAP4 Using Dovecot
1 Web Server Administration Chapter 8 Providing Services.
SMTP, POP3, IMAP.
1 Web Server Administration Chapter 9 Extending the Web Environment.
Outlook 2000 Summertime Technology 2002 Vicki Blackwell Tangipahoa Parish Schools.
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.
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.
Lecturer: Maxim Podlesny Sep CSE 473 File Transfer and Electronic in Internet.
SMTP PROTOCOL CONFIGURATION AND MANAGEMENT Chapter 8.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 12 Electronic Mail.
Application Protocols: ELECTRONIC MAIL (SMTP, POP) CSNB534 Semester 2, 2007/2008 Asma Shakil.
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.
Electronic Mail. Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward.
Sending and Receiving Mails
SMTP/POSTFIX.
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
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.
Electronic Mail. Familiar to most of us 4 What are the functions we expect? –Outgoing mail Compose send –compress –encrypt –Incoming Mail read forward.
Mail Service Mail Service using Postfix Campus-Booster ID : **XXXXX
File Transfer Protocol (FTP)
Postfix Mail Server Postfix is used frequently and handle thousands of messages. compatible with sendmail at command level. high performance program easier-
Mailserver. Why Postfix ? Sendmail’s legacy Built from ground up Central queue-ing More future-proof Exim4 default of debian, but...
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.
LinxChix And Exim. Mail agents MUA = Mail User Agent Interacts directly with the end user  Pine, MH, Elm, mutt, mail, Eudora, Marcel, Mailstrom,
P.O.P. A presentation brought to you by Thomas. Topics Introduction General Information Area of use Functionality The alternative way POP3 vs. IMAP Conclusion.
  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.
4343 X2 – Outline The Domain Name System The Web.
SMTP - Simple Mail Transfer Protocol RFC 821
CITA 310 Section 6 Providing Services (Textbook Chapter 8)
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.
Linux Operations and Administration Chapter Twelve Configuring a Mail Server.
@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.
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
درس مهندسی اینترنت – مهدی عمادی مهندسی اینترنت برنامه‌نویسی در اینترنت 1 SMTP, FTP.
concepts & protocols
SMTP - Simple Mail Transfer Protocol POP - Post Office Protocol
Networking Applications
CIT 383: Administrative Scripting
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
Chapter 7 Network Applications
Chapter 2 Application Layer
Presentation transcript:

1 Web Server Administration Chapter 8 Providing Services

2 Overview Understand the environment Understand protocols Install and administer for Linux Install and configure IMAP4 and POP3 servers for Linux Configure clients Understand Web-based clients

3 Understanding the Environment evolved from a variety of proprietary systems In the 1980s and 1990s, people often had e- mail addresses on a number of systems Even as late as 1997, Exchange 5.5 was not designed to take advantage of Internet An add-on gave Exchange the ability to send and receive over the Internet

4 Role of DNS in Systems A domain name, such as technowidgets.com, needs to be associated with two IP addresses One IP address can be for a Web site Another IP address is for To associate a domain name, or any other host name, with the IP address of an server, you need an MX record technowidgets.com. IN MX 10 mail.technowidgets.com. The 10 refers to the priority of the server if there are multiple servers

5 System Terminology MTA (Mail Transfer Agent) Accepts from clients and sends to another MTA for storage Postfix, sendmail MUA (Mail User Agent) client Outlook, Kmail, pine, Gmail, SquirrelMail MDA (Mail Delivery Agent) Delivers from server to MUA MDA part of Sendmail or Postfix, Dovecot

6 System Terminology Masquerading Replace actual host name with domain name Relaying The process of sending to an intermediate server before the message is transmitted to its final destination This should not be allowed from the Internet because spammers could use it to send Spammer Someone who sends unsolicited , typically to try to sell something

7 Protocols SMTP (Simple Mail Transfer Protocol) To send messages POP3 (Post Office Protocol) To retrieve Typically, all messages are downloaded to a client IMAP4 (Internet Mail Access Protocol) To retrieve stays on the server You can create folders on server to store

8 Understanding SMTP The commands are processed by the SMTP server Test Postfix CommandPurpose HELO Identifies the domain sending the message DATA Indicates the body of the message VRFY Verifies the user QUIT Ends the SMTP session

9 Understanding SMTP The SMTP headers add descriptive information HeaderDescription MAIL FROM: Identifies who is sending the message (required) RCPT TO: Identifies the recipient of the message (required) RECEIVED: Identifies the server that processed the message DATE: Indicates the date of the FROM: Shows the address as it is typically displayed in an client SUBJECT: Shows the subject of the message TO: Shows the recipient as it is typically displayed in an client CC: Sends copies of the message to a list of addresses BCC: Sends copies of the message to a list of addresses but does not display the addresses

10 Understanding SMTP Sample session Commands and headers in bold HELO WKS1 250 web1.technowidgets.com Hello [ ] MAIL FROM: OK RCPT TO: DATA 354 Start mail input; end with. This is a simple message. QUIT

11 Understanding POP3 More simplistic than IMAP4 First step is to log on with user name and password List, read, download, delete Test Dovecot

12 Common POP3 commands CommandDescription USER username Connects to POP3 server based on user name PASS password Enters the password for the user, as in PASS: Ax6yy LIST Displays the message number followed by the number of characters in the message UIDL Displays the unique ID for each message RETR n Replaces the n with a message number to retrieve that message TOP n lines Instead of retrieving the whole message, retrieves the number of lines designated by the lines parameter for message number n DELE n Deletes message number n from the server QUIT Ends the session

13 Sample POP3 Session- Major Components USER cbranco +OK PASS pass +OK User successfully logged on. LIST +OK RETR 1 +OK Received: from WKS1 ( ) by web1.technowidgets.com From: Return-Path: This is a sample message. DELE 1 +OK QUIT

14 Understanding IMAP4 Messages remain on server Requires much more space on server To keep track of the status of messages, flags are used \Recent \Seen \Answered \Flagged \Deleted \Draft

15 Common IMAP4 commands CommandDescription LOGIN username password Log on to the server with your user name and password, which are unencrypted. SELECT mailbox Select a mailbox before you perform mail tasks. The default mailbox is called inbox. The response gives a summary of mailbox information. FETCH message(s) item(s) Retrieve messages. The message(s) parameter gives the message number. The item(s) parameter determines what part of the message is fetched—that is, individual header items or the body of the text. STORE message(s) flags Change the flags associated with a message. Typically, this command is used to mark messages to be deleted, undeleted, or identified as unread. LOGOUT End the IMAP4 session.

16 Configuring Clients- Typical Information Required SMTP server IP address Your address Your password POP3 or IMAP4 server IP address

17 Web-based Clients Web-based clients allow you to use your browser SquirrelMail is a web-based service Most public sites use web-based .

18 Web-based Clients- Advantages Because a browser is used, no client configuration is needed The lack of configuration can significantly reduce support costs No specialized client software is needed Users are not required to retrieve from specific computers that have been configured for them POP3 or IMAP4 protocols are not required, which reduces server-side support Because Web-based is not constrained by POP3 or IMAP4 protocols, a richer environment can be developed that extends beyond basic

19 Installing and Configuring Postfix, Dovecot, Squirrelmail Source: ostechnix.wordpress.com/2013/02/08/setup-mail-server-using-postfixdovecotsquirrelmail- in-centosrhelscientific-linux-6-3-step-by-step/ Remove sendmail yum remove sendmail Turn off firewall service iptables stop service ip6tables stop chkconfig iptables off chkconfig ip6tables off Disable Security Linux vi /etc/selinux/config … SELINUX=disabled

Installing Postfix yum install postfix Configure /etc/postfix/main.cf See slide “Configure Postfix” Start Postfix service service postfix start chkconfig postfix on Test Postfix See slide “Test Postfix” 20

Configure Postfix vi /etc/postfix/main.cf ##line no 75 - uncomment and enter your host name myhostname = mailserver1.yourdomain.edu ##line no 83 - uncomment and enter your domain name mydomain = yourdomain.edu ##line no 99 - uncomment myorigin = $mydomain ##line no change to all inet_interfaces = all ##line no add $domain at the end mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain $domain ##line no uncomment and add your network range mynetworks = /24, /8 ##line no uncomment home_mailbox = Maildir/ 21

Test Postfix – part 1 telnet localhost smtp Trying ::1... Connected to localhost. Escape character is '^]'. 220 server.ostechnix.com ESMTP Postfix ehlo localhost 250-server.ostechnix.com 250-PIPELINING 250-SIZE VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN mail from: Ok rcpt to: Ok data 354 End data with. test Ok: queued as FF18 quit Bye Connection closed by foreign host. 22

Test Postfix – part 2 cd /home/user1/Maildir/new/ ls Vfd00I35afM yourdomain cat Vfd00I35afM yourdomain Return-Path: X-Original-To: user1 Delivered-To: Received: from localhost (localhost [IPv6:::1]) by mailserver1.yourdomain.edu (Postfix) with ESMTP id FF18 for ; Thu, 7 Feb :05: (IST) Message-Id: Date: Thu, 7 Feb :05: (IST) From: To: undisclosed-recipients:; test 23

Install Dovecot yum install dovecot configure the following files (see slide “Configure Dovecot”) /etc/dovecot/dovecot.conf /etc/dovecot/conf.d/10-mail.conf /etc/dovecot/conf.d/10-auth.conf /etc/dovecot/conf.d/10-master.conf Start Dovecot service service dovecot start chkconfig dovecot on Test Dovecot See slide “Test Dovecot” 24

Configure Dovecot vi /etc/dovecot/dovecot.conf protocols = imap pop3 lmtp vi /etc/dovecot/conf.d/10-mail.conf ##line no 24 – uncomment mail_location = maildir:~/Maildir vi /etc/dovecot/conf.d/10-auth.conf ##line no 9 - uncomment and change from yes to no. disable_plaintext_auth = no ##line no 97 - add the text "login“ auth_mechanisms = plain login vi /etc/dovecot/conf.d/10-master.conf unix_listener auth-userdb { #mode = 0600 user = postfix ##line no 83 - uncomment and enter postfix group = postfix ##line no 84 - uncomment and enter postfix 25

Test Dovecot telnet localhost pop3 Trying ::1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user user1 +OK pass user1 +OK Logged in. list +OK 1 messages: retr 1 +OK 428 octets Return-Path: X-Original-To: user1 Received: from localhost (localhost [IPv6:::1]) by mailserver1.yourdomain.edu (Postfix) with ESMTP id FF18 for ; Thu, 7 Feb :05: (IST) Message-Id: Date: Thu, 7 Feb :05: (IST) From: To: undisclosed-recipients:; test. quit +OK Logging out. Connection closed by foreign host. 26

Install SquirrelMail Install EPEL repository wget rpm -ivh epel-release-6-8.noarch.rpm Install SquirrelMail Yum –y install Squirrelmail reStart webservices service httpd restart chkconfig httpd on Configure SquirrelMail See slide “Configure Squirrelmail” Test SquirrelMail See slide “Test SquirrelMail” 27

Configure Squirrelmail Edit the Squirrelmail configurations cd /usr/share/squirrelmail/config/./conf.pl Select option 1 – set organization details Select option 2 – enter domain name and SMTP in item 3 Save and quit Edit httpd.conf – adding an alias at the end of the file vi /etc/httpd/conf/httpd.conf Alias /squirrelmail /usr/share/squirrelmail Options Indexes FollowSymLinks RewriteEngine On AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all 28

29 Summary has evolved over the years Microsoft Exchange 2000 and sendmail are the two of the most popular server products DNS plays a central role in messaging Three major protocols are involved in e- mail SMTP, POP3, and IMAP4