Follow

SMTP commands allow you to configure an SMTP target for the InfiniBox events.


config.notifications.smtp.modify 

ROLE: Admin 

Description

Modify SMTP notification target.

Set an SMTP target for InfiniBox notifications. An SMTP server address is required. Optionally, you can define a new server by setting the host, port, user and password. You can also determine whether to use the secured TLS protocol. You can determine a prefix that will be added to the subject of the email. 

Syntaxconfig.notifications.smtp.modify smtp=SMTPTARGET [host=HOSTNAME] [port=PORT] [tls=YESNO] [username=STR] [password=STR] [fromaddress=LOCALEMAIL] [subject_prefix=STR] 
Argumentsfromaddress a valid email address 
password Any sequence of characters 
username Any sequence of characters
tls Either yes or no
port An integer number between 1 and 65535 (inclusive)  
subject_prefix Any sequence of characters 
host A valid hostname or IPv4 address 
smtp Name of an existing smtp notification target 
Exampleconfig.notifications.smtp.modify name=SMTP-1 host=smtp port=25 tls=tls fromaddress=no-reply@infinidat.com 
SMTP notification target SMTP-1 modified 



config.notifications.smtp.query 

ROLE: All Roles

Description

List existing SMTP notification targets. 

Syntaxconfig.notifications.smtp.query 
Exampleconfig.notifications.smtp.query  
NAME          HOST  PORT TLS USERNAME FROM ADDRESS
custmer-smtp  smtp  25   tls --       no-reply@infinidat.com



config.notifications.smtp.rename 

ROLE: Admin 

Description

Rename SMTP notification target.  

Syntaxconfig.notifications.smtp.rename smtp=SMTPTARGET new_name=NAME 
Argumentsnew_name A maximum of 65 Latin characters, numbers, spaces, and the following symbols: "^&'@()[]$=!-#{}%.+~_" (excluding quotation marks). Leading and trailing whitespace characters are stripped.Either yes or no
smtpName of an existing smtp notification target
Exampleconfig.notifications.smtp.rename name=customer-smtp new_name=customer2-smtp 
SMTP notification target customer-smtp renamed to customer2-smtp 



config.notifications.smtp.test 

ROLE: Admin 

Description

Test SMTP notification target.

This command sends a test notification to an email recipient.

Syntaxconfig.notifications.smtp.test smtp=SMTPTARGET recipient=LOCALEMAIL 
Argumentssmtp Name of an existing smtp notification target 
recipienta valid email address
Exampleconfig.notifications.smtp.test name=customer-smtp recipient=customer@customer.com 
SMTP notification target customer-smtp tested successfully 
Was this article helpful?
0 out of 0 found this helpful

0 out of 0 found this helpful

Last edited: 2022-08-06 08:34:11 UTC

Comments