Email » History » Version 7

Version 6 (PaweÅ‚ Widera, 06/15/2012 03:36 PM) → Version 7/8 (PaweÅ‚ Widera, 06/15/2012 03:36 PM)


h1.
= Email Configuration

h2.
=

==
Receiving Emails: IMAP Configuration

==
Due to shutdown of marian, the [[ProCKSI]] ProCKSI e-mail account was migrated to Gmail.

*NOTE*: '''NOTE''': Having a separate account for _procksi_ ''procksi'' was necessary before having a dedicated [[ProCKSI]] ProCKSI cluster. The IMAM/POP functionality should be entirely transferred to the [[ProCKSI]] ProCKSI master node at some point.

||User name || procksi.net
||Password || see [[secretAuthentication|Authentication]] [wiki:secretAuthentication Authentication]
||IMAP server || imap.gmail.com (SSL)
||SMTP server || smtp.gmail.com (STARTTLS 587)
||Email address || procksi.net@gmail.com

h2.


==
Sending Emails: SMPT Configuration

==
The [[ProCKSI]] 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_) (''postfix'') is set up. This will accept emails from the private network only, store them temporarily (if necessary), and forward them to an email relay server.

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.

Make sure that _postfix_ ''postfix'' is the default mailing software (and not _sendmail_!). ''sendmail''!).
<pre>
{{{
system-switch-mail -activate postfix
</pre>

}}}

Make the following changes to the _postfix _configuration &#x27;&#x27;postfix &#x27;&#x27;configuration file (_/etc/postfix/main.cf_): (&#x27;&#x27;/etc/postfix/main.cf&#x27;&#x27;):
<pre>
{{{
myhostname = procksi.cs.nott.ac.uk
mydomain = cs.nott.ac.uk
myorigin = $mydomai
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks_style = subnet
virtual_alias_maps = hash:/etc/postfix/virtual
relayhost = mail.cs.nott.ac.uk
</pre>

}}}

Create or modify _/etc/postfix/virtual_: &#x27;&#x27;/etc/postfix/virtual&#x27;&#x27;:
<pre>
{{{
postmaster postmaster@localhost
adm root@localhost
root admin@procksi.net
procksi admin@procksi.net
</pre>

}}}

Generate the corresponding database file (_virtual.db_): (&#x27;&#x27;virtual.db&#x27;&#x27;):
<pre>
{{{
postmap /etc/postfix/virtual
</pre>

}}}

Make sure that the postfix daemon is running, and that it will start at boot time:
<pre>
{{{
/sbin/service postfix start
/sbin/chkconfig --add postfix
/sbin/chkconfig postfix on
</pre>

}}}

Make sure that the firewall is not open for port 25 or port 28!

Check that the STMTP server in _/home/procksi/latest/conf/main.ini_ &#x27;&#x27;/home/procksi/latest/conf/main.ini&#x27;&#x27; is set correctly set to _master01.procksi.local_ &#x27;&#x27;master01.procksi.local&#x27;&#x27;