Author Topic: Can receive but cannot send emails from my cwp server  (Read 504 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can receive but cannot send emails from my cwp server
« on: August 02, 2024, 10:57:40 AM »
Hi,

I can recieve emails from everywhere normally, but when I try to send to any other email which is not on my IP, it never reaches. I digged through my errors and I got the following;

Code: [Select]
Aug 2 10:49:02 vps postfix/smtp[1589]: connect to al-ip4-mx-vip1.prodigy.net[144.160.235.143]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1593]: connect to pkvw-mx.msg.pkvw.co.charter.net[47.43.26.7]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1593]: 359A0322028: to=, relay=none, delay=95384, delays=95354/0.72/30/0, dsn=4.4.1, status=deferred (connect to pkvw-mx.msg.pkvw.co.charter.net[47.43.26.7]:25: Connection timed out)
Aug 2 10:49:02 vps postfix/smtp[1587]: connect to ASPMX.L.GOOGLE.COM[142.250.27.27]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1587]: connect to ASPMX.L.GOOGLE.COM[2a00:1450:4025:401::1a]:25: Network is unreachable
Aug 2 10:49:02 vps postfix/smtp[1595]: connect to zimbra.sai.co.za[41.216.132.146]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1592]: connect to mx2.naver.com[125.209.238.137]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1594]: connect to mail.protonmail.ch[185.205.70.128]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1595]: 359A0322028: to=, relay=none, delay=95384, delays=95354/0.75/30/0, dsn=4.4.1, status=deferred (connect to zimbra.sai.co.za[41.216.132.146]:25: Connection timed out)
Aug 2 10:49:02 vps postfix/smtp[1584]: connect to entel-cl.mail.protection.outlook.com[52.101.11.3]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1590]: connect to haia-com.mail.protection.outlook.com[52.101.194.0]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1597]: connect to ASPMX.L.GOOGLE.COM[142.250.27.27]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1597]: connect to ASPMX.L.GOOGLE.COM[2a00:1450:4025:401::1a]:25: Network is unreachable
Aug 2 10:49:02 vps postfix/smtp[1598]: connect to ASPMX.L.GOOGLE.COM[142.250.27.27]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1598]: connect to ASPMX.L.GOOGLE.COM[2a00:1450:4025:401::1a]:25: Network is unreachable
Aug 2 10:49:02 vps postfix/smtp[1596]: connect to startours-co-uk.mail.protection.outlook.com[52.101.99.2]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1613]: connect to udd-cl.mail.protection.outlook.com[52.101.40.1]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1614]: connect to eur.olc.protection.outlook.com[52.101.68.4]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1603]: connect to enap-cl.mail.protection.outlook.com[52.101.8.46]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1602]: connect to aspmx.l.google.com[142.250.27.27]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1602]: connect to aspmx.l.google.com[2a00:1450:4025:401::1a]:25: Network is unreachable
Aug 2 10:49:02 vps postfix/smtp[1611]: connect to surnet-cl.mail.protection.outlook.com[52.101.10.10]:25: Connection timed out
Aug 2 10:49:02 vps postfix/smtp[1612]: connect to uantof-cl.mail.protection.outlook.com[52.101.10.14]:25: Connection timed out

I know it has a lot to do with postfix but I have no idea of howto resolve this.

Please, can anyone help me out on this, please?

Offline
*****
Re: Can receive but cannot send emails from my cwp server
« Reply #1 on: August 02, 2024, 11:01:43 AM »
Could you please advise of the following:

What distro are you are you running CWP on?

Public or NAT?


Google & M$ both require correct mail server DNS entries.
Check your DKIM, SPF, DMARC records.
If they are incorrect, your get blocked.

Also check your mail server IP at: https://multirbl.valli.org/lookup/

Here is also a good mail tester: https://www.mail-tester.com/

Offline
*
Re: Can receive but cannot send emails from my cwp server
« Reply #2 on: August 02, 2024, 11:34:40 AM »
Thanks for the quick response.

This CWP is on a VPS from contabo. i have also checked the dkim, spf, and dmarc records using even the links you just provided and everything seems to be find, don't find any errors.

Yet problem persists.

Offline
*****
Re: Can receive but cannot send emails from my cwp server
« Reply #3 on: August 02, 2024, 11:39:52 AM »
Make sure the hostname Reverse DNS is also setup correctly at Contabo.
A mismatch can cause problems.

Allot of their IP's are blacklisted, just like Vultr & DO.

Google & M$ started new filters a couple months ago to stop spammers, and if everything isn't perfect you'll get rejected.

If you want, PM me the hostname & base IP and I can do some checks for you.

Offline
*
Re: Can receive but cannot send emails from my cwp server
« Reply #4 on: August 02, 2024, 12:04:34 PM »
Hostname: vps.klarys.net
 IP: 102.176.65.49

Offline
*
Re: Can receive but cannot send emails from my cwp server
« Reply #5 on: August 02, 2024, 12:16:12 PM »
my server IP: 194.163.155.218

Offline
*****
Re: Can receive but cannot send emails from my cwp server
« Reply #6 on: August 02, 2024, 01:16:48 PM »
102.176.65.49 is listed on some major spam RBL's. Including Spamhaus & Barracuda Reputation Block List.
https://multirbl.valli.org/lookup/102.176.65.49.html

IP also comes back to Africa and isn't a Contabo IP.

---

194.163.155.218
Is @ Contabo, but the Reverse DNS is not setup.
Currently comes back to vmi1002297.contaboserver.net and not the hostname you listed above.
Also fails RBL checks due to that.

Hostname does not have DKIM, SPF, DMARC entries found either.

https://dnschecker.org/all-dns-records-of-domain.php?query=vps.klarys.net&rtype=ALL&dns=google

With all the above, it's no wonder emails are being rejected.

Look at the DNS entries in CWP, and then enter them at the DNS servers you are using, which look to be Contabo's for vps.klarys.net

Then after you have all the entries created, give them 24 hours to propagate, and run a test email to the link I posted above.

Offline
*
Re: Can receive but cannot send emails from my cwp server
« Reply #7 on: August 02, 2024, 02:25:07 PM »
Thank you so much.

Please one more thing, can you help me with any tutorial since I don't  to do any blind trial with this, I will be most grateful.


Offline
*****
Re: Can receive but cannot send emails from my cwp server
« Reply #8 on: August 02, 2024, 03:37:56 PM »
Under DNS Functions -> List DNS Zones -> Click on 'Edit Records' next to the domain name.

Then just copy the entries for DKIM, SPF, DMARC to Contabo's DNS.