Using SMTP Relay on a Exim Server in VPS for Multiple Domains

emaileximsmtp

I am moving my email behind a dynamic IP, and I will need to SMTP relay outbound email in order to avoid spam lists.

My domain is hosted through a BlueHost VPS running EXIM. I am wondering what I would have to configure to run two domains outbound through my one VPS using SMTP Relay and have me email not be market for spam.

If I do relay through my VPS, will I be able to do so with multiple domains? For instance, thedilldesign.com and virginiaseo.org are both my domains/companies. thedilldesign.com is hosted on my VPS, though the domain is registered through GoDaddy and DNS is held by CloudFlare. Would I be able to send email using thedilldesign.com domain name from my dynamic IP address and relay through my static IP on my VPS? Would these outbound emails have an appropriate reverse SMTP banner and RDNS so that I am not flagged as spam? Would I have to configure thedilldesign.com to be on its own static IP with its own mailserver, or can it share the relay capabilities with the other domain off of the same IP?

Any information on multiple domains through a VPS SMTP Relay is welcome!

Best Answer

DNS settings:

  1. set up so-called reverse record that bind your IP-address with some domain, f.e. thedilldesign.com. Usually you can do it via VPS management panel

  2. set MX records for all your domains to the same value - thedilldesign.com

  3. set SPF records for all your domains to confirm that thedilldesign.com is legal submitter for that domains

EXIM settings

  1. set local_domains = virginiaseo.org : thedilldesign.com

  2. set up TLS / certificates. You can use selfsigned certs for free

  3. set up authentication over TLS and allow only autenticated users to send messages outbound.

Email software

  1. set up SMTPS/IMAPS connections to the server, confirm selfsigned certs.

This steps guarantee that you can send emails from any location/connection via encrypted tunnel, and all your messages will be accepted by recipients as far as your server has valid plain and reverse DNS-records and proper SPF-records.

Related Topic