I am on host-server with Centos 7 and KVM virtualization. I have 2 guest systems which are in routed virtual LAN. One of them is WEB server, the other is a mail server. Web server has hostname example.com and mail server is mail.example.com (both have dedicated static ip's).
I want SSMTP to route all mails from applications to my mail server.
root=root mailhub=mail.example.com:465 Hostname=example.com FromLineOverride=YES AuthUserfirstname.lastname@example.org AuthPass=*PASS* UseSTARTTLS=YES
Maybe I am a bit misunderstanding, but the mail doesnt go out not from Mail::Sendmail nor from NET::SMTP_auth.
In WEB machine mail log I see:
...status=deferred (connect to mail.example.com[*IP_ADDR*]:25: Connection refused)
Please help to understand what's wrong.