cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1489
Views
10
Helpful
8
Replies

%HA_EM-6-LOG: : DEBUG(smtp_lib) : smtp_connect connect fail 260

robertvasquez99
Level 1
Level 1

I trying to send a mail with EEM code but a i get this logs ;

*Jan 7 16:16:27.063: %HA_EM-6-LOG: IPAddressNotify : DEBUG(smtp_lib) : smtp_connect connect fail 260
*Jan 7 16:16:27.067: %HA_EM-6-LOG: IPAddressNotify : DEBUG(smtp_lib) : fh_smtp_connect callback timer is awake
*Jan 7 16:16:27.067: %HA_EM-3-FMPD_SMTP: Error occurred when sending mail to SMTP server: aspmx.l.google.com : timeout error
*Jan 7 16:16:27.071: %HA_EM-6-LOG: IPAddressNotify : DEBUG(cli_lib) : : CTL : cli_close called.
*Jan 7 16:16:27.087: fh_server: fh_io_ipc_msg: received msg FH_MSG_CALLBACK_DONE from client 16 pclient 1
*Jan 7 16:16:27.087: fh_io_ipc_msg: EEM callback policy IPAddressNotify has ended with abnormal exit status of 0xFFFFFFFF
*Jan 7 16:16:27.087: EEM policy IPAddressNotify has exceeded it's elapsed time limit of 20.0 seconds
*Jan 7 16:16:27.091: EEM fms_remote_chkpt_add_event_hist(), data_len = 2984, buf_size = 2996

This the script that i running :

R2#sh run | se eve
privilege level 15
privilege level 15
event manager environment _email_from xxxz99.rv@gmail.com
event manager environment _email_to xxx@gmail.com
event manager environment _email_server aspmx.l.google.com
event manager applet IPAddressNotify
event none
action 1.0 cli command "show environment"
action 8.0 mail server "aspmx.l.google.com" to "xxx@gmail.com" from "xxxz99.rv@gmail.com" cc "xxx@gmail.com" subject "Router reload" body "$_cli_result" source-interface GigabitEthernet0/0
action 9.0 syslog msg "E-mail was sent"
R2#
R2#

1 Accepted Solution

Accepted Solutions

% Connection timed out; remote host not responding

I have mentioned you on other post, request time out, means not able to establish connection to SMTP

Now you come with same problem in new thread.

same command check with your normal PC computer, is this works ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

8 Replies 8

balaji.bandi
Hall of Fame
Hall of Fame

what is outcome when you below from your device ?

INET#telnet aspmx.l.google.com 25
Translating "aspmx.l.google.com"...domain server (192.168.1.254) [OK]
Trying aspmx.l.google.com (74.125.133.27, 25)... Open
220 mx.google.com ESMTP i22-20020adfa516000000b0028290c22fdfsi3250866wrb.376 - gsmt

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi BB,

This is that i get ; 

 

R2#
R2#
R2#telnet aspmx.l.google.com 25
Translating "aspmx.l.google.com"...domain server (8.8.8.8) [OK]
Trying aspmx.l.google.com (142.250.96.26, 25)...
% Connection timed out; remote host not responding

R2#

Do you think that port 25 is blocking ?  

% Connection timed out; remote host not responding

I have mentioned you on other post, request time out, means not able to establish connection to SMTP

Now you come with same problem in new thread.

same command check with your normal PC computer, is this works ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

You are right, from my pc i can't reach the server too.  will verify the port in my ISP router. 

Thanks. 

thats good start

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

robertvasquez99
Level 1
Level 1

Hi,

Now i can reach the smpt server but i get an error about the authentication, have you get this error  ? How can i solver ? 

Jan 7 18:29:37.767: %HA_EM-6-LOG: IPAddressNot
R2#ify : DEBUG(smtp_lib) : fh_smtp_read {550-5.7.26 This message does not pass authentication checks (SPF and DKIM both
550-5.7.26 do not pass). SPF check for [gmail.com] does not pass with ip:

550-5.7.26 [152.0.12.217].To best protect our users from spam, the message has
550-5.7.26 been blocked. Please visit
550-5.7.26 https://support.google.com/mail/answer/81126#authentication for more
550 5.7.26 information. z196-20020a814ccd000000b0047640afa542si4389212ywa.291 - gsmtp
}

yes that is expected, on your script there is no password, and Gmail not allow mail relay without authentication.

personally, I do not believe Gmail offer any relay option due to security reason, so you need to use an authentication method or look at any mail relay.

I use local relay servers to send email to corporate email (mail relay allow router IP address to send)

never used but one of the user mentioned mailjet.com on port 80 relay works.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

i haven't followed the entire thread, but I don't see how your script can run at all without 'action 1.0 cli command "enable".

Also, add ' auhentication bypass' to the applet as below:

event manager environment _email_from xxxz99.rv@gmail.com
event manager environment _email_to xxx@gmail.com
event manager environment _email_server aspmx.l.google.com
event manager applet IPAddressNotify authentication bypass
event none
action 1.0 cli command "enable"
action 2.0 cli command "show environment"
action 3.0 mail server "aspmx.l.google.com" to "xxx@gmail.com" from "xxxz99.rv@gmail.com" cc "xxx@gmail.com" subject "Router reload" body "$_cli_result" source-interface GigabitEthernet0/0
action 4.0 syslog msg "E-mail was sent"