Saturday, April 14, 2012

Send email from a CISCO router with specifc source IP

1. In case of CISCO EEM, need to use NAT, see below example
 Set the source IP address of EEM SMTP session


2. TCL script

If you use Tcl, you could write your own SMTP client and use the -myaddr parameter in the socket call to specify the source IP address.

socket ?options? host port

socket

change-source-ip-address-of-eem-smtp

3. EEM SMTP Library Command Extensions

smtp_send_email

Sourceaddr: $_email_ipaddr

EEM SMTP Library Command Extensions

No comments:

Post a Comment