Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Sendmail Logging on CSS 11501

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

logging sendmail <> <ip_mailserver> info-6 <>

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. 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?


Re: Sendmail Logging on CSS 11501

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,

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, 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:

CreatePlease login to create content