Problem sending email XenForo

HelloHello, I have a problem after connecting NS records. XenForo does not send email to the recipient’s address.

Swift_TransportException: Email to [email protected] failed: Connection could not be established with host :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known src/vendor/swiftmailer/ swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261

Before enabling NS records everything worked fine


Thank you for asking and providing screenshots.

I am sorry to hear you are experiencing an issue with receiving and/or sending e-mails while using Coudflare for your domain name.

Usually, the MX record should point to a hostname such as mail , and the A (or CNAME ) type record for that hostname should be set to :grey: (DNS Only).
→ from the screenshot, your’s CNAME is :orange: and even if you make it :grey: it still points to a proxied :orange: hostname (incorrect)

Cloudflare’s default configuration only allows proxying of HTTP traffic and will break mail traffic.

Kindly do as follows:

  1. Remove the CNAME mail record.
  2. Add new record A mail and point it to your hosting/email IP address and make sure this one is set to :grey: (DNS-only).
  3. Check for MX record and make sure MX record has got the target
  4. In your e-mail client or Web app, for sending/receiving server (MS Outlook, Mozilla Thunderbird, etc.) make sure to use hostname

May I suggest checking below article if your e-mail records (usually the A mail and the MX record) are configured properly while you are using Cloudflare for your domain name:

I would also recommend looking into the below article due to further prevention of your e-mails being marked as a SPAM at the recipient’s side:

Nevertheless, using online tools on the links below you could test and troubleshoot more what is going on with your e-mails:

Otherwise, you might have to troubleshoot if the port like 110/143/993/995 and 25/465/587 is open at your hosting provider and contact hosting provider to check this for you. If they are not open, then I am afraid you may not be able to receive any emails from using that web hosting/email provider.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.