>     ERROR: Error connecting to SMTP server "10.20.30.11:25".Server error:
> (0)
>
> I have enabled enhanced logging for both php-fpm and postfix, Here are
> some logs entries:
>
> [root@kevla postfix]# tail /var/log/php-fpm/www-error.log
> [09-Jan-2026 21:07:20 America/New_York] PHP Warning:  fsockopen(): Failed
> to enable crypto in /usr/share/squirrelmail/src/configtest.php
> on line 405
> [09-Jan-2026 21:07:20 America/New_York] PHP Warning:  fsockopen(): Unable
> to connect to ssl://x.x.x.x:25 (Unknown error) in
> /usr/share/squirrelmail/src/configtest.php on line 405
> [10-Jan-2026 12:54:20 America/New_York] PHP Warning:  fsockopen(): SSL
> operation failed with code 1. OpenSSL Error messages:
> error:0A00010B:SSL routines::wrong version number in
> /usr/share/squirrelmail/src/configtest.php on line 405
> [10-Jan-2026 12:54:20 America/New_York] PHP Warning:  fsockopen(): Failed
> to enable crypto in /usr/share/squirrelmail/src/configtest.php
> on line 405
> [10-Jan-2026 12:54:20 America/New_York] PHP Warning:  fsockopen(): Unable
> to connect to ssl://x.x.x.x:25 (Unknown error) in
> /usr/share/squirrelmail/src/configtest.php on line 405
> [10-Jan-2026 13:08:03 America/New_York] PHP Warning:  fsockopen(): SSL
> operation failed with code 1. OpenSSL Error messages:
> error:0A00010B:SSL routines::wrong version number in
> /usr/share/squirrelmail/src/configtest.php on line 405
> [10-Jan-2026 13:08:03 America/New_York] PHP Warning:  fsockopen(): Failed
> to enable crypto in /usr/share/squirrelmail/src/configtest.php
> on line 405
> [10-Jan-2026 13:08:03 America/New_York] PHP Warning:  fsockopen(): Unable
> to connect to ssl://x.x.x.x:25 (Unknown error) in
> /usr/share/squirrelmail/src/configtest.php on line 405
>
> more /var/log/maillog |grep warning
> Jan 10 16:59:57 rocky postfix/smtpd[416626]: dict_lookup: helpful_warnings
> = (notfound)
> Jan 10 16:59:57 rocky postfix/smtpd[416626]: dict_update: helpful_warnings
> = yes
> Jan 10 16:59:57 rocky postfix/smtpd[416626]: warning: run-time library vs.
> compile-time header version mismatch: OpenSSL 3.5.0 may not be
> compatible with OpenSSL 3.2.0
> Jan 10 17:05:03 rocky postfix/smtpd[417102]: dict_lookup: helpful_warnings
> = (notfound)
> Jan 10 17:05:03 rocky postfix/smtpd[417102]: dict_update: helpful_warnings
> = yes
> Jan 10 17:05:03 rocky postfix/smtpd[417105]: dict_lookup: helpful_warnings
> = (notfound)
> Jan 10 17:05:03 rocky postfix/smtpd[417105]: dict_update: helpful_warnings
> = yes
> Jan 10 17:05:03 rocky postfix/smtpd[417102]: warning: run-time library vs.
> compile-time header version mismatch: OpenSSL 3.5.0 may not be
> compatible with OpenSSL 3.2.0
> Jan 10 17:05:03 rocky postfix/smtps/smtpd[417105]: warning: run-time
> library vs. compile-time header version mismatch: OpenSSL 3.5.0 may
> not be compatible with OpenSSL 3.2.0

Those errors hint at cert or cipher mismatch, which would require more
detailed investigation on your part. You can always connect by hand using
openssl s_client and see more details of the exchange. Or sniff it with
ngrep or the likes.

On the other hand, it is quite possible that you have SquirrelMail set to
connect over TLS immediately, and on port 25, you'll need to use STARTTLS.
See $use_smtp_tls in SquirrelMail's config.php or re-run conf.pl ... it's
still better to run a separate Postfix listener for picking up locally
submitted mail, because it should be handled differently.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php




-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to