Difference between revisions of "OPS535-online-L5"
(→Review Questions) |
(→Pre-requisites) |
||
Line 12: | Line 12: | ||
= Pre-requisites = | = Pre-requisites = | ||
− | * Must complete | + | * Must complete assignment 1 on ops535 virtual lab and ensure that |
− | ** all your VMs have network connectivity to each other | + | ** all your four VMs have network connectivity to each other via the ens224 network interfaces, |
** your VMs have the proper FQDN which can be resolved by your authoritative DNS server(s) | ** 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) | * Install the nmap-ncat package on your host (optinally, install it on your other VMs as well) |
Revision as of 19:17, 8 March 2021
Contents
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 assignment 1 on ops535 virtual lab and ensure that
- all your four VMs have network connectivity to each other via the ens224 network interfaces,
- 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
- postfix version
- smtp port
- smtp status: ss -at, ps -ef
- smtp commands/responses
- postfix main configuration file: /etc/postfix/main.cf
- start/stop postfix
- mailing list
- 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?