Forwarding system mails

mail
forwarding

#1

Problem:

How can e-mails sent to system users be forwarded to another e-mail address?

Solution:

The system mail inbox is generally found in the /var/mail/systemmail directory and can only be read by the root user. To forward system mails to another user, the Univention Configuration Registry variable mail/alias/root can be configured.

Additional forwarding is also possible with further UCR variables (e.g.: “mail/alias/systemmail”, “mail/alias/postmaster”).

Setting the Univention Configuration Registry variable:

univention-config-registry set mail/alias/root=<username>@<domainname>

Updating the Postfix alias database:

postalias /etc/aliases

Reloading the Postfix configuration:

postfix reload

System und generische Mails