Local emails bounce back when sent to another virtual server's remote email

Hi,

The back story:

I used to use CPanel. When a client uses a 3rd party email (i.e. google, outlook), I just click on "remote email server" during the setup, and that's it.

The current story:

Now that i m using Virtualmin, I wanted to do the same thing but i realised there are more steps to take. So here is what i did:

  • 1] Enabled Features > uncheck 'mail for domain', uncheck 'virus filtering', uncheck 'mailma mailing list', uncheck 'spam filtering'
  • 2] removed all mail.domain.tld from DNS records
  • 3] MX record changed to: domain.tld.mail.protection.outlook.com <- provided by outlook people and also verified through MXToolbox.com
  • 4] restarted server.
  • Client receives emails fine but when a user (myself) within my server sends her an email, user gets a bounce back as follows:

  • The mail system johndoe@domain.tld: Host or domain name not found. Name service error for name=domain.tld.mail.protection.outlook.com.domain.tld type=AAAA: Host not found
  • Troubleshooting:

    I realise I could ad an A record with the IP for domain.tld.mail.protection.outlook.com.domain.tld but I'd rather not do that because I dont want to run the risk of them changing their IP.

    Questions
  • a. How can I solve this issue so that local users can email local virtual servers with remote email option?
  • b. Why do i need to specify the remote MX record whereas in CPanel I didnt need to?
  • Status: 
    Closed (fixed)

    Comments

    Howdy -- you may need to verify that DNS lookups are working in your case, as it sounds like everything else you did is correct.

    It looks like you may be using Virtualmin GPL there though... if you're using Virtualmin GPL and you had additional questions, you'd actually want to use the Forums for support. We monitor the Forums, along with lots of wonderful folks in the community.

    Thanks!

    Sorry I thought I was on the forum.

    Can you explain how to go about verifying the DNS lookups are working? In the clients registrar I see this:

    Alias TTL Refers to Host Name

    autodiscover.domain.tld 3600 autodiscover.outlook.com.

    Am I supposed to used that for something?

    Special note:

    In the error message, "domain.tld" is appended to the reported MX record I have in the system.

    We can certainly go over DNS troubleshooting, but the best place to do that would be in the Forums as well :-)

    To access the forums, click the "Forums" link above, and there, choose the "Post new Forum topic".

    Thanks!