Use this command:
sudo /usr/share/zentyal/redisvi
It opens the redis database in "vim". Looks into for this:
mailfilter/conf/AntispamACL/keys/ants1: {
"sender" : "@lab6.lan",
"policy" : "whitelist"
}
mailfilter/conf/AntispamACL/keys/ants2: {
"sender" : "@test.lan",
"policy" : "blacklist"
}
mailfilter/conf/AntispamACL/keys/ants3: {
"sender" : "@gmail",
"policy" : "whitelist"
}
mailfilter/conf/AntispamACL/keys/ants4: {
"policy" : "whitelist",
"sender" : "@viejoslibros.es"
}
mailfilter/conf/AntispamACL/keys/ants5: {
"sender" : "@amano.es",
"policy" : "whitelist"
}
mailfilter/conf/AntispamACL/max_id: 5
mailfilter/conf/AntispamACL/order: [
"ants1",
"ants2",
"ants3",
"ants4",
"ants5"
]
This is an example on my machine. I have created by hand this:
##-> manual
mailfilter/conf/AntispamACL/keys/ants5: {
"sender" : "@amano.es",
"policy" : "whitelist"
}
mailfilter/conf/AntispamACL/max_id: 5 # add 1 to the previous max_id
mailfilter/conf/AntispamACL/order: [
"ants1",
"ants2",
"ants3",
"ants4",
"ants5" # add manually the new record
]
You have to create the structure
mailfilter/conf/AntispamACL/keys/ants5: {
"sender" : "@amano.es",
"policy" : "whitelist"
}
for each one of the domains (use a script) . Afterwards paste it on redisvi and modify "mailfilter/conf/AntispamACL/max_id:" and add to this structure the new "ants" structures
mailfilter/conf/AntispamACL/order: [
"ants1",
"ants2",
"ants3",
"ants4",
"ants5" # add manually the new record
]
Restart mail filter and your webadmin will reflect the changes. Be careful and respect the formats, etc. It could be dangerous (backup your redis database before)
Cheers!