I am not receiving messages through Roundcube

algito

Verified User
Joined
Dec 9, 2022
Messages
9
hello, I have the following problem in a new server that I am using in Contabo with the Debian 11 system, where I already configured the PTR and I can send emails, but I cannot receive messages.


Screenshot_3.jpg

I send the message from Gmail to the email [email protected] of my web server and they don't arrive

But also gmail does not reject messages
 
Picture only shows outgoing mail.
I send the message from Gmail to the email [email protected] of my web server and they don't arrive
So is that [email protected] a real existing email address? Because normally the noreply addresses are non existant.

Check your /var/log/exim.log to see what is going on.

Seems your mail to root is not send either, you can better fix that, it can contain important messages sometimes. If you don't want to receive CSF/LFD mails it's better to just disable these mails in CSF/LFD.

P.s. can't help you without your domain name to be able to see whats going on.
Might also be that Contabo closed your port 25 incoming. Check that first.
 
The email [email protected] if it exists

Screenshot_8.jpg

The port on my vps 25 is open

Screenshot_9.jpg


In ConfigServer Security & Firewall - csf the IPv4 also seems to me to be correct....Unless I'm wrong hehe

Screenshot_6.jpg

The log file is not found at this address /var/log/exim.log

Screenshot_7.jpg
 
I don't think Contabo will block incoming port 25 to their servers. They may block outgoing mail from their servers on port 25. But nothing really to gain by blocking incoming port 25. But I suppose it's possible.

Are you just testing this with your gmail address? You're trying to send an email from your Gmail account to the noreply address on your server?

Are you sure the domain name is resolving to your server?

Are you sure the MX records for that domain name are pointing to your server?

Have you tried sending from another source to the noreply address on your server?

Ideally, if you have a second server, you'd test sending from that server. While it may sound stupid to say "are you sure Gmail is sending out the message?" the fact is, nobody really knows - except for Gmail. What errors or issues is Gmail having in reaching your server? You'll never find out from a "too big to fail" company like Gmail.

Testing from another server where you can actually see the message going out, that's going to provide a wealth of diagnostic information.
 
Yea... using Cloudflare always seems fun... until you have to diagnose something.

I'm not a fan of Cloudflare.

The MX record for (what I assume to be) your domain name is resolving to a CNAME (and an A) record. Hostnames in an MX record have to resolve to an A record (i.e. an IP address).

Not saying that this is THE problem. But it's certainly not helping.
 
Port 25 incoming at least is open.
You also get an SSL issue as I can see. I would start using a normal hostname for your VPS.

The MX record -will- cause issues receiving mail because it's not only wrong using a cname but it doesn't point to the server correctly.
It should point to your correct hostname or your mailserver.
Now it points to _dc-mx.d9daf2361da4.yourdomain.com which is never an FQDN because your hostname now starts with "vmi" and next to that a hostname will never start with a _ character and you don't own the contabo.net domain.

So I would suggest the following:
1.) Fix your hostname to something like server.yourdomain.com (or keep but look below)
2.) Create a ssl certificate for that hostname
3.) Fix your MX address to point to you domain.com and not your hostname
4.) Fix your PTR record to point to your hostname.
5.) Advise (but not required): Fix your root mail so you can receive root mail, so you get mail if things go wrong.

Then things should start working.

You can also keep the contabo.net hostname like it's now, but also in that case you have to point your PTR record to your current hostname.
 
Just seen your PTR is set to server2023.yourdomain.com but in that case, you have to change your vmixxxx-contabo.net hostname to that hostname too.
 
It seemed strange to me, that in Debian and ubuntu the host's subdomain is not recognized and now that I recently tried Centos 7 if it works perfectly...

Why do I mark this information as DEFERRED?
Screenshot_10.jpg
Any way to fix this hehe, thank you very much.
 
Last edited:
Why do I mark this information as DEFERRED?
Deferred means it's paused because it could not be sent to root.

So if you want that fixed it's easy.

Go via SSH as root to the /etc/aliases file and edit that.
At the bottom you will see:

#root: marc
change to
root: [email protected]
ofcourse fill in the email address where you want to receive the root e-mails.
and restart exim:
service exim restart

that would fix the deferred mails for root.

If you get too many mails from CSF, you can edit csf.conf (or probably via custombuild too) and disable the mail notifications you do not want to receive.

If the above does not work (happens on some Debian or alike systems sometimes) then go to /root and create a file called .forward (mind the dot in front) and put your e-mail address in there.
 
Back
Top