tag:blogger.com,1999:blog-23021255.post3103451798523947419..comments2009-01-08T06:41:58.496+01:00Comments on Cisco IOS hints and tricks: Change the source IP address of an EEM SMTP sessio...Ivan Pepelnjakhttp://www.blogger.com/profile/13457151406311272386noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-23021255.post-73009040637684127412009-01-08T06:41:00.000+01:002009-01-08T06:41:00.000+01:002009-01-08T06:41:00.000+01:00I thought you might appreciate this:From: Paul (EE...I thought you might appreciate this:<BR/><BR/><BR/><BR/>From: Paul (EEM developer at Cisco) <BR/>Sent: Wednesday, January 07, 2009 8:30 PM<BR/>To: Sam (Customer)<BR/>Cc: <BR/>Subject: EEM SMTP session source interface<BR/><BR/>Sam, <BR/> <BR/>To answer the SMTP source address and EEM + VRF question....<BR/> <BR/>- SMTP source address specification. <BR/> Starting with EEM V3.0 users may specify a source address for EEM SMTP transactions.<BR/> applets use the "source-interface" keyword to specify either an address or interface name. i.e.<BR/>action 1.0 mail server x.x.x.x source-interface GigabitEthernet0/2<BR/>or<BR/>source-address 172.200.209.100<BR/><BR/>TCL uses email templates for EEM SMTP transactions. <BR/>The optional Sourceaddr: field is used to specify the SMTP source address.<BR/>Here is an example that shows the optional element:<BR/> <BR/>Mailservername: $_email_server<BR/>From: $_email_from<BR/>To: $_email_to<BR/>Cc: $_email_cc<BR/>Sourceaddr: $_email_srcaddr<BR/> <BR/>In this example, $_email_srcaddr is an environment variable that can be either an ip address or an interface name.<BR/>It is set in the config.<BR/>i.e.<BR/>event manager environment _email_srcaddr GigabitEthernet0/2<BR/>or<BR/>event manager environment _email_srcaddr 172.200.209.100<BR/><BR/><BR/> <BR/>- EEM is not VRF aware. We have plans to add VRF awareness to SMTP as well as other EEM elements.<BR/> <BR/>PaulSam Crookshttp://www.romulusglobal.comnoreply@blogger.com