02-11-2015 12:34 PM
Hi,
I use EEM 3.2 to send email whenever interface goes down/up. But it doesnt work. We are use authenticated SMTP server, so command for sending mail is following action 3.0 mail server "username:password@domain.net" to "someone@somewhere.net" from "someone@somewhere.net" subject "something"
But it doesnt work. Log is following:
Jan 12 4:13:34.316: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_connect_attempt: 1
Jan 12 4:13:34.333: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 220 mailserver.domain SMTP service Thu, 12 Jan 2015 4:11:30 +0800
Jan 12 4:13:34.333: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write HELO Router.domain
Jan 12 4:13:34.752: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 250 mailserver.domain Hello [ipaddr]
Jan 12 4:13:34.752: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write AUTH LOGIN encodeBase64string
Jan 12 4:13:35.298: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 503 5.5.2 Send hello first.
Jan 12 4:13:35.298: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : buffer no reply code matched: 503 5.5.2 Send hello first.
Jan 12 4:13:35.298: %HA_EM-3-FMPD_SMTP: Error occurred when sending mail to SMTP server: username:password@domain : error in reply from SMTP server
Jan 12 4:13:35.298: %HA_EM-3-FMPD_ERROR: Error executing applet INTERFACE_CHANGED_STATE statement 3.0
Do you have any idea? when I manually connect to SMTP server and instead 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
02-11-2015 07:09 PM
Hi,
I tried manually connect to SMTP server and I use EHLO command instead of HELO for authenticate, it works. Then I found EEM version 3.2 always use HELO command to connect to SMTP server. Does EEM version 3.2 support use EHLO command instead of HELO?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide