cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1330
Views
0
Helpful
1
Replies

EEM3.2 sending mail by authenticated SMTP server

Ryan YC
Level 1
Level 1

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 

1 Reply 1

Ryan YC
Level 1
Level 1

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?