email_filter_write_pre.sh & email_filter_write_post.sh

Version 1.514

Feature
Finished

Two new custom scripts: /usr/local/directadmin/scripts/custom/email_filter_write_pre.sh /usr/local/directadmin/scripts/custom/email_filter_write_post.sh to be called before and after the filter file at: /etc/virtual/domain.com/fitler The environmental variables are: - The contents of: /etc/virtual/domain.com/filter.conf - The tokens for "filter" setup earlier in the process (before the large texts spans are added) - username=fred - domain=domain.com The tokens that might be useful are: DOVECOT=0|1 HOME=/home/fred INBOX_SPAM=INBOX.spam or Junk, depending on the setting: https://www.directadmin.com/features.php?id=1674 https://www.directadmin.com/features.php?id=1679 the rest are mainly just taken from the filter.conf anyway, which you'll already have loaded (lower case from the filter.conf)

Interested to try DirectAdmin? Get a 30-day Free Trial!