Open main menu

CDOT Wiki β

Changes

OPS335 Lab 4b

231 bytes added, 13:29, 2 March 2017
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 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 (or any other machine in our network) through vm3 so that it properly appears to come from the mail server that matches the MX record for the domain.
*First, we must direct vm2 to relay mail through vm3, by editing /etc/postfix/main.cf again'''Perform the following steps:'''
# First, direct your vm2 machine to relay mail through '''vm3''', by making the following editing change for the '''/etc/postfix/main.cf''' file:<br><presource>relayhost = vm3.<yourdomain>.org</presource*Remember to restart # Restart the '''postfix once you have done so''' service.*# Next, we you must tell instruct your '''vm3 ''' machine to allow your vm2 machine to pass email through itby making the following editing chnage to the '''/etc/postfix/main.cf''' file:<prebr><source>mynetworks = 192.168.X.0/24</presource>*<br>NOTE: Substitute in your '''own network ''' for X, and remember to restart <br><br># Restart the '''postfix''' service.
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.
13,420
edits