# 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](https://es.wikipedia.org/wiki/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.

[![image.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-10/scaled-1680-/E6jimage.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-10/E6jimage.png)

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](https://www.youtube.com/watch?v=mjE1GD4LRXc&t=0s)".

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](https://dokuwiki.pandorafms.com/manual/!development/en/quickguides/configuration_emails_alerts).

The lines that begin with the character `#` are comments and are not taken into account by the server.

[![guiarapida_mailconf03.png](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/scaled-1680-/guiarapida-mailconf03.png)](https://pandorafms.com/guides/public/uploads/images/gallery/2023-08/guiarapida-mailconf03.png)

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
```