Email » History » Version 1

Anonymous, 09/14/2007 11:07 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 1 Anonymous
5 1 Anonymous
Make sure that ''postfix'' is the default mailing software (and not ''sendmail''!).
6 1 Anonymous
{{{
7 1 Anonymous
system-switch-mail -activate postfix
8 1 Anonymous
}}}
9 1 Anonymous
10 1 Anonymous
Make the following changes to the ''postfix ''configuration file (''/etc/postfix/main.cf''):
11 1 Anonymous
{{{
12 1 Anonymous
myhostname = procksi.cs.nott.ac.uk
13 1 Anonymous
mydomain = cs.nott.ac.uk
14 1 Anonymous
myorigin = $mydomai
15 1 Anonymous
inet_interfaces = all
16 1 Anonymous
mydestination = $myhostname, localhost.$mydomain, localhost
17 1 Anonymous
mynetworks_style = subnet
18 1 Anonymous
virtual_alias_maps = hash:/etc/postfix/virtual
19 1 Anonymous
relayhost = marian.cs.nott.ac.uk
20 1 Anonymous
}}}
21 1 Anonymous
22 1 Anonymous
Create or modify ''/etc/postfix/virtual'':
23 1 Anonymous
{{{
24 1 Anonymous
root        root@localhost
25 1 Anonymous
postmaster  postmaster@localhost
26 1 Anonymous
adm         root@localhost
27 1 Anonymous
}}}
28 1 Anonymous
29 1 Anonymous
Generate the corresponding database file (''virtual.db''):
30 1 Anonymous
{{{
31 1 Anonymous
postmap /etc/postfix/virtual
32 1 Anonymous
}}}
33 1 Anonymous
34 1 Anonymous
Make sure that the postfix daemon is running, and that it will start at boot time:
35 1 Anonymous
{{{
36 1 Anonymous
/sbin/service postfix start
37 1 Anonymous
/sbin/chkconfig --add postfix
38 1 Anonymous
/sbin/chkconfig postfix on
39 1 Anonymous
}}}
40 1 Anonymous
41 1 Anonymous
Make sure that the firewall is not open for port 25 or port 28!
42 1 Anonymous
43 1 Anonymous
Check that the STMTP server in ''/home/procksi/latest/conf/main.ini'' is set correctly set to ''master01.procksi.local''