The ~/.forward file is read directly by the mail transfer agent (e.g., sendmail, Postfix, or Exim) at delivery time for a given user's mailbox, and it is owned and editable by that user, not the MTA — no special editaliases command is required. Unlike /etc/aliases, which requires running newaliases to rebuild the aliases database after edits, .forward is read live by the MTA on each delivery, so no rebuild step is needed. The file simply lists one or more destinations (email addresses, pipes to programs, or file paths); when multiple addresses are listed (typically comma-separated), the MTA delivers a copy of the incoming mail to each of them, enabling forwarding to several recipients at once.
Community Discussion