Changes

Jump to: navigation, search

OPS335 Lab 4b

837 bytes added, 18:22, 22 June 2016
m
Adding a step for routing outgoing mail through vm2.
Send an email from your vm2 to root@yourdomain.org. Confirm that it arrives on vm3.
 
=== Relaying Email Through Another Server===
 
When email is sent from either vm, it is addressed from the domain, but receiving MTAs might query why mail sent from vm3 doesn't match the address of the MX record for the domain. This would be a red-flag for potential spam. To avoid this, we can relay all mail sent from vm3 (or any other machine in our network) through vm2 so that it properly appears to come from the mail server that matches the MX record for the domain.
 
*First, we must direct vm3 to relay mail through vm2, by editing /etc/postfix/main.cf again:
 
<pre>relayhost = vm2.pcallagh.org</pre>
 
*Remember to restart postfix once you have done so.
*Next, we must tell vm2 to allow vm3 to pass email through it:
<pre>mynetworks = 192.168.X.0/24</pre>
*Substitute in your own network for X, and remember to restart postfix.
All mail is now being delivered to a centralized location (and also appears to be coming from that same location), but a user would still have to access that server to retrieve it.
932
edits

Navigation menu