I have two CentOS servers - one for email and one for web hosting.
One domain, which we do not control, has the MX record incorrectly pointing to the web host.
What iptables config is needed to forward incoming emails to the email server?
The email clients will correctly connect to the dedicated email server so IMAP connections should be fine.
For info, the email server currently has the following ports open:
IMAP – port 143 STARTTLS
SMTP – port 587 STARTTLS
Also - will the SSL certificate have problems? I am unable to set up SPF record for the domain, I guess no solution for that? Any other problems I might have? I can see sending emails may be a problem as they will not originate from the same server as the MX record?
Thanks
mail server
restriction based on client IP address (e.g blacklisting/whitelisting) doesn't work anymore. The reason is your mail server only see a client with IP address fromweb server
.