Deliver mail addressed locally to support into user helpdesk's mailbox.
Write the entry in /etc/aliases.
Which line is appropriate?
/etc/aliases uses ALIAS: DESTINATION to expand a local recipient.
Detailed explanation
support: helpdeskCorrect. Mail to support is delivered to helpdesk.
support -> helpdeskIncorrect. aliases does not use arrow syntax.
helpdesk: supportIncorrect. It reverses alias and destination.
support = helpdeskIncorrect. aliases uses a colon, not equals.
Try it yourself
An example you can run in a temporary verification environment.
printf '%s
' 'support: helpdesk' | awk -F: '{print $1, $2}'Expected result
support helpdeskKey points
- Left side is alias
- Colon separates fields
- Right side is destination
Notes
- Environment: POSIX awk / 模擬設定のみ
- 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.