How to send mail notify

Started by dksieg, August 06, 2010, 10:37:40 AM

Previous topic - Next topic

dksieg

Hi,

i use netxms version 1.0.4, and config action send mail via gmai SMTP server. But it's not success and required authentication. How i can send mail via gmail?

Regards
-dksieg.

Alex Kirhenshtein

SMTP authentication is currently unsupported.
As a workaround, you send notifications using external script, which would send mail using mSMTP, for example.

Anton8090

#2
Quote from: Alex Kirhenshtein on August 06, 2010, 01:50:42 PM
SMTP authentication is currently unsupported.
As a workaround, you send notifications using external script, which would send mail using mSMTP, for example.
Do you can show us this scritp?

And another, how i can use microsoft exchange or yandex mail or gmail for send email?

Please help me to configure email notification with msmtp.

I have another Debian mashine. Run this action:

#install msmtp
sudo apt-get install msmtp
#create msmtp config
sudo touch /etc/msmtprc
#edit config to
account default
host smtp.yandex.com
port 25
protocol smtp
auth on
from [email protected]
user forexample
password P@ssw0rd
tls on
tls_certcheck off


#recreate link
rm /usr/sbin/sendmail
ln -s /usr/bin/msmtp /usr/sbin/sendmail


#next to run recive message from cosole
cat test.txt | msmtp [email protected]
# and have a message from web interface:

От кого   From     [email protected]
Кому           To     undisclosed-recipients
Когда           When     4 мая 2011 в 14:52


Server have this settings:
smtp from addr [email protected]
smtp from name forexample
smtp counter 5
smtp server IPADDRESS DEBIAN MASCINE

In Event log, on my NetXMS machine , I have a message:
Unable to sand e-mail to <[email protected]>:SMTP conversation failure

Please help me seng email! or give me help or волшебный пендаль

Filipp Sudanov