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

Configuring EEM to send e-mail via Gmail?

robertramsey
Level 1
Level 1

Hello,

I have a Cisco ASA 5505X at home.  Is it possible to configure the EEM to send e-mail from my gmail e-mail?  I've found syntax that shows EEM can send e-mail but no examples with Gmail specifically.

Cisco EEM Basic Overview and Sample Configurations 

 

action 4.0 mail server "192.168.1.1" to ".engineer@cisco.com." from ".EEM@cisco.com." subject ".ISP1_Interface_fa1/0_SHUT." body "Current users $_cli_result"

 

EEM Email setup for IP SLA 

 

action 1.2  mail server "$_email_server" to "$_email_to" from "$_email_from" subject "Circuit Down" body "Primary Internet Circuit Down."

 

Looking online, people use "smtp.gmail.com" to send e-mail but some form of authentication is required.  The two code snippets above don't provide any means to authenticate (app password or otherwise).

Thanks in advance!

Rob

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

i had some issue same - so i need to setup local relay sendmail on Linux to send emails.

you can try below removing some setting of your gmail account(gmail become more secured now compare to old days due to lot of spams and bots)

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-17/222457-utilize-eem-to-automate-secure-emails-to.html

if that is not work, try any other email (free one which support relay if you rely on Public email) - if you have own SMTP corporate you can setup relay and allow device IP as trusted to send emails.

 

BB

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

How to Ask The Cisco Community for Help

View solution in original post

1 Reply 1

balaji.bandi
Hall of Fame
Hall of Fame

i had some issue same - so i need to setup local relay sendmail on Linux to send emails.

you can try below removing some setting of your gmail account(gmail become more secured now compare to old days due to lot of spams and bots)

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/ios-xe-17/222457-utilize-eem-to-automate-secure-emails-to.html

if that is not work, try any other email (free one which support relay if you rely on Public email) - if you have own SMTP corporate you can setup relay and allow device IP as trusted to send emails.

 

BB

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

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card