I pointed my site to Pequi, and my email stopped working


When you use the Peqi service, it is necessary to point the domain to the IPs provided by us. However, an improper configuration of DNS records can result in email service interruption. This usually occurs due to a bad practice where the MX (Mail Exchange) entry is pointed directly to the main domain.

Why does this happen?

When you change your domain's IP and point it to Peqi while keeping the MX entry configured to point directly to the main domain (e.g., domain.com), it will cause email servers to no longer locate the correct server for message delivery, since to use Peqi it is necessary to remove the real IP of your server/hosting from your domain's entry and add Peqi's IPs.

Bad practice, why?

Pointing the MX record to the main domain (domain.com) is considered a bad practice for several reasons:

IP changes: As mentioned, your domain's IPs can change, which can result in losing email service connectivity.
Impact on email delivery: Email servers cannot find the correct server for delivery, resulting in undelivered or delayed emails.
Dependence on a single point: Pointing to the main domain creates a single point of failure that can fail if any changes occur in the main domain.

How can I solve this type of problem?

To avoid these problems and ensure that your email service works without interruptions when using Peqi (if the MX entry is pointed to the main domain), follow these steps to create a specific subdomain for the email service (we will use mail.domain.com in this example) and adjust the MX record:

1. Access the DNS management panel
Log into the administration panel of your hosting provider or DNS service.

2. Create an A entry for the subdomain mail.domain.com
Add a new A entry in the DNS.
Name/Host: mail
Type: A
Value: The IP address of the email server (not Peqi's IPs, but the email server's IP/usually the real IP of your hosting that was configured before the change).

3. Change the MX record
Look for the MX entry and adjust where the value domain.com is to mail.domain.com

If you have any questions, contact your hosting company.

Related Articles