I want that all the email accounts of my server are included in my whitelist. I configured the white list putting them:
X.X.X.X (the IP of my server)
X.X.X.X (the same IP)
I use the wildcard "*", but I don't sure that it running, because some of my customers sends mails between them, and all of the mails have the text [SPAM] in the subject (one rule I created in hMailServer) when they received them.
I have more than 500 domains, and I prefer to make a global action, not an action in each domain.
This will only whitelist mail where the mail client is on your server...
perhaps you could script a solution that automatically adds all local domains to the whitelist using 0.0.0.0 >> 255.255.255.255 *@domain.com