Here are examples of viewing and working with iRedAdmin white and black lists.
Switch to the root user:
sudo -i
Let’s go to the directory with the script and execute it without options to see a brief help:
cd /opt/iredapd/tools/
python wblist_admin.py
To add the sender to the white list or black list, execute the following commands:
python wblist_admin.py --add --whitelist 192.168.25.2 info@example.com @test.com @.abc.com
python wblist_admin.py --add --blacklist 192.168.25.2 info@example.com @test.com @.abc.com
Example of deletion:
python wblist_admin.py --delete --whitelist 192.168.25.2
Adding a sender to the white or black list for a particular domain or user:
python wblist_admin.py --account mydomain.com --add --whitelist 192.168.25.2
python wblist_admin.py --account user@mydomain.com --add --blacklist 192.168.25.2
For outgoing messages:
python wblist_admin.py --outbound --account mydomain.com --add --whitelist 192.168.25.2
Commands for viewing lists:
python wblist_admin.py --list --whitelist
python wblist_admin.py --list --blacklist
python wblist_admin.py --account mydomain.com --list --whitelist
python wblist_admin.py --account user@mydomain.com --list --blacklist
python3 wblist_admin.py --list --whitelist
python3 wblist_admin.py --list --blacklist
In the iRedAdmin-Pro version, lists can be managed via the web interface.
See also my articles:
Solution for ImportError: No module named web
Troubleshooting “Recipient address rejected: Intentional policy rejection, please try again later”