i have found this bug:
when i create a user with the admin web graphic interface and i check the enable spamfilter option for the user, al works fine.
When i make the same thing from the command line tool
/opt/open-xchange/sbin/createuser -A oxadmin -P changeme -u myuser -d "myuser" -g myuser -s myuser -p myuser -e myuser@myuser.com -l it_IT -t "Europe/Rome" -I 51200 -S on -c 1
and with the change user too
/opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P changeme -u myuser --spamfilter on
or
/opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P changeme -u myuser -S on
the config test is that from the web gui the sieve filter is without comments
cat /etc/sieve/m/myuser/oxfilterscript.script
# Generated by OX (remove this line if you edit this manually)
require "fileinto";
require "vacation";
if header :is ["X-Spam-Flag"] ["Yes"]
{
fileinto "Spam";
stop ;
}
#vacation :days 1 ;
and with the command line tool the sieve filter for the user is is
cat /etc/sieve/m/myuser/oxfilterscript.script
# Generated by OX (remove this line if you edit this manually)
require "fileinto";
require "vacation";
#if header :is ["X-Spam-Flag"] ["Yes"]
#{
#fileinto "Spam";
#stop ;
#}
#vacation :days 1 ;
my problem is that i have to create a lot of users in a batch way, with the spamfilters enabled.
The command line is now the simpler way to do this.
Any hint?
Workaround too are well accepted..
when i create a user with the admin web graphic interface and i check the enable spamfilter option for the user, al works fine.
When i make the same thing from the command line tool
/opt/open-xchange/sbin/createuser -A oxadmin -P changeme -u myuser -d "myuser" -g myuser -s myuser -p myuser -e myuser@myuser.com -l it_IT -t "Europe/Rome" -I 51200 -S on -c 1
and with the change user too
/opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P changeme -u myuser --spamfilter on
or
/opt/open-xchange/sbin/changeuser -c 1 -A oxadmin -P changeme -u myuser -S on
the config test is that from the web gui the sieve filter is without comments
cat /etc/sieve/m/myuser/oxfilterscript.script
# Generated by OX (remove this line if you edit this manually)
require "fileinto";
require "vacation";
if header :is ["X-Spam-Flag"] ["Yes"]
{
fileinto "Spam";
stop ;
}
#vacation :days 1 ;
and with the command line tool the sieve filter for the user is is
cat /etc/sieve/m/myuser/oxfilterscript.script
# Generated by OX (remove this line if you edit this manually)
require "fileinto";
require "vacation";
#if header :is ["X-Spam-Flag"] ["Yes"]
#{
#fileinto "Spam";
#stop ;
#}
#vacation :days 1 ;
my problem is that i have to create a lot of users in a batch way, with the spamfilters enabled.
The command line is now the simpler way to do this.
Any hint?
Workaround too are well accepted..
Comment