To connect your custom domain as mail sender like Yandex you need to do the following

In odoo click setting => general settings => external mail server => input your domain name =>  saved

Config Odoo with domain mail sender

Config Odoo with domain mail sender