I'm running a Ubuntu 12.04lts server with denyhosts, logwatch, apticron etc daemons which send emails to a user on the machine when something happens.
Since I don't use the root account; I aliassed everything which goes to the root to my own superuser account:
mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: richard
The mail now gets delivered to my
richard account. To forward every mail externally I added this line:
richard: email@example.com, richard
The hostname of the server is srv1.domain.com. I don't want to receive external mail on this machine. I just want the local mail originating from the machine being forwarded to my, hosted on google business apps, remote mail.
How can I configure exim (at least I think that is the default MTA of ubunutu) to do the above?