Changes

Jump to: navigation, search

OPS335 Lab 4b

No change in size, 22:04, 5 January 2021
Relay Email Through Another Server
=== Relay 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 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 vm2 vm3 (or any other machine in our network) through vm3 vm2 so that it properly appears to come from the mail server that matches the MX record for the domain.
'''Perform the following steps:'''
# Move to your vm2 vm3 machine.# Direct your '''vm2vm3''' MTA to relay mail through vm3vm2, by making the following editing change for the '''/etc/postfix/main.cf''' file:<br><source>relayhost = vm3vm2.<yourdomain>.ops</source>
# Restart the '''postfix''' service.
# Next, you must instruct your '''vm3vm2''' machine to allow your vm2 vm3 machine to pass email through it by making the following editing change to the '''/etc/postfix/main.cf''' file:<br><source>mynetworks = 192.168.X.0/24</source>NOTE: Substitute in your '''own network''' for X<br><br>
# Restart the '''postfix''' service.

Navigation menu