Recent Changes - Search:

Disclaimer

edit SideBar

Install of SMTP mail transport

1.  Introduction

We 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 physics.uj.ac.za, which takes care of the forwarding etc.

We use a PostFix relay on GridVM, instead of just sSMTP everywhere pointing directly to physics.uj.ac.za, to have some spooling in case physics is unreachable.

2.  SMTP mail relay on physics.uj.ac.za

I've configured physics.uj.ac.za to accept mail for the grid hosts.

gridvm:/etc/postfix/main.cf :

mydestination = apk-gridvm-01.uj.ac.za,gridvm.grid.uj.ac.za, grid.uj.ac.za, ...

3.  SMTP mail relay on GridVM

Note 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 local_transport pointing to smtp:, all mail is sent to the relay host. Note also that in this way the /etc/aliases on gridvm is ineffective.

gridvm:/etc/postfix/main.cf :

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]

4.  SMTP mail client on CEs, UIs and WNs

We 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.

/etc/ssmtp/ssmtp.conf :

# 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
...
Edit - History - Print - Recent Changes - Search
Page last modified on March 27, 2009, at 03:04 PM