I've installed aapnel for my main domain example.com and I've updated PTR record to s01.example.com
Sending emails from firstname.lastname@example.org works like a charm.
However I've added another domain and installed roundcube on mail.example2.com.
now example2.com cannot send emails. It is trying to connect mail.example2.com, finds the PTR record and automatically gets redirected to example.com
The error: stream_socket_enable_crypto(): Peer certificate CN=
mail.example.com' did not match expected CN=mail.example2.com' [/www/wwwroot/example2.com/wp-includes/class-smtp.php line 374]
I am using WP-SMTP plugin to send emails.