Mobile app version of vmapp.org
Login or Join
Debbie626

: How to set DNS to work with VPS email server I have a VPS in one provider (Provider A), and I have set the email server all works ok. in another provider (Provider B) I have the domain

@Debbie626

Posted in: #Dns #Email #Vps

I have a VPS in one provider (Provider A), and I have set the email server all works ok. in another provider (Provider B) I have the domain registered. So, let's assume it is mydomain.com

On the provider B:
I had created a subdomain called mail.mydomain.com, configured the dns as follow:

HOST Type Result
(empty) A 123.123.123.123
www A 123.123.123.123
mail A 123.123.123.123


Then on mail exchange records I've configured as follow:

HOST Priority Result
(empty) 30 123.123.123.123


On the subdomain mail.mydomain.com, I have configured the dns as follow:

HOST Type Result
(empty) A 123.123.123.123
www A 123.123.123.123

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Debbie626

1 Comments

Sorted by latest first Latest Oldest Best

 

@Nimeshi995

Set up your mail server(s) to listen at mail.mydomain.com
Make sure your firewall doesn't block your mail server(s)'s ports
Set an A record on mail.mydomain.com pointing to your IP address
Set a MX record on mydomain.com pointing to mail.mydomain.com
It should be working, but you probably wanna set up DKIM, DMARC and SPF

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme