Author Topic: Can not send E-mail unless gmail  (Read 151 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Can not send E-mail unless gmail
« on: December 11, 2024, 02:24:07 PM »
Hello, i have a problem that i can not send any e-mail to any mail server. or temp-mail or outlook or live.com

i can receive but can not send.

i only can send and receive from Gmail.




Offline
***
Re: Can not send E-mail unless gmail
« Reply #1 on: December 11, 2024, 04:31:28 PM »
Disable csf firewall, make sure there are no blocked IPs and routing to the hosts (IPs) listed in your post is fine. Try to connect to the port 25 of the hosts manually using "telnet" to diagnose the problem.

Offline
*****
Re: Can not send E-mail unless gmail
« Reply #2 on: December 11, 2024, 08:56:49 PM »
Agreed make sure port 25 is open, and allowed by your provider. Most providers now a days have it block to stop spammers.

What OS are you using AlmaLinux 8 or 9?

Are you sending a test email for the CLI?

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

Offline
*
Re: Can not send E-mail unless gmail
« Reply #3 on: December 12, 2024, 11:01:19 AM »
i have disabled the firewall and still the same problem

i tried telnet these IPs and got connection refused or timeout

When i connect to my other server with port 465 , it connects.



i run: AlmaLinux release 8.10

i got this log from /var/mailog

Code: [Select]
Dec 12 11:54:40 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.8.45]:25: Connection timed out
Dec 12 11:55:10 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.42.11]:25: Connection timed out
Dec 12 11:55:40 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.73.3]:25: Connection timed out
Dec 12 11:55:40 panel postfix/smtp[2808727]: 06E5A1006E1B: to=<leebrimlow@outlook.com>, relay=none, delay=76060, delays=75940/0.1/120/0, dsn=4.4.1, status=deferred (connect to outlook-com.olc.protection.outlook.com[52.101.73.3]:25: Connection timed out)
Dec 12 11:56:23 panel postfix/smtpd[2809609]: connect from localhost[127.0.0.1]
Dec 12 11:56:23 panel postfix/smtpd[2809609]: 75BAD1016739: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=mahmoud@forsanhotels.sa
Dec 12 11:56:23 panel postfix/cleanup[2809612]: 75BAD1016739: message-id=<0827005e3c05c904360e2a743574a2a1@forsanhotels.sa>
Dec 12 11:56:23 panel opendkim[2806225]: 75BAD1016739: DKIM-Signature field added (s=default, d=forsanhotels.sa)
Dec 12 11:56:23 panel postfix/qmgr[2806220]: 75BAD1016739: from=<mahmoud@forsanhotels.sa>, size=603, nrcpt=1 (queue active)
Dec 12 11:56:23 panel postfix/smtpd[2809609]: disconnect from localhost[127.0.0.1] ehlo=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=6
Dec 12 11:56:53 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.68.9]:25: Connection timed out
Dec 12 11:56:54 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.41.57]:25: Connection refused
Dec 12 11:56:55 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.11.16]:25: Connection refused
Dec 12 11:56:56 panel postfix/smtp[2808727]: connect to outlook-com.olc.protection.outlook.com[52.101.68.28]:25: Connection refused
Dec 12 11:56:56 panel postfix/smtp[2808727]: 75BAD1016739: to=<leebrimlow@outlook.com>, relay=none, delay=33, delays=0.14/0.01/33/0, dsn=4.4.1, status=deferred (connect to outlook-com.olc.protection.outlook.com[52.101.68.28]:25: Connection refused)

Offline
***
Re: Can not send E-mail unless gmail
« Reply #4 on: December 12, 2024, 11:09:14 AM »
It looks like you try to connect to the remote servers from LAN. Is my guess correct ? If so then contact your ISP and ask to unblock the port 25 for you.

Offline
*
Re: Can not send E-mail unless gmail
« Reply #5 on: December 12, 2024, 11:53:28 AM »
No, not at all. i just want to send receive E-mails  :'( , the connection to outlook or any other server is refused.

it only accept receive and send E-mails to Gmail.

Offline
***
Re: Can not send E-mail unless gmail
« Reply #6 on: December 12, 2024, 01:52:27 PM »
Pal, you are experiencing the problem not associated with CWP at all because you disabled firewall but it hasn't solved the problem. You can't establish the connection from the command prompt (shell) either. Therefore it means the problem is caused by you network settings or your ISP.