You are building a send-only mail relay on a Debian server. After installing the Postfix package, you must configure it so that all outbound messages are relayed through the company's authenticated SMTP gateway at smtp.corp.example.com on TCP port 587. Postfix must connect directly to that host and must not perform an MX lookup for it. Which single line correctly implements this requirement when added to /etc/postfix/main.cf?
The relayhost parameter tells Postfix where to hand off all non-local mail. When the destination is written in square brackets, Postfix skips any DNS MX or SRV look-ups and connects directly to the host that is named. Appending a colon and the port number specifies the TCP port to use instead of the default 25. Therefore the line relayhost = [smtp.corp.example.com]:587 makes Postfix send every outbound message straight to smtp.corp.example.com on port 587.
The other options are incorrect for these reasons:
relayhost = smtp.corp.example.com:587 omits the brackets, so Postfix would look up the MX records for smtp.corp.example.com before attempting delivery.
fallback_relay = [smtp.corp.example.com]:587 uses the wrong directive; fallback_relay is only tried after a normal delivery attempt fails.
smarthost = smtp.corp.example.com:587 is not a valid Postfix main.cf parameter, so it would be ignored.
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.
Why are square brackets necessary around the SMTP host in the relayhost parameter?
Open an interactive chat with Bash
What is the purpose of the fallback_relay Postfix parameter?
Open an interactive chat with Bash
What does specifying a port, like :587, do in the relayhost configuration?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .