Sections
Computational Science and Engineering > Users > Scott Beardsley > Scott's CSE Blog > How to Setup Email Forwarding on a Rocks Cluster
Personal tools

How to Setup Email Forwarding on a Rocks Cluster

This short article covers how to setup email forwarding on a Rocks 4.1+ cluster

Post Head Installation

Disable LogWatch on Compute Nodes

After the head has been installed but before compute nodes have been installed you should make the following changes to the extend-compute.xml in /export/home/install/site-profiles/<version>/nodes/.

<post>
<!-- Disable logwatch on compute nodes -->
rm /etc/cron.daily/00-logwatch
</post>

Make sure to run cd /export/home/install; rocks-dist dist to put the changes into effect. This change to the <post> section will disable the logwatch cronjob on the compute nodes. Logwatch is a script that runs daily to check for unauthorized access attempts, unknown log entries, etc. The most vital information from the compute nodes is already logged to the head so this extra info (coming from each compute node) often is unnecessary and annoying. Getting one message from each cluster every night is much more manageable.

Enable Forwarding to System Administrators

Edit the postfix aliases database (/etc/aliases). Modify the last line to read:

root:            admins@cse.ucdavis.edu

Make sure you run the newaliases command to put your changes into effect. This change will forward all messages going to root at the head to the system administrators.