Email Server: SMTP and Postfix
Eric Brauer
email
Instance@user.ops345.ca
.The steps in the lab here will ask you to mount an EBS, then move the
contents of /home
to that EBS, and then replace
your home with that EBS. It’s very easy to break your server here, you
will have to create a new email
instance!
/home
directory before moving
files (including ownership and permission)./tmp/home
match what was
there before. Including the Public Key.fstab
before rebooting.The DNS entries mean that now, my Gmail knows where to find your
email
server. It’s knocking on your door. Now we need just
need to answer it.
Postfix is already installed on your instances, but by default only
handles email on localhost (ie, students emailing each other on
Matrix). Follow the steps in the lab to allow the server to handle any
email incoming on port 25, with user.ops345.ca
as the
domain.
Use ss
(it has replaced netstat
) to check
your work.
I’m not on Rogers, but it still didn’t work for me. You can probably skip this step.
Basically, when emails get sent to user root
, you want
to redirect that to your username (because you are the admin,
after all!). This should be a simple step.
If all goes according to plan, you should be able to send an email
from any account you own, and you should be able to read your
email
logs to see it received by your SMTP server. If
not:
ss
to verify that your SMTP port is open.systemctl status
to make sure that Postfix didn’t
encounter an error.dig
to make sure that DNS entries are correct.