2016-05-19 06:51:20 -05:00
<!DOCTYPE html>
2016-01-03 19:48:49 -06:00
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< title > Whitelists and Blacklists< / title >
< link rel = "stylesheet" type = "text/css" href = "./css/markdown.css" / >
< / head >
< body >
< div id = "navigation" >
2017-11-16 21:48:44 -06:00
< a href = "https://www.iredmail.org" target = "_blank" >
2016-04-19 12:48:51 -05:00
< img alt = "iRedMail web site"
src="./images/logo-iredmail.png"
style="vertical-align: middle; height: 30px;"
/>
< span > iRedMail< / span >
< / a >
2017-12-29 22:02:52 -06:00
// < a href = "./index.html" > Document Index< / a > < / div > < h1 id = "whitelists-and-blacklists" > Whitelists and Blacklists< / h1 >
2016-01-03 19:48:49 -06:00
< div class = "toc" >
< ul >
< li > < a href = "#whitelists-and-blacklists" > Whitelists and Blacklists< / a > < ul >
< li > < a href = "#manage-whitelists-and-blacklists-with-iredadmin-pro" > Manage whitelists and blacklists with iRedAdmin-Pro< / a > < / li >
< li > < a href = "#manage-whitelists-and-blacklists-with-sql-commands" > Manage whitelists and blacklists with SQL commands< / a > < / li >
< / ul >
< / li >
< / ul >
< / div >
2017-12-29 22:02:52 -06:00
< div class = "admonition warning" >
< p class = "admonition-title" > DEPRECATED< / p >
< p > < strong > WARNING: THIS DOCUMENT IS < em > DEPRECATED< / em > , PLEASE manage white/blacklists
with iRedAPD instead, < a href = "./manage.iredapd.html" > doc here< / a > .< / strong > < / p >
< / div >
2016-01-03 19:48:49 -06:00
< p > This tutorial shows you how to whitelist and blacklist senders or recipients
with iRedAdmin-Pro and script shipped in iRedAPD (since iRedAPD-1.7.1).< / p >
< h2 id = "manage-whitelists-and-blacklists-with-iredadmin-pro" > Manage whitelists and blacklists with iRedAdmin-Pro< / h2 >
< p > With iRedAdmin-Pro, you can manage several levels of whitelists and blacklists:< / p >
< ul >
< li > Global white/blacklists: under menu < code > System -> Anti Spam -> Whitelists & Blacklists< / code > .< / li >
< li > Per-domain white/blacklists: in domain profile page, under tab < code > Whitelists and Blacklists< / code > .< / li >
< li > Per-user white/blacklists: in user profile page, under tab < code > Whitelists and Blacklists< / code > .< / li >
< / ul >
< p > Screenshot attached below.< / p >
< h2 id = "manage-whitelists-and-blacklists-with-sql-commands" > Manage whitelists and blacklists with SQL commands< / h2 >
< p > Since iRedAPD-1.7.1, iRedAPD ships script < code > tools/wblist_admin.py< / code > to help you
manage white/blacklists. To get full usage message, please run this script
without argument like this:< / p >
< pre > < code > # cd /opt/iredapd/tools/
# python wblist_admin.py
< / code > < / pre >
< p > Sample usages:< / p >
< ul >
< li > Add server-wide whitelisted or blacklisted senders:< / li >
< / ul >
< pre > < code > # python wblist_admin.py --add --whitelist 202.96.134.133 john@example.com @test.com @.abc.com
# python wblist_admin.py --add --blacklist 202.96.134.133 john@example.com @test.com @.abc.com
< / code > < / pre >
< ul >
< li > Show server-wide whitelisted and blacklisted senders:< / li >
< / ul >
< pre > < code > # python wblist_admin.py --list --whitelist
# python wblist_admin.py --list --blacklist
< / code > < / pre >
< ul >
< li > For per-domain or per-user white/blacklists, please add argument < code > --account< / code > .
like below:< / li >
< / ul >
< pre > < code > # python wblist_admin.py --account mydomain.com --add --whitelist 202.96.134.133
# python wblist_admin.py --account user@mydomain.com --add --blacklist 202.96.134.133
# python wblist_admin.py --account mydomain.com --list --whitelist
# python wblist_admin.py --account user@mydomain.com --list --blacklist
< / code > < / pre >
< ul >
< li > For outbound messages, please add argument < code > --outbound< / code > . like below:< / li >
< / ul >
< pre > < code > # python wblist_admin.py --outbound --account mydomain.com --add --whitelist 202.96.134.133
< / code > < / pre >
< p > Screenshot of iRedAdmin-Pro:< / p >
2017-11-16 21:48:44 -06:00
< p > < img alt = "" src = "./images/iredadmin/system_wblist.png" / > < / p > < div class = "footer" >
< p style = "text-align: center; color: grey;" > All documents are available in < a href = "https://bitbucket.org/zhb/iredmail-docs/src" > BitBucket repository< / a > , and published under < a href = "http://creativecommons.org/licenses/by-nd/3.0/us/" target = "_blank" > Creative Commons< / a > license. You can < a href = "https://bitbucket.org/zhb/iredmail-docs/get/tip.tar.bz2" > download the latest version< / a > for offline reading. If you found something wrong, please do < a href = "https://www.iredmail.org/contact.html" > contact us< / a > to fix it.< / p >
2016-05-19 06:51:20 -05:00
< / div >
2017-11-05 02:33:58 -06:00
<!-- Global site tag (gtag.js) - Google Analytics -->
< script async src = "https://www.googletagmanager.com/gtag/js?id=UA-3293801-21" > < / script >
< script >
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
2016-01-03 19:48:49 -06:00
2017-11-05 02:33:58 -06:00
gtag('config', 'UA-3293801-21');
2016-01-03 19:48:49 -06:00
< / script >
< / body > < / html >