Server Setup
For the correct functioning of the email
command, it is necessary to configure in pandora_server.conf
file a mail server that allows to make relay.
In the example, the mail server located in our localhost
through Postfix. You should enter the IP address of the local mail server, or one in Internet (configuring its authentication).
To modify the server configuration file, you must access it, located at /etc/pandora/pandora_server.conf
as root user by elevating your privileges using the sudo su
command. You are the only responsible for this key.
To edit this configuration file in this example, the vim program is used. More information can be found in the video tutorial "Editing files with VIM".
Find the lines you see in the screenshot below and set those values. If you do not have a mail server, you may use for example a Gmail® account. You may see a quick guide on how to configure Pandora FMS server to work with a Gmail® account in the following link: Configuring email alerts.
The lines that begin with the character #
are comments and are not taken into account by the server.
Once the changes are made, click ESC and :wq
to save the changes and exit. Once you are in the command line, restart Pandora FMS server:
/etc/init.d/pandora_server restart