|
|
SysAdm /
Install of SMTP mail transportNavigation IntroductionWe need to have a minimal mail service on the cluster and grid nodes, to be able to collect logs, error reports etc. To do this without too much configuration, we use an STMP mail relay (Postfix) on GridVM, and a simple SMTP client (sSMTP) on the other systems. All the mail is then delivered to We use a PostFix relay on GridVM, instead of just sSMTP everywhere pointing directly to SMTP mail relay on physics.uj.ac.zaI've configured physics.uj.ac.za to accept mail for the grid hosts.
mydestination = apk-gridvm-01.uj.ac.za,gridvm.grid.uj.ac.za, grid.uj.ac.za, ... SMTP mail relay on GridVMNote that SMTP is only open to the local networks, so that we don't have to worry about external traffic (also in iptables). In this configuration with
relayhost = [physics.uj.ac.za] inet_interfaces = localhost,10.0.0.254 mynetworks = 127.0.0.0/8, 10.0.0.0/24, 152.106.18.0/24 mydestination = local_transport = smtp:[physics.uj.ac.za] SMTP mail client on CEs, UIs and WNsWe use sSMTP, a very simple SMTP mail client that is only able to forward the mail to a relay, and only do minimal adjustments. I've chosen sSMTP over other solutions because it's supported by the Debian project (many simple clients aren't well supported(, it only needs a minimal configuration and no large daemons (contrary to using Sendmail/Postfix/Exim), and is available as an RPM that "provides" sendmail, so that one can uninstall the existing MTA package without running into an RPM dependency problem. See http://www.linux.com/feature/132006 for a nice article about it.
# The person who gets all mail for userids < 500 # Make this empty to disable rewriting. root=root@grid.uj.ac.za # The place where the mail goes. The actual machine name is required # no MX records are consulted. Commonly mailhosts are named mail.domain.com # The example will fit if you are in domain.com and your mailhub is so named. mailhub=head ... < Install NTP | Install Trail | Install Torque > |