Configuration in PandoraFMS
El plugin crea un agente con dos módulos por cada ejecución, uno con el número de emails que coinciden con el filtrado y otro con el listado de estos emails. Los parámetros de filtrado son los siguientes:
--subject
--body
--from_mail
--date
Se puede filtrar por cualquiera de estos o se pueden combinar de la siguiente forma:
subject + body
subject + body + from_mail
subject + body + from_mail + date
You can select mails from any mailbox (inbox by default), to see a list of the mailboxes of the mail you can use the parameter
--list 1
The user and password will only need to be entered the first time, in a manual execution, then a file will be created that will store the encrypted credentials and the plugin will read them from this file.
python3 pandora_imap.py --server <server> --user <user> --password <password> --list 1
python3 pandora_imap.py --server <server> --user <user> --password <password> --subject <subject> --body <body> --as_agent_plugin 1
Manual execution example
Example with all filters