Open main menu

CDOT Wiki β

Changes

OPS335 Lab 4b

890 bytes added, 00:23, 3 March 2016
MTA - Postfix
If everything is working - that's good, now you know what you'll try to build in the email labs. The goal is to have the exact same setup using your servers instead of Seneca servers.
= MTA - Postfix for Sending with no encryption =
We'll use Postfix as the MTA, and we'll set it up on '''vm2'''. This will be the email server for your internal network. You'll be able to send email out of your network, and receive email from within your network, but not receive from outside your network because:# Outsiders will never find the MX recors for your domain, because there are no .org servers pointing to your DNS server(you haven't paid for it).
# Even if they did - your local network is using IP addresses on a private subnet, which is not routeable on the internet, so it cannot be reached from the outside.
 
Postfix should be installed by default. If it isn't - go ahead and install it. Install also the netstat application (use yum search to find the package name) and the telnet command.
 
Postfix will work with the default configuration, so enable it, start it, and check that it's running. Also look for it in the list of listening ports:
 
<source lang="bash">netstat -atnp</source>
 
Which one is it? Find the port used by SMTP, and look for connctions with the state LISTEN (i.e. currently listening).
 
== Testing ==
 
Connect to your server using telnet:
 
<source lang="bash">telnet localhost 25</source>
 
Note that it will tell you once your connect that '''Escape character is '^]''', which means your can hold control and press the square bracket key to end the session (and then exit the telnet app).
 
If this worked - that means your