Email relay

3 posts / 0 new
Last post
#1 Wed, 08/20/2014 - 01:02
jeremy2904

Email relay

I have two virtualmin servers setup on two separate VPS. One VPS has an IP address which is part of a range banned from sending emails to a particular ISP for spam abuse. The other however has no trouble sending emails. I was wondering if I would be able to setup the working one as a relay for the blocked VPS. If anyone could tell me how to make this work it would be greatly appreciated.

Wed, 08/20/2014 - 08:54
andreychek

Howdy,

Note that if the issue that led to the spam isn't corrected, implementing the above may end up with both servers not being allowed to send email to this particular ISP.

However, if you'd like to set that up, you can do so by making a change to your Postfix main.cf on both servers.

On the server that's being blocked, you'd want to edit /etc/postfix/main.cf, and set the "relayhost" setting to point to the server you want your email to relay through.

On the other server, you need to tell it to accept connections from the first one. To do that, edit /etc/postfix/main.cf on it, and add the IP address of the first server in the "mynetworks" parameter.

After making those changes, you would need to restart Postfix on each server.

-Eric

Wed, 08/20/2014 - 19:29
jeremy2904

Do I have to put any login information to make that work?

Topic locked