1

If I had a domain such as example.com and an smtp address for a mail server such as really.long.smtp.address.com is it possible to setup a DNS record on example.com, such as smtp.example.com, and to make this redirect any SMTP connections on to really.long.smtp.address.com?

This way, when I add the SMTP login details in to a mail client and set the server to smtp.example.com, it would connect and work?

closed as unclear what you're asking by Stephen Ostermiller Sep 7 '17 at 10:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Redirects are an HTTP construct. Not SMTP. Not DNS. So no. Not even in your dreams. You can, however, alias one domain to another using CNAME. – closetnoc Sep 7 '17 at 2:16
  • @closetnoc I see - do you know if this practice is RFC-compliant? – PaulF Sep 7 '17 at 2:52
  • @closetnoc wouldn't it work to set up the MX record for smtp.example.com and the an A record for smtp.example.com pointing to the IP address of really.long.smtp.address.com – Steve Sep 7 '17 at 2:56
  • @Steve Not sure. You are on the right track. I would use CNAME. The caveat would be the SMTP sever. Many require knowing the domain name the service sits on and then you configure it for the domain names it answers for. It may be that the service requires an exact match for the domain name of the MX record. – closetnoc Sep 7 '17 at 4:41
  • @PaulF See my comment above. I do not see the purpose of doing what you suggest. I would not do it. Cheers!! – closetnoc Sep 7 '17 at 4:42

Browse other questions tagged or ask your own question.