OPS535 Advanced Network Administration. SMTP Lab SIMPLE MAIL TRANSFER PROTOCOL

Similar documents
School of Computer Studies Seneca College. SMTP Lab SIMPLE MAIL TRANSFER PROTOCOL

SMTP Servers. Determine if an message should be sent to another machine and automatically send it to that machine using SMTP.

smtp-user-enum User Documentation

Workflow Configuration on R12/R11. High Level Steps. SENDMAIL configuration mostly done by System Administrator Workflow configuration for R12

CS 164 Winter 2009 Term Project Writing an SMTP server and an SMTP client (Receiver-SMTP and Sender-SMTP) Due & Demo Date (Friday, March 13th)

Lab 7: Introduction to Pen Testing (NMAP)

QMAIL & SMTP: A Secure Application for an Unsecure Protocol. Orr Dunkelman. orrd@vipe.technion.ac.il. January 27, 2004 SMTP and QMAIL Slide 1

AXIGEN Mail Server. Quick Installation and Configuration Guide. Product version: 6.1 Document version: 1.0

smtplib SMTP protocol client

Simple Mail Transfer Protocol

Linux Administrator (Advance)

Week Date Teaching Attended 3 24/01/10 Lab 2: Windows Services/Toolkit

Laboration, Ping, Traceroute, etc

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

Linux Networking: network services

Ensim WEBppliance 3.1 for Linux (LH) Release Notes

Math SMTP Server Configuration

RFC 821 SIMPLE MAIL TRANSFER PROTOCOL. Jonathan B. Postel. August 1982

Internet Security [1] VU Engin Kirda

Network Attacks. Blossom Hands-on exercises for computer forensics and security

JAVAMAIL API - SMTP SERVERS

2- Electronic Mail (SMTP), File Transfer (FTP), & Remote Logging (TELNET)

Configure a Mail Server

Appendix. Web Command Error Codes. Web Command Error Codes

Protocolo FTP. FTP: Active Mode. FTP: Active Mode. FTP: Active Mode. FTP: the file transfer protocol. Separate control, data connections

Defining your local domains

Load Balancing/High Availability Configuration for neoninsight Server

Internet Technology 2/13/2013

Cannot send Autosupport , error message: Unknown User

Configuring Security for SMTP Traffic

1. The Web: HTTP; file transfer: FTP; remote login: Telnet; Network News: NNTP; SMTP.

My FreeScan Vulnerabilities Report

A candidate following a programme of learning leading to this unit will be able to:

Sending an Message from a Process

A Heterogeneous Internetworking Model with Enhanced Management and Security Functions

Cisco Secure PIX Firewall with Two Routers Configuration Example

Detailed Revision History: Advanced Internet System Management (v5.07)

CipherMail Gateway Quick Setup Guide

Network Monitoring & Management Log Management

Using Protection Engine for Cloud Services for URL Filtering, Malware Protection and Proxy Integration Hands-On Lab

OpenScape Business V1R3 myreports

LESSON Networking Fundamentals. Understand TCP/IP

SMTP Best Practices, Configurations and Troubleshooting on Lotus Domino.

Network Monitoring & Management Log Management

Table of Contents. Electronic mail. History of (2) History of (1) history. Basic concepts. Aka (or according to Knuth)

Pen Test Tips 2. Shell vs. Terminal

2- Electronic Mail (SMTP), File Transfer (FTP), & Remote Logging (TELNET)

FTP protocol (File Transfer Protocol)

Simple Scan to Setup Guide

Introduction to Operating Systems

Parallels Plesk Control Panel

POP3 Connector for Exchange - Configuration

Parallels Plesk Panel

Configuring Notification for Business Glossary

EMC VNX Series. Using FTP, TFTP, and SFTP on VNX. Release 7.0 P/N REV A01

Trivial Internet weaknesses with solutions proposal ( A A global initiative Part 1: Focusing on )

F-Secure Messaging Security Gateway. Deployment Guide

Exercises: FreeBSD: Apache and SSL: pre SANOG VI Workshop

CS43: Computer Networks . Kevin Webb Swarthmore College September 24, 2015

TECHNICAL NOTE. Technical Note P/N REV 03. EMC NetWorker Simplifying firewall port requirements with NSR tunnel Release 8.

How To Set Up A Network Map In Linux On A Ubuntu 2.5 (Amd64) On A Raspberry Mobi) On An Ubuntu (Amd66) On Ubuntu 4.5 On A Windows Box

Department of Engineering Science. Understanding FTP

Firewalls (IPTABLES)

# Constructors $smtp = Net::SMTP->new('mailhost'); $smtp = Net::SMTP->new('mailhost', Timeout => 60);

Network Monitoring & Management Log Management

How To Install Netbackup Access Control (Netbackup) On A Netbackups (Net Backup) On Unix And Non Ha (Net Backup) (Net Backups) (Unix) (Non Ha) (Windows) (

FTP Server Configuration

Computer Networks - Xarxes de Computadors

Implementing Network Address Translation and Port Redirection in epipe

IBM Security QRadar Version Common Ports Guide

System Center Service Manager

StoreGrid Backup Server With MySQL As Backend Database:

Internet Technologies Internet Protocols and Services

Chapter 6 Configuring the SSL VPN Tunnel Client and Port Forwarding

Abstract. Avaya Solution & Interoperability Test Lab

Using Webmin and Bind9 to Setup DNS Sever on Linux

MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # )

How to configure Exchange Smart Host

How To Set Up A Backupassist For An Raspberry Netbook With A Data Host On A Nsync Server On A Usb 2 (Qnap) On A Netbook (Qnet) On An Usb 2 On A Cdnap (

Network Management & Monitoring Request Tracker (RT) Installation and Configuration

Remote Logging. Tanveer Brohi(14cs28)

IMail Server. Getting Started Guide. Software Version 7. Ipswitch, Inc.

IxLoad Data Mail (SMTP, POP3, IMAP) Features

Cisco Configuring Commonly Used IP ACLs

Cisco Setting Up PIX Syslog

security

Internet and Intranet Protocols and Applications

Unifying Information Security. Implementing TLS on the CLEARSWIFT SECURE Gateway

Attack Lab: Attacks on TCP/IP Protocols

EXPLORER. TFT Filter CONFIGURATION

02 Internet!= Web. Internet Technology. MSc in Communication Sciences Program in Technologies for Human Communication.

Linux Network Administration

VMware vcenter Log Insight Security Guide

File Transfer Protocol (FTP) & SSH

SuSE Solutions Based on

SIOS Protection Suite for Linux v Postfix Recovery Kit Administration Guide

Mail agents. Introduction to Internet Mail. Message format (2) Authenticating senders

HP-UX Mailing Services Administrator s Guide

Linux System Administration on Red Hat

Transcription:

SMTP Lab Reference: RFC821 Simple Mail Transfer Protocol SIMPLE MAIL TRANSFER PROTOCOL 1. INTRODUCTION The objective of Simple Mail Transfer Protocol (SMTP) is to transfer mail reliably and efficiently. SMTP is independent of the particular transmission subsystem and requires only a reliable ordered data stream channel. Appendices A, B, C, and D describe the use of SMTP with various transport services. A Glossary provides the definitions of terms as used in this document. An important feature of SMTP is its capability to relay mail across transport service environments. A transport service provides an interprocess communication environment (IPCE). An IPCE may cover one network, several networks, or a subset of a network. It is important to realize that transport systems (or IPCEs) are not one-to-one with networks. A process can communicate directly with another process through any mutually known IPCE. Mail is an application or use of interprocess communication. Mail can be communicated between processes in different IPCEs by relaying through a process connected to two (or more) IPCEs. More specifically, mail can be relayed between hosts on different transport systems by a host on both transport systems. - RFC821 Objective: Explore the command/response transaction of the Simple Mail Transfer Protocol This lab consists of three parts. We will first check the version of the SMTP server and make sure that the SMTP port is on. Secondly, we will establish an interactive SMTP session with the local SMTP server and study some of the major SMTP commands. Lastly, we will use the interactive SMTP session to send email to users and mailing list on the local machine. Page 1 of 7

Part I: SMTP Server (1) Login to you NIS server (one of your virtual machine) as a regular user. The default SMTP server installed by RHEL/CentOS is sendmail. Find out which version of the sendmail rpm is installed in your system. : rpm q sendmail Sendmail Version: (2) SMTP server use one of the well known ports. The port number used by SMTP is (3) There are two places (or commands) you can check to see whether a SMTP server is running on your system. The 1 st one is the output of the netstat a command. Look for the SMTP port number under the Local Address column and record the line(s) that contain the SMTP port : (a) : netstat a grep smtp Output: (b) : netstat an grep 25 Output: (4) The other place is the output of the ps ef grep sendmail command. : ps ef grep sendmail Output: (Note: You need a different command if the system is running other SMTP server.) Page 2 of 7

Part II: SMTP commands (5) Login as a regular user and execute the commands under the column and record the output under the column. Do not proceed if the first command does not establish a connection to port 25 on the local host. telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain ESMTP... EHLO domain.com NOOP RSET VERB EXPN ops535m VRFY toronto VRFY nobody HELP (6) su to root and backup the file /etc/mail/sendmail.cf to /etc/mail/sendmail.cf.org. (7) While you are still su to root, edit the file /etc/mail/sendmail.cf, change the line: to: O PrivacyOptions=authwarnings,novrfy,noexpn,restrictqrun O PrivacyOptions=authwarnings,restrictqrun Page 3 of 7

(8) Save the changes and restart sendmail server. : service sendmail restart (9) Login as a regular user and execute the commands under the column and record the output under the column. telnet localhost 25 EXPN ops535m VRFY toronto VRFY postmaster EXPN postmaster VRFY mailer daemon EXPN mailer daemon VRFY manager VRFY somebody (10) su to root, backup the file /etc/aliases to /etc/aliases.org and execute the following commands: # echo ops535m: adm,uucp,ftp >> /etc/aliases # newaliases (11) Record the output of the above commands: (12) Login as a regular user and execute the command under the column and record the output under the column. Page 4 of 7

telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail... EXPN ops535m produce the output) VRFY ops535m product the output) (13) In the NIS Lab, you were ask to create user nis101and nis102. Look up the login name from your /etc/passwd file and record them in the following table: User 1 User 2 Login Name UID User Name (The 5 th field of a /etc/passwd record) nis101 nis102 If the 5 th field for nis101 is empty, use the command chfn nis101 to set the Name[] field to Alice. Do the same for nis102 and set it to Bob (14) su to root and execute the following commands: # echo smtp-lab: nis101,nis102 >> /etc/aliases # newaliases (15) Login as a regular user and execute the commands under the column and record the output under the column. telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 localhost.localdomain ESMTP Sendmail... Page 5 of 7

EXPN smtp lab produce the output) VRFY smtp lab produce the output) (16) Compare the results from step 5, 9, 12 and 15 and comment on the results. Question: Would you be able to telnet from your other virtual machines to port 25 on your NIS server and repeat the task in step (9)? If not, what need to be changed on your NIS server to allow other machines to connect to the SMTP server on your NIS server? Page 6 of 7

Part III Sending emails using the SMTP commands (17) Login as a a regular user and connect to the local SMTP server. Use the information in the following table to send email to nis101, nis102, postmaster, ftp, ops535m and smtp lab. From To Message Final Destination of the Message ws.podx.ca nis101 Message for nis101 Test message 1. ws.podx.ca nis102 Message for nis102 Test message 2. ws.podx.ca smtp lab Message for smtp lab Test message 4 ws.podx.net postmaster Message for postmaster Test message 5 ws.podx.net ftp Message for ftp Test message 6 ws.podx.net ops535m Message for ops535m Test message 7 (18) Login as user1, and user2 and check out what messages they received: User Login_name Message received User 1 User 2 (19) Find out who received the messages addressed to postmaster (Test message 5), ftp (Test message 6) and ops535m (Test message 7) (20) Write up a step by step procedure for following tasks: (a) add a new mail alias called sysadmin that includes user1, user2 and your login account name. (b) All email send to postmaster should also be send the new mailing list sysadmin. (21) Once you complete this Lab, show this page to your instructor. Page 7 of 7