Hello all,
We had moved our emails from bluehost imap server to office 365 few years ago now. We have a WordPress website and we setup smtp address on it. But whenever we send a test emails from that it lands in old imap server. But when I do a test from my outlook using a different office 365 tenant it lands in office 365 email which is what we want.
Any one knows what could be it? Checked the DNS A records and it is on cloudflare.
A mail was pointing to old hosting, I have deleted 2 days back
MX records points to office 365

2 Spice ups

The SMTP plugin on your website has to get its DNS from somewhere.
That server has an old A record.
Check with your web host.

1 Spice up
  1. Make sure your SMTP plugin on WordPress is correctly configured to use the Office 365 SMTP settings. Double-check the SMTP server, port, encryption method, and authentication details. For Office 365, the SMTP server should be smtp.office365.com, port 587, and encryption method STARTTLS.
  2. Since you recently deleted the old A record, it may take some time for the DNS change to fully propagate. Sometimes it can take up to 48 hours. You can use an online tool like DNS Checker to verify that the DNS change has propagated globally.
  3. Clear any caches that may hold old DNS information. This includes your browser cache, WordPress cache (if you use a caching plugin), and any server-side caches.
  4. Verify that the email routing settings in your hosting control panel are set to use Office 365. Sometimes hosting providers have specific settings for email routing that need to be updated.
  5. Make sure your SPF and DKIM records are correctly set up for Office 365. These records help with email authentication and can improve deliverability. You can find the necessary settings in the Office 365 Admin Center.
  6. Check the logs for the SMTP plugin to see if there are any errors or messages that might indicate why email is being sent to the old server. This can provide clues to misconfiguration or problems.
1 Spice up