create .filter file from template, and make maildrop command in .qmail variable depending on user
This commit is contained in:
5
autoreply_editor/templates/filterfile.j2
Normal file
5
autoreply_editor/templates/filterfile.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
logfile "$HOME/mailfilter-autoreply-{{ user }}.log"
|
||||
|
||||
FROM="{{ name }} <{{ email }}>"
|
||||
|
||||
to "| mailbot -T reply -t {{ messagefile }} -d $HOME/autoresponders/autoresponsedb-{{ user }} -N -A 'From: $FROM' /var/qmail/bin/qmail-inject -f ''"
|
||||
Reference in New Issue
Block a user