A simple web app to allow editing a file used for autoreplies
Go to file
max.mehl 701da16aaf
make sure .filter are 0600
2021-12-23 14:57:52 +01:00
ansible minor service improvements 2021-12-23 13:56:58 +01:00
autoreply_editor make sure .filter are 0600 2021-12-23 14:57:52 +01:00
.gitignore adapt playbook to more functions of the python tool 2021-12-23 13:48:48 +01:00
README.md fix wrong dir name 2021-12-19 21:05:05 +01:00
config.sample.py update sample config 2021-12-23 13:32:58 +01:00
requirements.txt create .filter file from template, and make maildrop command in .qmail variable depending on user 2021-12-23 12:05:55 +01:00
wsgi.py embed active toggle get_maildropline 2021-12-23 12:36:15 +01:00

README.md

Autoreply Editor

A web frontend to edit a file to be used for automatic replies. Created to be used in Uberspace.de environments.

Setup

  1. Clone Repo, e.g. to /home/YOURUSERNAME/autoreply-editor
  2. Create config.py and message.txt from their sample files
  3. Install requirements: pip3 install -r requirements.txt --user
  4. Create web backend on uberspace: uberspace web backend set app.example.com --http --port 5000
  5. Create a service in ~/etc/services.d/autoreply-editor.ini:
[program:autoreply-editor]
directory=/home/YOURUSERNAME/autoreply-editor
command=gunicorn --bind 0.0.0.0:5000 wsgi:app
startsecs=60

Then run: supervisorctl reread, supervisorctl update, supervisorctl start autoreply-editor

Autoreply Setup

Mailbot file

Create ~/.filter-autoreply:

logfile "$HOME/mailfilter-autoreply.log"

FROM="Jane Doe <info@example.com>"

to "| mailbot -T reply -t $HOME/autoreply-editor/message.txt -d $HOME/autoresponders/autoresponsedb -N -A 'From: $FROM' /var/qmail/bin/qmail-inject -f ''"

Make sure that the file permissions are 0600!

Afterwards, also create the directory ~/autoresponders if necessary.

.qmail file

In your .qmail file (or for any sub-account, see Uberspace docu), write:

|maildrop $HOME/.filter-autoreply
|/usr/bin/vdeliver