Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attemtping to get gmail email server working with pandora
#5
Hello,

This is how I have configured PandoraFMS to work with gmail (on Ubuntu):

Modify Pandora config file.
You can do this by executing the command:
sudo nano /etc/pandora/pandora_server.conf

Setup the mail settings:
Because we have installed a local SMTP server, we only need to set up the connection to this mail server:

# mta_address: External Mailer (MTA) IP Address to be used by Pandora FMS internal email capabilities
mta_address localhost

# mta_port: MTA port (default 25)
#mta_port

# mta_user MTA User (if needed for auth, FQD or simple user, depending on your server)
#mta_user

# mta_pass MTA Pass (if needed for auth)
#mta_pass

# mta_auth MTA Auth system (if needed, support: LOGIN, PLAIN, CRAM-MD5, DIGEST-MD)
#mta_auth

# mta_from Email address that sends the mail, by default is [email protected]
#          probably you need to change it to avoid problems with your antispam
mta_from Network Monitor Administrator <[email protected]>

Configure local mailserver EXIM4

http://wiki.debian.org/GmailAndExim4

Apply a filter, so the mails come from [email protected]
Create a file by executing the command:
sudo nano /etc/exim4/filter_reply_to
with the following content:
# Exim filter

# Rewrite my reply to for any mail sent to [email protected]

if
        $header_from: contains "Network Monitor Administrator"
then
        headers remove "Reply-To"
        headers add "Reply-To: [email protected]"
        headers add "From: [email protected]"
endif

# Forward any mail sent to root

if
        $header_to: contains "root"
then
        headers remove "Reply-To"
        headers add "Reply-To: [email protected]"
        headers remove "To"
        headers add "To: [email protected]"
        deliver "[email protected]"
endif

Adjust also the exim4 config file:
sudo nano /etc/exim4/exim4.conf.template
Add here the line
system_filter = /etc/exim4/filter_reply_to
And restart now the mail service:
sudo service exim4 restart

If you have problems with sending mails, you can check the logs:
sudo tail /var/log/mail.log

Greetings,

Geert
 Reply

(c) 2006-2018 Artica Soluciones Tecnológicas. Contents of this wiki are under Create Common Attribution v3 licence. | pandorafms.com | pandorafms.org

Theme © MyBB Themes