Author Topic: Can receive but not send emails out  (Read 1043 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can receive but not send emails out
« on: August 06, 2024, 01:15:09 PM »
Because of this particular issue I updgraded to AlmaLinux 9 on my contabo vps, because contabo removed centos 7.

Unfortunately, I still cannot send emails out. I've checked my dkim/spl/dmarc and they all are good from mxtools testing, but I just cannot send emails out.

I do applications that do a ot of automated mail sending to customers, so this is very vital to me.

Please  I really need help on this.

Looking forward to a lasting resolution to this problem.

Offline
*
Re: Can receive but not send emails out
« Reply #1 on: August 06, 2024, 02:17:38 PM »
Have you asked contabo if the block might be at their end?

Offline
*
Re: Can receive but not send emails out
« Reply #2 on: August 06, 2024, 03:26:03 PM »
They said no.

Offline
*
Re: Can receive but not send emails out
« Reply #3 on: August 06, 2024, 04:30:25 PM »
I did some digging and found out the following errors:

Code: [Select]
Aug 6 18:25:12 vps postfix/qmgr[3426]: 602DB505EFC: to=, orig_to=, relay=none, delay=52443, delays=52352/91/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)
Aug 6 18:25:12 vps postfix/qmgr[3426]: 686715058C0: to=, relay=none, delay=156335, delays=156244/91/0/0, dsn=4.3.0, status=deferred (mail transport unavailable)

Please can this help in finding the errors for a possible resolution.

Offline
*****
Re: Can receive but not send emails out
« Reply #4 on: August 06, 2024, 07:42:13 PM »
All providers block port 25 by default, including Contabo.

You have to contact their support to unblock that port with a valid reason, and not send out SPAM.

Or use a 3rd party to send email from the server like MailGun.

You can test if your outgoing is configured correctly.

See:
https://kb.starburstservices.com/tips-and-tricks/sending-test-email-in-almalinux-8-9-from-cli-using-s-nail/

Offline
*
Re: Can receive but not send emails out
« Reply #5 on: August 07, 2024, 07:01:51 AM »
I've even used your test and everything is OK. Port 25 is not blocked. With all the errors I'm getting with postfix, I'm inclined to believe that this is a CWP internal issue;

Code: [Select]
Aug 7 08:53:00 vps postfix/qmgr[1377]: 78D3550AAAA: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 70FFD50AAA8: from=, size=672, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 70FFD50AAA8: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 7CC7D50AAAB: from=, size=672, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 7CC7D50AAAB: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: A875650AAB5: from=, size=650, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: A875650AAB5: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AC3E250AAB6: from=, size=662, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AC3E250AAB6: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AD30C50A919: from=, size=1115, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AD30C50A919: to=, relay=none, delay=29966, delays=29966/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: A40D950AAB4: from=, size=628, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: A40D950AAB4: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AB1C950AA83: from=, size=1043, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: AB1C950AA83: to=, relay=none, delay=13015, delays=13015/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 695BC50AA99: from=, size=1081, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 695BC50AA99: to=, relay=none, delay=10399, delays=10399/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 6817650AAA6: from=, size=2429, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 6817650AAA6: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 6C89750AA9F: from=, size=623, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 6C89750AA9F: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4F81150AAA2: from=, size=25475, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4F81150AAA2: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4238C50AAA0: from=, size=23636, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4238C50AAA0: to=, relay=none, delay=10330, delays=10330/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4A49250AAA1: from=, size=15733, nrcpt=1 (queue active)
Aug 7 08:53:00 vps postfix/qmgr[1377]: 4A49250AAA1: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)
Aug 7 08:53:14 vps amavis[66468]: starting. /usr/sbin/amavisd at vps.server.net amavis-2.13.1 (20240304), Unicode aware, LANG="en_US.UTF-8"
Aug 7 08:53:14 vps amavis[66468]: perl=5.032001, user=, EUID: 986 (986); group=(), EGID: 983 983 (983 983)
Aug 7 08:53:14 vps amavis[66473]: (!)Net::Server: 2024/08/07-08:53:14 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address] at line 64 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm
Aug 7 08:53:53 vps postfix/smtpd[66516]: connect from localhost[127.0.0.1]
Aug 7 08:53:53 vps postfix/smtpd[66516]: disconnect from localhost[127.0.0.1] ehlo=1 quit=1 commands=2
Aug 7 08:54:45 vps amavis[66834]: starting. /usr/sbin/amavisd at vps.server.net amavis-2.13.1 (20240304), Unicode aware, LANG="en_US.UTF-8"
Aug 7 08:54:45 vps amavis[66834]: perl=5.032001, user=, EUID: 986 (986); group=(), EGID: 983 983 (983 983)
Aug 7 08:54:45 vps amavis[66839]: (!)Net::Server: 2024/08/07-08:54:45 Can't connect to TCP port 10024 on ::1 [Cannot assign requested address] at line 64 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm

Can anyone please help me out??

Offline
*
Re: Can receive but not send emails out
« Reply #6 on: August 07, 2024, 11:37:57 AM »
I've even used your test and everything is OK. Port 25 is not blocked. With all the errors I'm getting with postfix, I'm inclined to believe that this is a CWP internal issue;

Code: [Select]
Aug 7 08:53:00 vps postfix/qmgr[1377]: 78D3550AAAA: to=, relay=none, delay=10329, delays=10329/0/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)

Can anyone please help me out??

Code: [Select]
To mstatus=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.150.26]:25: Connection timed out)

 I'm a tad tired but it looks like you are trying to connect to alt2.gmail-smtp-in.l.google.com I'm guessing you have issues at Gmails end.
« Last Edit: August 07, 2024, 11:42:53 AM by BeZazz »

Offline
*****
Re: Can receive but not send emails out
« Reply #7 on: August 07, 2024, 01:45:07 PM »
Look like your IP or domain is temporarily blocked by Google.

What is the base IP and hostname?

You can try to send a test email to:
https://www.mail-tester.com/

And test your IP's and domain names at:
https://multirbl.valli.org/lookup/

Google became very strict about requiring all your DNS records to be setup correctly.
They actually have become just as bad as M$.

Offline
*****
Re: Can receive but not send emails out
« Reply #8 on: August 07, 2024, 08:04:15 PM »
Yes, they expect all the internet to bow the knee before them, instead of abiding by RFCs and best practices. I personally don't use any of their services yet I still have to tune my delivery setup for them, given the high number of Gmail users that my users try to send to.

Offline
*
Re: Can receive but not send emails out
« Reply #9 on: August 08, 2024, 08:19:45 AM »
Test on https://www.mail-tester.com/ failed.

I have to say that I'm more of a programmer than an admin so very novice on these things.

Yet I really want this solved. I am desperately looking for a solution here. 

Offline
*****
Re: Can receive but not send emails out
« Reply #10 on: August 08, 2024, 05:47:17 PM »
If that mail test failed, it would have told you what failed.

More than likely your DNS entries are missing or incorrect.

Offline
*
Re: Can receive but not send emails out
« Reply #11 on: August 08, 2024, 10:07:36 PM »
This is the result I got:

Number 1 reason for this page
Your email client, plugin or extension said "sent", and it sure did. But your email got stopped just after, and never got sent.
Why? Your SMTP or web host is probably blocking your emails. Quite common. Get in touch with them now to find out.


Offline
*
Re: Can receive but not send emails out
« Reply #12 on: August 09, 2024, 02:50:57 AM »
From what I can workout, there appears to missing mx records. (that is getting info from previous posts of yours)

What domain/IP is your email setup on?

Offline
*
Re: Can receive but not send emails out
« Reply #13 on: August 09, 2024, 06:34:13 AM »
klarys.com

Offline
*
Re: Can receive but not send emails out
« Reply #14 on: August 09, 2024, 07:14:25 AM »
From what I can tell you have the
PTR for vps.klarys.net set to 194.163.155.218
but your mail server is using
mail.klarys.com
which has no Reverse DNS setup.