My server sends e-mail, but does not receive e-mail

My server sends e-mail, but does not receive e-mail, it was working normally until days ago, I use Exim4 with Sendgrid.

I’ve already validated everything, and apparently it’s ok. I saw something about blocking, can someone help me?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey, I solved the problem and I’m going to share it here.

It was an MX record that was duplicated and with wrong information, causing the email server to get lost.

I removed the MX and after 20 hours + - started receiving emails again. I thank to help in any way, thank you very much.

Site Moderator
Site Moderator badge
February 26, 2020

Hello, @90lteixeira

Can you find any references for the emails that are coming to your server, e.g if you send an email from to any of your email accounts can you see any logs for the email coming from

If you’ve sent some test email from any email provider like Gmail, Hotmail or from any custom domain have you received any bounce back emails?

Keep in mind that issues with the mail delivery can happen due to many reasons, stuck/non responsive service, out of disk space and etc. What you can do is to make sure your server is not running out of disk space or inodes and also to restart Exim and see the exim panic log as well. The location of this should be:

/var/log/exim_paniclog or /var/log/exim/paniclog

Let me know how it goes.

Regards, Alex

Site Moderator
Site Moderator badge
February 25, 2020

Hello, @90lteixeira

If you are not receiving email from any sender to any of the mailboxes hosted on your droplet/server you can start by checking the MX records for your domain/s. This is a starting point in the troubleshooting process and if everything is alright you can continue with your investigation. If you can find some missing/incorrect MX records you need to adjust them and wait for the DNS to propagate, this can take up to 48 hours in order to fully update, however it usually happens a lot faster.

Since you’re using Exim the next step in the troubleshooting process should be to examine the exim main log and see if there are some logged errors. You’ve mentioned that you saw some references for blocked messages or similar so what you can do is to share this information with us so we can check it and see if there is something which is causing this or if it’s something temporary or irrelevant to the main problem.

You can grep for a specific domain name or address/mailbox in the exim log using the following command:

grep "domain/mailbox" /var/log/exim_mainlog

Keep in mind that the location of the exim main log can be different according to your setup. You can also check Exim’s official documentation for:

Let us know how it goes.

Regards, Alex

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel