Changes

Jump to: navigation, search

OPS335 Lab 4b

No change in size, 10:19, 15 September 2016
m
Relaying Email Through Another Server
=== 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 vm2 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 vm2 (or any other machine in our network) through vm2 vm3 so that it properly appears to come from the mail server that matches the MX record for the domain.
*First, we must direct vm3 vm2 to relay mail through vm2vm3, by editing /etc/postfix/main.cf again:
<pre>relayhost = vm2vm3.<yourdomain>.org</pre>
*Remember to restart postfix once you have done so.
*Next, we must tell vm2 vm3 to allow vm3 vm2 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.
932
edits

Navigation menu