The /etc/mail_aliases

The /etc/mail_aliases

configuration > server > email > aliases

The file /etc/aliases contains who is available under which address.

The file format is USERNAME: ADDRESS

An entry for the root user can redirect all EMails for this user to an external mail address. Alternatively every user can create a .forward file under $HOME to forward local mails to another address.

For that to work a mail-transport-agent like postfix must be reachable via that machine.

top