The severity of the event is determined from the content of the email, if it has any of the following keywords:
Keywords | Description |
---|---|
| If those keywords are missing, then the default configured severity value, INFO is used. The following severity values are also supported:
|
| If those keywords are missing, then the default value is email's from address. |
| If those keywords are missing, then it provides 0 (zero) as message id. |
Only unread emails that are in the configured folder of the email server are read. By default, only emails in the Inbox folder are configured in the pronet.conf property file. The following properties can be configured in the pronet.conf property file:
pronet.email2event.mailserver.fqdn=<email server> pronet.email2event.mailserver.port=143 pronet.email2event.protocol=imap pronet.email2event.mailserver.username=<user name> pronet.email2event.mailserver.password=<encrypyted password> pronet.email2event.folder=inbox pronet.email2event.delete.read.messages=true pronet.email2event.mailbox.scan.frequency.mins=5 pronet.email2event.enabled=false pronet.email2event.default.severity=INFO
You can enable this feature by setting the following property value in the pronet.conf property file to "true". By default, this value is set to "false":
pronet.email2event.enabled=true
You can create a folder in the email server and configure rules to direct the email to this folder. To convert unread email in the folder to events, you must configure the folder name in the pronet.conf property file:
pronet.email2event.folder=<unread email folder>
By default, the Infrastructure Management Server scans the mail box in every 5 minutes. Emails that are already read, or are in draft or deleted modes are not considered.
Emails, which are already read by the server are marked as "seen" and are deleted from the email server. You can prevent the email from being deleted by disabling the configuration in the pronet.conf property file:
pronet.email2event.delete.read.messages=false
All other Multipurpose Internet Mail Extensions (MIME) content such as attachments, images, and so on are ignored.
You can configure an email as an event through the command line interface by running the pw email2event
command:
pw email2event usage: pw email2event [-y]|[-c]|[-s]|[-e]
The following table lists the parameters available in the pw email2event
command :
Options | Description |
---|---|
–y | Encrypts the mailbox password. |
| Configures email asevent. |
-s | Starts scanning email asevent. |
–e | Stops scanning email as event |
$ pw email2event -y
Open the pronet.conf file and configure the following properties:
pronet.email2event.mailserver.fqdn=<f.e.webmail.bmc.com>
pronet.email2event.mailserver.username=<username>
pronet.email2event.mailserver.password=<encrypted password>
pronet.email2event.delete.read.messages=false
pronet.email2event.mailbox.scan.frequency.mins=5
pronet.email2event.enabled=true
$ pw sys start
7 Comments
Tammy Ryan
It sure would be nice if you could support email2event on port 993.
Harihara Subramanian
Hi Tammy Ryan,
Thanks for your comment. I will pass on this request to the concerned team to check.
Hari
Mahesh Darekar
Rashmi Gokhale
Rashmi Gokhale
Charles Kelley
Rashmi Gokhale