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 want a convenient solution that may not require a comprehensive mail server solution. We all know that e-mail capability is essential to every aspect of your role as the administrator and it is the purpose of this recipe to not only show you how...