OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: bdario on May 19, 2017, 04:25:24 pm

Title: email from OPNsense
Post by: bdario on May 19, 2017, 04:25:24 pm
Hello folks,
I just started my experience with OPNsense 17.1.7
Now I would like to receive emails from the firewall when someone connect it using openvpn, or when the firewall is shutted down and so on.
The smtp configuration works good, I receive the test email, but I don't find a list of messages ready to send by email.
Can someone help me?
Best regards
Dario
Title: Re: email from OPNsense
Post by: faunsen on May 19, 2017, 05:59:36 pm
Hi Dario,

you could try the os-monit plugin. It monitors your system and sends messages on various events.

Unfortunately due to a bug in monit 5.22 it cannot check filesystems.
But you can revert to monit version 5.20 with
Code: [Select]
opnsense-revert -r 17.1.5 monit

Cheers,
Frank
Title: Re: email from OPNsense
Post by: bdario on May 24, 2017, 03:34:46 pm
Thank you Fausen
I will
Title: Re: email from OPNsense
Post by: bdario on May 29, 2017, 02:03:16 pm
Hi Frank,
I followed your suggestion:
- installed monit 5.22
- reverted it to version 5.20

Now I get the following
/usr/local/etc/monitrc:10: syntax error 'password_ of_ email_ account'
when start monit in: Services / Monit / Settings

Really strange error because email notify works fine so I can assume that the "password_ of_ email_ account" is correct.
Thank you for your help
Dario
Title: Re: email from OPNsense
Post by: faunsen on May 29, 2017, 02:26:03 pm
Hi Dario,

no idea what 'password_ of_ email_ account' is.
Is this possibly the password of your email account?
If the password contains spaces it must be enclosed in single quotation marks.
But this only a guess because the monit(1) manual doesn't tell us much about special characters in passwords.
Better omit spaces.

Regards,
Frank