Email » History » Version 2

Anonymous, 11/08/2007 10:45 AM

1 1 Anonymous
= Email Configuration =
2 1 Anonymous
The ProCKSI server component send emails to the user for several occasions. In order to make sure that they are delivered correctly even when the internet is temporarily not available, a local SMTP server (''postfix'') is set up. This will accect emails from the private network only, store them temporarily (if necessary), and forward them to an email relay server.
3 1 Anonymous
4 2 Anonymous
Additionally, all system mails sent by the master and slave nodes shall be forwared to the procksi email account in order to make all available at one point.
5 1 Anonymous
6 2 Anonymous
7 1 Anonymous
Make sure that ''postfix'' is the default mailing software (and not ''sendmail''!).
8 1 Anonymous
{{{
9 1 Anonymous
system-switch-mail -activate postfix
10 1 Anonymous
}}}
11 1 Anonymous
12 1 Anonymous
Make the following changes to the ''postfix ''configuration file (''/etc/postfix/main.cf''):
13 1 Anonymous
{{{
14 1 Anonymous
myhostname = procksi.cs.nott.ac.uk
15 1 Anonymous
mydomain = cs.nott.ac.uk
16 1 Anonymous
myorigin = $mydomai
17 1 Anonymous
inet_interfaces = all
18 1 Anonymous
mydestination = $myhostname, localhost.$mydomain, localhost
19 1 Anonymous
mynetworks_style = subnet
20 1 Anonymous
virtual_alias_maps = hash:/etc/postfix/virtual
21 1 Anonymous
relayhost = marian.cs.nott.ac.uk
22 1 Anonymous
}}}
23 1 Anonymous
24 1 Anonymous
Create or modify ''/etc/postfix/virtual'':
25 1 Anonymous
{{{
26 1 Anonymous
postmaster  postmaster@localhost
27 1 Anonymous
adm         root@localhost
28 2 Anonymous
root        procksi@cs.nott.ac.uk
29 2 Anonymous
procksi     procksi@cs.nott.ac.uk
30 1 Anonymous
}}}
31 1 Anonymous
32 1 Anonymous
Generate the corresponding database file (''virtual.db''):
33 1 Anonymous
{{{
34 1 Anonymous
postmap /etc/postfix/virtual
35 1 Anonymous
}}}
36 1 Anonymous
37 1 Anonymous
Make sure that the postfix daemon is running, and that it will start at boot time:
38 1 Anonymous
{{{
39 1 Anonymous
/sbin/service postfix start
40 1 Anonymous
/sbin/chkconfig --add postfix
41 1 Anonymous
/sbin/chkconfig postfix on
42 1 Anonymous
}}}
43 1 Anonymous
44 1 Anonymous
Make sure that the firewall is not open for port 25 or port 28!
45 1 Anonymous
46 1 Anonymous
Check that the STMTP server in ''/home/procksi/latest/conf/main.ini'' is set correctly set to ''master01.procksi.local''