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

Sendmail Logging on CSS 11501

pncisco216
Level 1
Level 1

I am trying to setup the sendmail logging feature on my CSS 11501. I have added the logging line as follows:

logging sendmail <email@domain.com> <ip_mailserver> info-6 <domain.com>

The CSS is sending the email when a log event occurs, but the mail server is rejecting it, since it is not coming from a valid username. The from field of the email is being filled in with the IP address of the ethernet management port at the server domain from the logging sendmail line. i.e. x.x.x.x@domain.com Is there any way to change what is put into the <From> field for the logging email? I also tried setting a host line for this IP address, and it didn't change anything. Is there a setting I have missed, or can a script change this <FROM> field before the email is sent?

1 Reply 1

ebreniz
Level 6
Level 6

Sending Log Messages to an E-Mail Address

To send the log activity of a subsystem to an e-mail address, use the logging sendmail command. The syntax for this global configuration mode command is:

logging sendmail email_address ip_address level {domain}

The variables are as follows:

email_address - The e-mail address for the recipient. Enter the e-mail address as an unquoted text string with a length of 1 to 30 characters.

IP_address - The IP address for the SMTP host. Enter the IP address in dotted-decimal notation (for example, 192.168.11.1).

level - The type of information to log. The valid levels are defined in Table 6-4.

domain - (Optional) The domain name for the SMTP host. Enter an unquoted text string with a maximum length of 64 characters (for example, arrowpoint.com). Do not insert an @ sign before the domain name. The CSS automatically prepends the @ sign to the domain name.

To turn off logging to an e-mail address, enter:

http://www.cisco.com/en/US/products/hw/contnetw/ps792/products_configuration_guide_chapter09186a00801eea2d.html

Review Cisco Networking for a $25 gift card