Author Topic: Email is neither received nor sent.  (Read 2168 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Email is neither received nor sent.
« on: April 22, 2024, 09:48:43 PM »
Hello,
I have been struggling for almost a month to solve the email problem.
It neither receives nor sends emails.
i use Cloudflare as DNS.
Routing is disabled in Cloudflare.
I need emails to work on admin@djridhaboss.com.
I use the default Roundcube.

Please tell me the errors and how to solve the problem.

Please tell me what to change or what to add and where to do it.
Installed RainLoop Webmail on new subdomain, https://email.djridhaboss.com same problem.
Sorry for the question, I'm new to all this and it's very hard for me.

These are DNS i have added
https://gyazo.com/a52aa63498c705bd2033ee449264e1fc
That is on the server
https://gyazo.com/c91897dd2c27295b2661ebdb2c07c6d1

Thanks in advance

Offline
*****
Re: Email is neither received nor sent.
« Reply #1 on: April 22, 2024, 10:27:45 PM »
Do you have valid rDNS / PTR record in place (provided by your hosting provider/ISP)?

Your SPF record doesn't look like complete, correct syntax; it should be more like this:
Code: [Select]
v=spf1 ip4:192.0.2.0 include:example.com -all
https://www.cloudflare.com/learning/dns/dns-records/dns-spf-record/

Offline
*
Re: Email is neither received nor sent.
« Reply #2 on: April 22, 2024, 10:43:01 PM »
Thanks for the replay.
I changed it to v=spf1 ip4:192.0.2.0 include:djridhaboss.com -all

Not work either.
I see the same error:
 Your message couldn't be delivered to admin@djridhaboss.com because the remote server is misconfigured. See technical details below for more information.

 554 5.7.1 : Relay access denied
« Last Edit: April 22, 2024, 10:46:21 PM by Kvakunoff »

Offline
*
Re: Email is neither received nor sent.
« Reply #3 on: April 22, 2024, 10:48:52 PM »

Offline
*
Re: Email is neither received nor sent.
« Reply #4 on: April 22, 2024, 10:54:35 PM »
I added this line.
v=spf1 mx a a:keanu.ns.cloudflare.com a:thea.ns.cloudflare.com -all

Now sending emails but not receiving the emails.

Offline
*****
Re: Email is neither received nor sent.
« Reply #5 on: April 23, 2024, 12:18:40 AM »
I never seen an email server run behind the Cloudflare proxy service before.

Usually this is only for websites, as email servers want to connect to/from the actual IP address.

Offline
*
Re: Email is neither received nor sent.
« Reply #6 on: April 23, 2024, 12:21:12 AM »
Noting else works.
I watch tons of videos, noting helps :(

Offline
*****
Re: Email is neither received nor sent.
« Reply #7 on: April 23, 2024, 12:27:16 AM »
Noting else works.
I watch tons of videos, noting helps :(

You will need to un-proxy mail.domainname.com
Or get a 2nd IP just for mail.domainname.com, if you don't want to expose the primary IP.

When the mailserver checks the PTR & rDNS it will fail, as Cloudflare's proxy DNS doesn't have any entries.
Also trying to use Cloudflare's NS servers in an MX will get your IP into trouble, as their system could see it as a spammer attack.

Also if you are using a NAT for a local network, that also makes things more complicated, as your ISP may not allow port 25 access.

Offline
*
Re: Email is neither received nor sent.
« Reply #8 on: April 23, 2024, 12:59:20 AM »
Thanks for replay.
I ask CONTABO support for answers, i use their server.
I removed the DNS records in Cloudflare.
Probably will write after i get more answers.

Noting more i can do.

Offline
*
Re: Email is neither received nor sent.
« Reply #9 on: April 23, 2024, 05:59:13 AM »
I found this not working, probably for that reason i can't edit, add or do anything.

htdocs/resources/admin/modules/zone editor.php is corrupt. in Unknown on line 0
the page is white, except left side panel.

i updated all modules and this happen.

Offline
*****
Re: Email is neither received nor sent.
« Reply #10 on: April 23, 2024, 09:36:41 PM »
Thanks for replay.
I ask CONTABO support for answers, i use their server.
I removed the DNS records in Cloudflare.
Probably will write after i get more answers.

Noting more i can do.

You can use Cloudflare, just not for email.

And create your hostname rDNS/PTR records at contabo.


I'm a little confused at your comment
Quote
i updated all modules and this happen.

All of the CWP modules are updated via dnf update or CWP itself via cron.

Offline
*
Re: Email is neither received nor sent.
« Reply #11 on: April 24, 2024, 02:27:59 AM »
Thanks for the reply and for helping.
For mods I will only show this even though I have upgraded 2 times so far. The result is the same.
https://gyazo.com/153ed892f6c1e70b01cf8182d893dab2


I can't find an option to upgrade this module manually.


Offline
*****
Re: Email is neither received nor sent.
« Reply #13 on: April 24, 2024, 05:57:48 PM »
The only thing I can think of is whatever 'module' you updated 'manually' wasn't compatible with CWP.

Without knowing what was done, it's hard to try & provide a possible solution (if any) to a corrupted system.

At this point, I would suggest starting with a clean system, and only use dnf & CWP to update modules automatically.

Offline
*
Re: Email is neither received nor sent.
« Reply #14 on: April 24, 2024, 07:29:15 PM »
I didn't upload any module, u just upgrade all modules that was old from yum manager,
Got message that there is old modules need to be upgraded. I did this from yum manager and that happen.

I don't know which module is this so i cant re-install it.