steps for autoresponder mailbot

This commit is contained in:
2021-12-19 21:05:18 +01:00
parent fbebdad8fe
commit 28064e8144
2 changed files with 16 additions and 0 deletions

View File

@@ -37,6 +37,17 @@
dest: etc/services.d/autoreply-editor.ini dest: etc/services.d/autoreply-editor.ini
notify: reload supervisord notify: reload supervisord
- name: Create autoresponders directory
file:
path: autoresponders
state: directory
- name: Create autoreply mailbot filter
template:
src: filter-autoreply.j2
dest: .filter-autoreply
mode: 0600
handlers: handlers:
- name: reread supervisord - name: reread supervisord
command: supervisorctl reread command: supervisorctl reread

View File

@@ -0,0 +1,5 @@
logfile "$HOME/mailfilter-autoreply.log"
FROM="{{ mail_from }}"
to "| mailbot -T reply -t $HOME/autoreply-editor/{{ message_file }} -d $HOME/autoresponders/autoresponsedb -N -A 'From: $FROM' /var/qmail/bin/qmail-inject -f ''"