Introducing mailx and forwarding the root's e-mail to an external e-mail address

In this recipe we will investigate the use of mailx and forward the root's e-mail to an external e-mail address of your choice in order to provide your server with a simple messaging system that can be used at any time.

E-mail capability for the root user is not activated by default and you may find it useful to ensure that this service is not only enabled, but that it is also able to issue any messages to a third-party address. At any given moment CentOS may be required to generate e-mail reports that should be issued to, or generated on the behalf of the root user, while those of you who enjoy the benefit of e-mail in order to issue simple reminders and notices will ...

Get CentOS 6 Linux Server Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.