CertGrid CertGrid
Hands-on Lab·LPIC-2

An MTA that accepts, and one that refuses

Objective 211.1 is running an MTA. This guide installs Postfix, sets the two parameters that decide who it serves, and then proves both halves of its policy from a second machine: mail addressed to this server is accepted and delivered to a real mailbox, and mail addressed through it to a stranger is refused at RCPT time.

202: E-Mail Services Guide 20 of 29 Intermediate

One mail server and one client. Every result on this page is produced from the machine that is not running Postfix, because a mail server that has only ever talked to itself has not been tested.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB
LPIC2-C01192.168.0.80Ubuntu 26.04 LTSClient - resolves, mounts and connects, so every service is proven from a machine that is not running it2 Core4 GB50 GB

This guide includes

Use this the first time you are handed a mail server, or the first time a monitoring box, a printer or an application cannot send its notifications. This matters because accepting mail FOR a domain and relaying mail THROUGH the server are different permissions, and confusing them is what creates an open relay.

Before you start

  1. An MTA, and the two settings that decide who it serves

  2. Reading the policy back before testing it

  3. The banner, from a machine that is not the server

  4. Mail FOR this server is accepted

  5. Proving it arrived

  6. Mail THROUGH this server is refused

Official sources