Command Line (CLI) Reference > CLI Commands > Email

CLI: Email

You can use the email command to configure email settings.

Configuring email settings

email {auth|autosupport|dead-letter|diag-max-size|domain|mailhub|mailhub-port|notify|return-addr|return-host|send-test}

To configure authentication options for sending email:

email auth {enable|password|username}

To set handling of automatic support email:

email autosupport {enable|event}

To configure settings for saving undeliverable emails:

email dead-letter {enable|cleanup}

To set the maximum attachment size for diagnostic emails:

email diag-max-size <size-in-MB>

To override the domain from which emails appear to come:

email domain <hostname-or-IP-address>

To set the mail relay to be used to send emails:

email mailhub <hostname-or-IP-address>

To set mail port to be used to send emails:

email mailhub-port <port-number>

To set handling of events and failures via email:

email notify {event|recipient}

To set the username in the return address of the email notifications:

email return-addr <username>

To include a hostname in the return address of the email notifications:

email return-host

To send a test email to all configured event and failure recipients:

email send-test