Difference between revisions of "OPS535-online-L5"

From CDOT Wiki
Jump to: navigation, search
(Review Questions)
Line 34: Line 34:
  
 
= Review Questions =
 
= Review Questions =
1. Why did you get “command not recognized” as the output for the EXPN command?  
+
:1. Why did you get “command not recognized” as the output for the EXPN command?  
2. What does the VRFY command ask Postfix to do?  
+
:2. What does the VRFY command ask Postfix to do?  
3. How do you add a mailing list called “helpdesk” on your Postfix VM so that all email send to the “helpdesk”mail list will be forwarded to user ldapuser1?  
+
:3. How do you add a mailing list called “helpdesk” on your Postfix VM so that all email send to the “helpdesk”mail list will be forwarded to user ldapuser1?  
4. Would you be able to nc from your other virtual machines to the SMTP port on your VM3 and repeat the task in investigaion 1 step (15)? If not, what would you need to change on your Postfix server to allow other machines to connect to the Postfix mail server?  
+
:4. Would you be able to nc from your other virtual machines to the SMTP port on your VM3 and repeat the task in investigation 1 step (15)? If not, what would you need to change on your Postfix server to allow other machines to connect to the Postfix mail server?  
5. Who is the owner of the file /tmp/ops535.mail?  
+
:5. Who is the owner of the file /tmp/ops535.mail?  
6. Who has the read permission on the file /tmp/ops535.mail?  
+
:6. Who has the read permission on the file /tmp/ops535.mail?  
7. What is the "Return Path" indicated in the file /tmp/ps535.mail?  
+
:7. What is the "Return Path" indicated in the file /tmp/ps535.mail?  
8. What command will peform the same function as "/usr/sbin/sendmail -bi" ?  
+
:8. What command will perform the same function as "/usr/sbin/sendmail -bi" ?  
9. What is the absolute path and access permission of the directory used by Postfix to store outgoing messages?  
+
:9. What is the absolute path and access permission of the directory used by Postfix to store outgoing messages?  
10.What command would you use to get a Mail Delivery Status Report?  
+
:10.What command would you use to get a Mail Delivery Status Report?  
11. What command will show you the queue ID of an outgoing email waiting for deliery in the mail queue? 12.How do you delete an outgoing message which is sitting in the queue directory?
+
:11. What command will show you the queue ID of an outgoing email waiting for delivery in the mail queue?  
 +
:12.How do you delete an outgoing message which is sitting in the queue directory?
  
 
 
 
 
= Original Lab in PDF format =
 
= Original Lab in PDF format =
 
* [https://www.dropbox.com/s/jwkc8mv7fo8b2wq/lab5.pdf?dl=1 Link to Lab 5]
 
* [https://www.dropbox.com/s/jwkc8mv7fo8b2wq/lab5.pdf?dl=1 Link to Lab 5]

Revision as of 23:25, 8 February 2021

Overview

Postfix is a complete MTA (Mail Transport Agent) package which replaced Sendmail. Postfix uses several different programs to implement the MTA functionality. Postfix is considered to be more secure than Sendmail as it requires a separate user ID for running each module. Postfix uses plain text parameters and value names in its configuration files. The Postfix program plays a variety of roles:

  • Listens to the network for incoming mail
  • Transports mail messages to other machines
  • Performs local mail delivery or hands local mail over to a local program for delivery
  • Appends mail to files, Pipes mail through other programs
  • Queues mail for later delivery
  • Understands the aliasing of one recipient name to another

Understanding how Postfix handles the tasks listed above is essential in keeping the email service running properly for your users.

Pre-requisites

  • Must complete Labs 1 to 4 and ensure that
    • all your VMs have network connectivity to each other, and to other student's VMs,
    • your VMs have the proper FQDN which can be resolved by your authoritative DNS server(s)
  • Install the nmap-ncat package on your host (optinally, install it on your other VMs as well)

Investigation 1: SMTP

  1. postfix version
  2. smtp port
  3. smtp status: ss -at, ps -ef
  4. smtp commands/responses
  5. postfix main configuration file: /etc/postfix/main.cf
  6. start/stop postfix
  7. mailing list
  8. manual email delivery - smtp session

Investigation 2: mailing list (on postfix)

Investigation 3: mail queues (on postfix)

Completing the Lab

Review Questions

1. Why did you get “command not recognized” as the output for the EXPN command?
2. What does the VRFY command ask Postfix to do?
3. How do you add a mailing list called “helpdesk” on your Postfix VM so that all email send to the “helpdesk”mail list will be forwarded to user ldapuser1?
4. Would you be able to nc from your other virtual machines to the SMTP port on your VM3 and repeat the task in investigation 1 step (15)? If not, what would you need to change on your Postfix server to allow other machines to connect to the Postfix mail server?
5. Who is the owner of the file /tmp/ops535.mail?
6. Who has the read permission on the file /tmp/ops535.mail?
7. What is the "Return Path" indicated in the file /tmp/ps535.mail?
8. What command will perform the same function as "/usr/sbin/sendmail -bi" ?
9. What is the absolute path and access permission of the directory used by Postfix to store outgoing messages?
10.What command would you use to get a Mail Delivery Status Report?
11. What command will show you the queue ID of an outgoing email waiting for delivery in the mail queue?
12.How do you delete an outgoing message which is sitting in the queue directory?

Original Lab in PDF format

References