Hi,
we use EEM 3.2 to send email whenever interface goes down/up. But it doesnt work.
We need to use authenticated SMTP server, so command for sending mail is following
action 1.0 mail server "cisco:password@domain.net" to "someone@somewhere.net" from
"someone@somewhere.net" subject "something"
But it doesnt work. Log is following
Mar 22 12:55:34.316: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_connect_attempt: 1
Mar 22 12:55:34.333: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 220 relay2.domain.local HE relay mail server Fri, 22 Mar 2013 13:55:34 +0100
Mar 22 12:55:34.333: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write HELO DP-SW1.dp.local
Mar 22 12:55:34.752: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 250 relay2.domain.local Hello [90.185.130.170]
Mar 22 12:55:34.752: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write AUTH LOGIN Y2lzY28=
Mar 22 12:55:35.298: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 503 5.5.2 Send hello first.
Mar 22 12:55:35.298: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : buffer no reply code matched: 503 5.5.2 Send hello first.
Mar 22 12:55:35.298: %HA_EM-3-FMPD_SMTP: Error occurred when sending mail to SMTP server: cisco:password@domain.net: error in reply from SMTP server
Mar 22 12:55:35.298: %HA_EM-3-FMPD_ERROR: Error executing applet INTERFACE_CHANGED_STATE statement 1.0
Do you have any idea? I changed domain names. I figured out, that when I manually connect to SMTP server and istead of HELO command I use EHLO, it works. Do you think it can be a problem? And how to solve it then?
Any help appreciated.
thanks
John