after adding rewrite rule to OLS site opens but dns cant be detected

1- nameserver set to ns1,ns2.myhostname.com
2- addon domain set to same nameserver as above, things were ok except for SOA primary name server but site was detected normal
3- rewrite rule was added to OLS virtualhost of the addon domain, the site opened in browser normally but when run mxtool i get unable to resolve dns or loop detected
4- my emails are sending from mail.addondomain.com with no issue
5- no emails are received

== Does the rewrite configuration in OLS server level affects the DNS?
== Is the configuration to postfix in case addon domain was added?

it was ok after rebooting the server … 500 error gone after editing wp_config adding www to define('DOMAIN_CURRENT_SITE

but still reciving email issue unsolved