I installed smtp relay (E-MailRelay) on my nagios server 192.168.1.150 and it works fine when I send an email using telnet command like it's described here: http://emailrelay.sourceforge.net/userguide.html#SH_1_7
The problem is when I try to send nagios notifications via E-MailRelay, I get the following message:
Sep 1 12:10:01 server1 emailrelay[4279]: emailrelay: info: smtp connection closed: read error: disconnected: 192.168.1.150:49111
Code: Select all
vi /etc/ssmtp/ssmtp.conf
[email protected]
mailhub=192.168.1.150:25
rewriteDomain=gmail.com
hostname=ubuntu-virtual
AuthUser=
AuthPass=
FromLineOverride=YES
UseTLS=YESThanks for your time.