You are hardening a Postfix SMTP service on a small-office Linux server. The server may receive mail from anywhere, but it must relay outbound messages only for clients on the 192.168.10.0/24 subnet (plus localhost). Which single parameter in /etc/postfix/main.cf specifies the list of trusted client networks that are allowed to relay through the server?
The Postfix parameter that lists the "trusted" remote SMTP clients is mynetworks. Any IP address or subnet that appears in this list is permitted to relay mail through the Postfix SMTP daemon without further authentication. Setting
mynetworks = 192.168.10.0/24, 127.0.0.0/8
therefore limits relay privileges to hosts on the office subnet and the local loopback interface.
mydestination controls the domains that are delivered locally and has no effect on who may relay.
relayhost defines an optional smart-host that Postfix should forward non-local mail to; it does not grant relay permission.
inet_interfaces tells Postfix which interface addresses it should listen on (for example, all vs. loopback-only) but does not determine relay eligibility.
Because only mynetworks governs the set of clients that can relay, it is the correct choice.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'mynetworks' parameter do in Postfix?
Open an interactive chat with Bash
How is 'mydestination' different from 'mynetworks'?
Open an interactive chat with Bash
What is the role of the 'relayhost' parameter in Postfix?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access