Skip to content

SMTP Policy

An SMTP Policy configures the email alert service on UCS servers, enabling the Cisco IMC to send fault notifications to specified recipients via an SMTP server with optional TLS encryption.

Note: Intersight does not support SMTP authentication (auth, username, password) on server SMTP policies. Use an unauthenticated relay or a relay that accepts connections from the IMC management network.

Location in Intersight GUI: Policies » SMTP

Diagram

policies (compute.intersight.organizations)

Section titled “policies (compute.intersight.organizations)”
NameTypeConstraintMandatoryDefault Value
smtpList[smtp]No

smtp (compute.intersight.organizations.policies)

Section titled “smtp (compute.intersight.organizations.policies)”
NameTypeConstraintMandatoryDefault Value
nameStringRegex: ^[a-zA-Z0-9_.:-]{1,64}$Yes
descriptionStringNo
managedBooleantrue, falseNotrue
tagsList[tags]No
enabledBooleantrue, falseNotrue
smtp_serverStringNo
smtp_portIntegermin: 1, max: 65535No25
sender_emailStringNo
recipientsListStringNo
min_severityChoicecritical, major, minor, warning, conditionNocritical
tlsBooleantrue, falseNofalse

tags (compute.intersight.organizations.policies.smtp)

Section titled “tags (compute.intersight.organizations.policies.smtp)”
NameTypeConstraintMandatoryDefault Value
keyStringYes
valueStringYes

Example-1: Configure SMTP with a relay server and critical fault notifications, with environment tags.

compute:
intersight:
organizations:
- name: MyOrg
policies:
smtp:
- name: MySmtpPolicy
enabled: true
smtp_server: smtp.example.com
smtp_port: 25
sender_email: intersight-alerts@example.com
recipients:
- admin@example.com
- ops@example.com
min_severity: critical
tags:
- key: env
value: prod

Example-2: Configure SMTP with TLS and warning-level notifications.

compute:
intersight:
organizations:
- name: MyOrg
policies:
smtp:
- name: MySmtpTls
enabled: true
smtp_server: smtp.example.com
smtp_port: 587
sender_email: alerts@example.com
recipients:
- ops@example.com
min_severity: warning
tls: true

Example-3: Disable SMTP alerting for servers that use an alternative alerting method.

compute:
intersight:
organizations:
- name: MyOrg
policies:
smtp:
- name: MySmtpDisabled
enabled: false