Email is neither received nor sent.

Started by Kvakunoff, April 22, 2024, 09:48:43 PM

Previous topic - Next topic

Kvakunoff

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

overseer

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:
v=spf1 ip4:192.0.2.0 include:example.com -all

https://www.cloudflare.com/learning/dns/dns-records/dns-spf-record/

Kvakunoff

#2
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


Kvakunoff

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.

Starburst

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.

Kvakunoff

Noting else works.
I watch tons of videos, noting helps :(

Starburst

Quote from: Kvakunoff on April 23, 2024, 12:21:12 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.

Kvakunoff

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.

Kvakunoff

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.

Starburst

Quote from: Kvakunoff 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.

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.

Kvakunoff

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.


Starburst

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.

Kvakunoff

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.