0

Is there a way to bypass the DNS's MX record? My company uses Barracuda for spam filtering and our company's MX record points to Barracuda. A product we're trying to build needs to talk TLS to the mail server, but to test this I have to create a subdomain that bypasses Barracuda and then having to deal with the SSL certs for that. Not necessarily a show stopper. But if I could fool something to use our mail server's actual IP address as opposed to the MX, that'd help a lot.

Any thought, cantor, ideas or anecdotes?

  • 3
    You can certain configure your MTA to override the DNS MX record for a specific domain and send instead to a hardcoded name or IP adress, but the way you configure that entirely depends on what MTA you are using. – Celada Jan 28 '16 at 21:24
1

You could always set the Barracuda hostname to the IP address of your mail server in /etc/hosts on the new product server instance. It's an ugly hack, but it should work if your host uses standard DNS resolver libraries.

Oh, and it will break TLS, too, since there would be a name mismatch with the SSL certificate.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.