Author Topic: I can send and receive messages via the web, but it doesn't work through the...  (Read 1466 times)

0 Members and 4 Guests are viewing this topic.

Offline
***
Hi,

The server use Alma Linux 9, I have completed all the settings, including SSL, and created an email account, I can send and receive messages via the web, but it doesn't work through the email client when I use the corresponding SSL ports, where am I wrong?

Tnaks in advance?

BR
Venty

Offline
***
Do you get some errors when you try to send/receive emails using local mail application ? If not then check the mail logs to investigate what happens with your incoming/outgoing emails.

Offline
***
Do you get some errors when you try to send/receive emails using local mail application ? If not then check the mail logs to investigate what happens with your incoming/outgoing emails.

Hi,

error I get:

ERROR:SMTP Connect host=mail.vc.com error=Error connecting with SSL.
error:00000001:lib(0):func(0):reason(1)

BR
Venty


Offline
*****
Def. an encryption problem -- not able to establish a secure connection. Is your Roundcube still set for defaults? Is it checking with SSL/TLS or STARTTLS? Roundcube checks the localhost, but mail ports may not be open for remote connections. What CSF ports do you have open for mail? Incoming: 143, 993, 995? Outgoing: 25, 465, 587?

Offline
***
Def. an encryption problem -- not able to establish a secure connection. Is your Roundcube still set for defaults? Is it checking with SSL/TLS or STARTTLS? Roundcube checks the localhost, but mail ports may not be open for remote connections. What CSF ports do you have open for mail? Incoming: 143, 993, 995? Outgoing: 25, 465, 587?

Hi,

ports is OK...

rDNS/PTR = FAILED...?

BR
Venty

Offline
***
You have another thread associated with the RDNS/PTR problem. Please continue conversation through:
https://forum.centos-webpanel.com/problems-on-other-redhat-linux-servers/rdnsptr-failed-14517/msg50048
to avoid confusion.

Offline
***
Hi,

I use Alma linux 9.5 and CWP…

I have completed all the settings, including SSL, and created an email account, I can send and receive messages via the web (Roundcube Webmail) and port 25 and 110, but it doesn't work through the email client when I use the corresponding SSL ports, where am I wrong?

When setting up email to work with SSL, I get this error:

https://prnt.sc/fNf8nEMXT1N0

Other:

I deleted a user  and creating a new user several times due to some problems and now we get to:

rDNS/PTR = FAILED, check with your hosting provider! FAILED

I have talked to my provider, this rDNS worked before when I used Centos 7, now at the beginning with AL 9, but when deleting and creating a new user it was lost...at that moment I noticed it...

Thanks in advance!

BR

Venty

Offline
***
Hi,

I fixed the rDNS/PTR record and it's OK...

I have completed all the settings, including SSL, and created an email account, I can send and receive messages via the web (Roundcube Webmail) and port 25 and 110, but it doesn't work through the email client when I use the corresponding SSL ports, where am I wrong?

When setting up email to work with SSL, I get this error:

ERROR:SMTP Connect host=mail.xxxxxxxx.com error=Error connecting with SSL.
error:00000001:lib(0):func(0):reason(1)


Thanks in advance!

BR

Venty

Offline
*****
Does your SSL have the mail sub-domain added?

Most mail clients like Thunderbird will automatically contact the email server for the correct settings.

The error is it can't connect to the SMTP server via SSL.
Make sure ports 486 and 587 are open, as these are the SMTP SSL ports. Port 25 is Non-SSL.

Offline
***
Does your SSL have the mail sub-domain added?

Most mail clients like Thunderbird will automatically contact the email server for the correct settings.

The error is it can't connect to the SMTP server via SSL.
Make sure ports 486 and 587 are open, as these are the SMTP SSL ports. Port 25 is Non-SSL.

Hi,

1. Yes, there is a mail subdomain added...
2. I mention port 25 because when I didn't select SSL for the mail client, I send through it without problems. and accordingly I receive through port 110...
3. For SSL, my port is 465 and it is open...

Does the CWP have a cache?

BR
Venty

Offline
*****
Various caching schemes are in play, but shouldn't affect anything in this case.

Have you tried testing your server with telnet and see if you can get through the firewall and services are listening (postfix)?
Code: [Select]
telnet your.domain.com 25
telnet your.domain.com 465
telnet your.domain.com 587

Offline
*****
AlmaLinux's default install doesn't have telnet.

But you can try:

 
Code: [Select]
nc -vz google.com 80Once confirmed you can contact google, and nc is working.

From AlmaLinux 9.5:
Quote
Ncat: Version 7.92 ( https://nmap.org/ncat )
Ncat: Connected to 2607:f8b0:4009:81b::200e:80.
Ncat: 0 bytes sent, 0 bytes received in 0.02 seconds.

Now to test your server:
Code: [Select]
nc -vz domain.name 25
Code: [Select]
nc -vz domain.name 465
Code: [Select]
nc -vz domain.name 587

Offline
***
Various caching schemes are in play, but shouldn't affect anything in this case.

Have you tried testing your server with telnet and see if you can get through the firewall and services are listening (postfix)?
Code: [Select]
telnet your.domain.com 25
telnet your.domain.com 465
telnet your.domain.com 587

Hi,

Thanks, all ports connect with telnet, but only on 25 and 587 does Postfix return ESMTP, on 465 it returns nothing...

Ncat I could not access it....
nc -vz google.com 80 - it returned me -bash: nc: command not found

BR
Venty
« Last Edit: January 24, 2025, 08:56:43 AM by venty »

Offline
*****
Install netmap & netcat and try again.

Check your firewall to verify port 465 is open.

Offline
*****
AlmaLinux's default install doesn't have telnet.
telnet testing is done FROM your computer (a proper desktop linux? macOS?) TO your AlmaLinux server. No need to install it on AlmaLinux.