Opened 3 years ago

Last modified 2 months ago

#13292 new enhancement

Script for sending relay email notifications

Reported by: DerTorSteher Owned by: atagar
Priority: Low Milestone:
Component: Core Tor/Stem Version:
Severity: Minor Keywords: website
Cc: cc@… Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

In the last days I thought about a possibility to send mail notifications if a (maybe configurable) loglevel is firing.
I.e.
If
Mail_Notification_Level = error (written in the config)
then ARM should send this message via email to the given address (written in config too.

This would enhance the ability to monitor your relay and to be up-to-date with every error that occured.

Child Tickets

Change History (7)

comment:1 Changed 3 years ago by atagar

Component: armStem

Hi DerTorSteher. This is an interesting idea but sounds like scope creep for arm. Also, how would arm send the email? Prompt the user for an SMTP server and credentials? Shell out to a local mail daemon?

Doing what you suggest wouldn't be hard as its own standalone script. Maybe I'll bundle a script for this with Stem - I can certainly see folks finding it useful.

comment:2 Changed 3 years ago by DerTorSteher

At first I have to say, that I'm not really familiar with python. I just thought there would be some easy implementation like PHPMail, where you don't need SMTP auth to send a mail.
If there isn't then it is more complicated then I thought because even if you are prompting the user for credentials or letting him write those down in the cfg it will be a security problem.

A script sounds good too. It doesn't has to be complicated. Maybe I should go and learn some python so that I can try to write a script myself and contribute it.

comment:3 Changed 3 years ago by atagar

Keywords: website added
Priority: normalminor

comment:4 Changed 3 years ago by atagar

Summary: mail notification on warning/errorScript for sending relay email notifications

comment:5 Changed 2 months ago by ewong

Cc: cc@… added
Severity: Blocker

comment:6 Changed 2 months ago by ewong

Severity: BlockerNormal

comment:7 Changed 2 months ago by ewong

Severity: NormalMinor
Note: See TracTickets for help on using tickets.