Code: Select all
A forum to discuss the Gargoyle web interface for Openwrt
charlie wrote:Fixed finally and now rocking with Gargoyle
In case someone having the same issue:
I have replaced "ntls-cert-file" string in /plugin_root/www/js/email.js with "ntls_trust_file" (tnx Dustinizer) and after that configured email and saved changes which caused that /etc/msmtprc file is generated with proper parameters - "tls_trust_file /etc/ssl/certs/ca-certificates.crt" instead of "tls-cert-file /etc/ssl/certs/ca-certificates.crt"
But that was not all in my case - /usr/lib/gargoyle/email.sh script had only read permission and that was reason why script wasn't executed on schedule. After i changed that and added execute permission email notification on schedule started to work normally.
Recently visited sites:
Time/ | **BLANK CELL** | IP address | Website
Then the data appears:
time & date | IP | website
b17gsr wrote:Would it be possible for the emails to include daily usage for the top 10 users?
So, I got the test email working, finally... But then, scheduled emails wouldn't send! Ugh... So, I Googled around and found the updated email plugin... But wow, that plugin turned out to be a hassle! I couldn't get it to install properly. I'd try to install it manually with ipkg command, but it'd tell me that the postinstall script wouldn't launch or whatever... but it still claimed the package installed successfully. However, "Email" wouldn't show up in the menu. I found the fix for that, but then the actual page for it still wouldn't load properly... Not fun! So, I uninstalled the updated email plugin entirely and reverted to 1.0-1... at least that installs properly and I can use the configuration page for it...
I then figured out from Google that cronjobs are run in a very minimal environment or whatever? Maybe it didn't know how to interpret just "sendmail"? So, I put the full path to sendmail, "/usr/sbin/sendmail", and scheduled another email at the next 5-minute interval.
And just for completion, my SMTP settings are smtp.gmail.com on port 587 with TLS and credentials. I had to create an "app password" on my Google account to get around two-factor authorization (which I really don't like anymore, but oh well.) Is there any simple way of using a local SMTP server software on my Windows 7 laptop to do this, though?