Inserting black/white lists in bulk

MailCleaner Support
Added 12 months ago

Our advice on black or whitelists is to use them as little as possible. In our opinion they should be used as exceptions lists.

If you want to insert black or white lists in bulk, you can use on your master MailCleaner node (in case of cluster) our tool :


If you run this command that way you wil be prompted with the help which is :

mailcleaner:~$ /usr/mailcleaner/tools/ 

Please provide a file with the format
sender recipient type
if the recipient should be a whole domain, you need to include the '@' sign on it for example
if the rule is for all domains please use --- as domain name
type can be either white or black

so you need to run it with an argument which is the file containing the rules you wan tto add to your server(s) :

/usr/mailcleaner/tools/ /path/to/addresses_to_add

(the fields in this file are separated by a space)