Deliver mail to local alias ops to both alice and bob.
Which /etc/aliases line is appropriate?
Separate multiple alias destinations with commas to deliver one local alias to multiple recipients.
Detailed explanation
ops: alice bobIncorrect. A space alone is not the normal multiple-destination separator.
ops: alice, bobCorrect. ops expands to both alice and bob.
alice,bob: opsIncorrect. It reverses the expansion direction.
ops = alice,bobIncorrect. aliases uses colon syntax.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'ops: alice, bob' | cut -d: -f2Expected result
alice, bobKey points
- Comma separates destinations
- Left side is one alias
- Whitespace improves readability
Notes
- Environment: POSIX cut / 模擬設定のみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
MTA
A mail transfer agent that accepts, routes, and queues messages.
Alias and forwarding
Rules that map a local address to one or more delivery destinations.
Mail queue
Temporary storage for messages waiting to be delivered or retried.