<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Setup_Email_with_Postfix</id>
	<title>Setup Email with Postfix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Setup_Email_with_Postfix"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Setup_Email_with_Postfix&amp;action=history"/>
	<updated>2026-05-04T21:22:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Setup_Email_with_Postfix&amp;diff=2295&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;* Postfix needs to be installed on the headnode and the compute nodes  ===== Install Postfix ===== &lt;syntaxhighlight&gt; yum install postfix &lt;/syntaxhighlight&gt;  ===== Setup Postfix ===== * Edit the mai...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Setup_Email_with_Postfix&amp;diff=2295&amp;oldid=prev"/>
		<updated>2013-05-01T08:55:50Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Postfix needs to be installed on the headnode and the compute nodes  ===== Install Postfix ===== &amp;lt;syntaxhighlight&amp;gt; yum install postfix &amp;lt;/syntaxhighlight&amp;gt;  ===== Setup Postfix ===== * Edit the mai...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Postfix needs to be installed on the headnode and the compute nodes&lt;br /&gt;
&lt;br /&gt;
===== Install Postfix =====&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
yum install postfix&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Setup Postfix =====&lt;br /&gt;
* Edit the main.cf configuration and setup a relayhost to send mail&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# vi /etc/postfix/main.cf&lt;br /&gt;
relayhost = speedy2k3.viglen.co.uk&lt;br /&gt;
# Or customer version&lt;br /&gt;
relayhost = smtp.mailserver.uni.ac.uk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Restart and test postfix =====&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
/etc/init.d/postfix restart&lt;br /&gt;
echo &amp;quot;hi&amp;quot; | mail -s &amp;quot;Subject&amp;quot; david.power@viglen.co.uk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Setup the compute nodes for postfix =====&lt;br /&gt;
* Conf TBC&lt;br /&gt;
* Install postfix on nodes using ngedit&lt;br /&gt;
* Create a link in /etc/cfm/[node_group]/etc/postfix/main.cf to /etc/postfix/main.cf&lt;br /&gt;
* Might need chkconfig in custom_scripts&lt;br /&gt;
&lt;br /&gt;
===== Setup aliases for users =====&lt;br /&gt;
* By default LSF will email the localhost user mailbox, to email external mailboxes, setup aliases:&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# EG if you had a user called david but wanted to email david.power@viglen.co.uk&lt;br /&gt;
# Edit /etc/aliases&lt;br /&gt;
david:      david.power@viglen.co.uk&lt;br /&gt;
&lt;br /&gt;
# Once the aliases are added, run newaliases:&lt;br /&gt;
[root@vhpchead etc]$ newaliases&lt;br /&gt;
/etc/aliases: 77 aliases, longest 24 bytes, 794 bytes total&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== LSF parameters =====&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
LSB_MAILPROG=/usr/sbin/sendmail&lt;br /&gt;
LSB_MAILSERVER=SMTP:smtp.uea.ac.uk&lt;br /&gt;
# mail address format user@uea.ac.uk&lt;br /&gt;
LSB_MAILTO=!U@uea.ac.uk&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== DNS Domain needs changing =====&lt;br /&gt;
* By default, PCM will setup an internal zone called private.dns.zone&lt;br /&gt;
* This may need to be changed to allow mails be relayed (from a trusted university domain)&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@vhpchead ~]$ kusu-net-tool dns domain private vhpc.viglen.co.uk&lt;br /&gt;
Updating and restarting PCM daemons...&lt;br /&gt;
Updating /etc/resolv.conf&lt;br /&gt;
Updating /etc/named.conf&lt;br /&gt;
Updating DNS zone file(s)&lt;br /&gt;
Updating reverse DNS configuration file(s)&lt;br /&gt;
Restarting named...&lt;br /&gt;
None&lt;br /&gt;
Updating /etc/hosts...&lt;br /&gt;
Restarting dhcpd...&lt;br /&gt;
None&lt;br /&gt;
Updating SSH client configuration...&lt;br /&gt;
Restarting httpd...&lt;br /&gt;
None&lt;br /&gt;
Restarting xinetd...&lt;br /&gt;
None&lt;br /&gt;
Removing old DNS zone file(s)&lt;br /&gt;
&lt;br /&gt;
Please run &amp;#039;kusu-addhost -u&amp;#039; to update the configuration for installed kits.&lt;br /&gt;
[root@vhpchead etc]$ addhost -u &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>