I have a mail server in local with a url mail.msd.ci when users type mail.msd.ci they fall on the mikrotik interface instead of falling on the mail server interface.
but outside the local network it works well
Search here on the forum for "hairpin NAT" and check your dst-nat rules.