Email notifications plugin revisited

Want to share your OpenWrt / Gargoyle knowledge? Implemented a new feature? Let us know here.

Moderator: Moderators

dpint
Posts: 32
Joined: Fri Oct 31, 2014 10:48 am

Email notifications plugin revisited

Post by dpint »

Latest version of this plugin isn't available from the Gargoyle repository.

DO NOT INSTALL THIS PLUGIN ON ROUTERS WITH 4MB FLASH.

Run following commands to install latest version (only works on Gargoyle router >=1.9):

Non-SSL version:

Code: Select all

opkg update
wget -O /tmp/email.ipk http://goo.gl/aosUtk
opkg install /tmp/email.ipk
rm /tmp/email.ipk


SSL version:

Code: Select all

opkg update
wget -O /tmp/email.ipk http://goo.gl/FkR2hD
opkg install /tmp/email.ipk
rm /tmp/email.ipk


Report bugs to this thread. Install latest version before reporting bugs!
Last edited by dpint on Sat Nov 19, 2016 5:25 pm, edited 11 times in total.

tapper
Moderator
Posts: 1071
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: Email notifications plugin revisited

Post by tapper »

Cool thanks!

I installed email with ssl on 1.7.1
Linksys WRT1900AC V2 Gargoyle 1.11
Linksys WRT3200ACM OpenWrt Snapshot

Lantis
Moderator
Posts: 5630
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Email notifications plugin revisited

Post by Lantis »

This is a very useful plugin. I'll probably replace my existing script with this :)
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

majidkhan
Posts: 17
Joined: Mon Jul 06, 2015 7:55 am

Re: Email notifications plugin revisited

Post by majidkhan »

Im getting the following error :

Something went wrong. Response:
sendmail: envelope from address xxxe@abcd.com xxxx@gmail.com not accepted by the server
sendmail: server message: 501 5.1.7 Bad sender address syntax
sendmail: could not send mail (account default from /etc/msmtprc)

DrData
Posts: 4
Joined: Thu Jul 02, 2015 2:41 pm

Re: Email notifications plugin revisited

Post by DrData »

send of attachments would be a nice feature.

mates
Posts: 128
Joined: Mon Nov 14, 2011 7:53 am

Re: Email notifications plugin revisited

Post by mates »

this pluggin is only for 1.7 versions?
I cant install it on my 1.6.X (Built 20141109-0020 git@f372e3b)

dpint
Posts: 32
Joined: Fri Oct 31, 2014 10:48 am

Re: Email notifications plugin revisited

Post by dpint »

I installed it successfully on 1.6.2 version. Can you try to install it using CLI (opkg install plugin-gargoyle-email-notifications) and send me an error message you get?

Eric
Site Admin
Posts: 1441
Joined: Sat Jun 14, 2008 1:14 pm

Re: Email notifications plugin revisited

Post by Eric »

This looks great, I'm going to merge it into the main repository.

Thanks!

mates
Posts: 128
Joined: Mon Nov 14, 2011 7:53 am

Re: Email notifications plugin revisited

Post by mates »

Hi

here is log

Code: Select all

BusyBox v1.19.4 (2014-11-09 17:24:32 NZDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------
|            _____                             _                 |
|           |  __ \                           | |                |
|           | |  \/ __ _ _ __ __ _  ___  _   _| | ___            |
|           | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \           |
|           | |_\ \ (_| | | | (_| | (_) | |_| | |  __/           |
|            \____/\__,_|_|  \__, |\___/ \__, |_|\___|           |
|                             __/ |       __/ |                  |
|                            |___/       |___/                   |
|                                                                |
|----------------------------------------------------------------|
| Gargoyle version 1.6.X    | OpenWrt Attitude Adjustment branch |
| Gargoyle revision f372e3b | OpenWrt revision r42647            |
| Built November 09, 2014   | Target  ar71xx/usb_large           |
------------------------------------------------------------------
root@routr:~# opkg install plugin-gargoyle-email-notifications
Preparing to install the following packages, which will require 225372 bytes:
        msmtp, ca-certificates, plugin-gargoyle-email-notifications

Preparing to install package msmtp...
        Downloading...
        Downloaded msmtp successfully.
        Installing msmtp...
        Successfully installed msmtp.
Preparing to install package ca-certificates...
        Downloading...
ERROR: MD5Sum mismatch for ca-certificates package
       Expected:   5470c3af295f5997ad6aa50bd69ac1d5
       Downloaded: 46fc1074d6c6e1059795d2e7a49fa1cd

An error occurred during Installation, removing partially installed packages.
Removing package msmtp...
Finished removing msmtp.

Removing package ca-certificates...
Finished removing ca-certificates.

Removing package plugin-gargoyle-email-notifications...
Finished removing plugin-gargoyle-email-notifications.

Finished removing partially installed packages.

root@routr:~#

dpint
Posts: 32
Joined: Fri Oct 31, 2014 10:48 am

Re: Email notifications plugin revisited

Post by dpint »

Eric wrote:This looks great, I'm going to merge it into the main repository.

Thanks!


Great. I see you also fixed the issues I mentioned in the first post.

mates wrote:Hi

here is log

Code: Select all

BusyBox v1.19.4 (2014-11-09 17:24:32 NZDT) built-in shell (ash)
Enter 'help' for a list of built-in commands.

------------------------------------------------------------------
|            _____                             _                 |
|           |  __ \                           | |                |
|           | |  \/ __ _ _ __ __ _  ___  _   _| | ___            |
|           | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \           |
|           | |_\ \ (_| | | | (_| | (_) | |_| | |  __/           |
|            \____/\__,_|_|  \__, |\___/ \__, |_|\___|           |
|                             __/ |       __/ |                  |
|                            |___/       |___/                   |
|                                                                |
|----------------------------------------------------------------|
| Gargoyle version 1.6.X    | OpenWrt Attitude Adjustment branch |
| Gargoyle revision f372e3b | OpenWrt revision r42647            |
| Built November 09, 2014   | Target  ar71xx/usb_large           |
------------------------------------------------------------------
root@routr:~# opkg install plugin-gargoyle-email-notifications
Preparing to install the following packages, which will require 225372 bytes:
        msmtp, ca-certificates, plugin-gargoyle-email-notifications

Preparing to install package msmtp...
        Downloading...
        Downloaded msmtp successfully.
        Installing msmtp...
        Successfully installed msmtp.
Preparing to install package ca-certificates...
        Downloading...
ERROR: MD5Sum mismatch for ca-certificates package
       Expected:   5470c3af295f5997ad6aa50bd69ac1d5
       Downloaded: 46fc1074d6c6e1059795d2e7a49fa1cd

An error occurred during Installation, removing partially installed packages.
Removing package msmtp...
Finished removing msmtp.

Removing package ca-certificates...
Finished removing ca-certificates.

Removing package plugin-gargoyle-email-notifications...
Finished removing plugin-gargoyle-email-notifications.

Finished removing partially installed packages.

root@routr:~#


I guess Eric fixed the bug above, while moving the code to the main repository.

Post Reply