LawsHosting
Verified User
NB. I'm not a professional at bash scripting.
I've imported a few users to a reseller, some these users have the SpamAssassin & Exim filter files (/etc/virtual/domain.com/filter & /etc/virtual/domain.com/filter.conf) to the default, empty (or the default file size). So I would like to know is there a way to loop all users belonging to a specific reseller, checking the current filter files sizes, skip if it's nnn bytes, to do these commands:
Similar to http://help.directadmin.com/item.php?id=117 but just to a set of users belonging to a reseller.
Hope I've explained clearly.
Thanks.
I've imported a few users to a reseller, some these users have the SpamAssassin & Exim filter files (/etc/virtual/domain.com/filter & /etc/virtual/domain.com/filter.conf) to the default, empty (or the default file size). So I would like to know is there a way to loop all users belonging to a specific reseller, checking the current filter files sizes, skip if it's nnn bytes, to do these commands:
filter.default containsdomain_create_post.sh said:cp /usr/local/directadmin/scripts/custom/filter.conf.default /etc/virtual/$domain/filter
chown mail:mail /etc/virtual/$domain/filter.conf
cp /usr/local/directadmin/scripts/custom/filter.default /etc/virtual/$domain/filter
chown mail:mail /etc/virtual/$domain/filter
filter.conf.default containsfilter.default said:if
$h_X-Spam-Level: contains "***************"
then
seen finish
endif
if
$h_X-Spam-Status: contains "Yes,"
then
seen finish
endif
Which I assume tells Spamassassin & Exim to delete spam rather than inbox it? I'm not sure which filter is for which (SA or Exim) as I can't see any reference to these filter files in exim.conf.filter.conf.default said:high_score=15
high_score_block=yes
where=delete
Similar to http://help.directadmin.com/item.php?id=117 but just to a set of users belonging to a reseller.
Hope I've explained clearly.
Thanks.
Last edited: