I have two servers, both running Ubuntu 21.04. I have Postfix (v3.5.6) installed on one server and MariaDB (v10.5.12-MariaDB-0ubuntu0.21.04.1) installed on the other. When Postfix tries to connect to MariaDB it gets an "unsupported protocol" error:
postfix/trivial-rewrite[15106]: warning: connect to mysql server <name_of_db_server>: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol
postfix/trivial-rewrite[15106]: warning: virtual_alias_domains: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf: table lookup problem
postfix/trivial-rewrite[15106]: warning: virtual_alias_domains lookup failure
postfix/trivial-rewrite[15106]: warning: virtual_alias_domains: mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf: table lookup problem
main.cf:
virtual_mailbox_domains = mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf
virtual_alias_maps = mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf
mysql_virtual_alias_maps.cf:
user = postfix
password = password
hosts = ip.address.of.db
dbname = postfix
query = SELECT goto FROM alias WHERE address='%s' AND active = '1'
I can connect from the mariadb/mysql shell (mysql -u postfix -h dbserver -p) and it uses SSL/TLS.
I have seen lots of stuff that talks about lowering the TLS version on one machine or the other, but that isn't a solution. Any help would be greatly appreciated.