I can send and receive messages via the web, but it doesn't work through the...

Started by venty, January 15, 2025, 07:10:19 AM

Previous topic - Next topic

venty

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

cyberspace

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.

venty

Quote from: cyberspace on January 16, 2025, 12:44:42 AM
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


overseer

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?

venty

Quote from: overseer on January 18, 2025, 06:41:14 PM
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


venty

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

venty

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

Starburst

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.

venty

Quote from: Starburst on January 23, 2025, 06:13:48 PM
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

overseer

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)?

telnet your.domain.com 25
telnet your.domain.com 465
telnet your.domain.com 587

Starburst

AlmaLinux's default install doesn't have telnet.

But you can try:

nc -vz google.com 80
Once confirmed you can contact google, and nc is working.

From AlmaLinux 9.5:
QuoteNcat: 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:
nc -vz domain.name 25

nc -vz domain.name 465

nc -vz domain.name 587

venty

Quote from: overseer on January 23, 2025, 10:10:03 PM
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)?

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

Starburst

Install netmap & netcat and try again.

Check your firewall to verify port 465 is open.

overseer

Quote from: Starburst on January 24, 2025, 02:46:17 AM
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.