Redirecting mail for the local root user



Begin to configure your postfix installation by choosing satellite system as the general type of configuration. Enter the local machine name as the mail name (eg and the SMTP server address of your email service provider as the SMTP relay host (eg Edit the file /etc/postfix/ and add the following:

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

Create the file /etc/postfix/sasl_passwd and make the following entries: user:password



Instruct postfix to reload its settings with the following command:


Making changes to the alias table


postmaster: root
root: localuser

The localuser is the system administrator. Substitute with the email address that you would like mail for the root user to be redirected to. Finally, update /etc/aliases.db using the following command:

user@ubuntu:~$ sudo newaliases

Mail for the local root user from now on will automatically be forwarded to , using as the relay host.,