auto add all new domains to use_rbl_domains

rmday

Verified User
Joined
Dec 29, 2004
Messages
58
Thanks to Directadmin for helping me with the script to auto add all new domains to the /etc/virtual/use_rbl_domains file for spamblocking. I have added the script below if anyone else would like to use it.

Addto
/usr/local/directadmin/scripts/custom/domain_create_post.sh


#!/bin/sh
echo $domain >> /etc/virtual/use_rbl_domains
exit 0;

Rmday
 
You could also make a symbolic link to the file domains in /etc/virtual

like:
/etc/virtual# ln -s domains use_rbl_domains
 
Superdeboer's suggestion is good... if absolutely ALL your domains need Spamblocker.

If you have to pick and choose, (older customer might not want to have their e-mail blocked for whatever reason), then the automated solution to add them one by one is the way to go.
 
We no longer recommend the symbolic link; it can cause problems for the SpamBlocker Plugin installation.

Jeff
 
Jlasman,

If I may, I suggest you add this script to your SpamBlocker main post.

It is quite a useful addition and a major time saver.

Thanks! :)
 
While we can install it with SpamBlocker plugin, we cannot install it in DA as we don't have control of the DA code.

Since DA staff wrote the script, they can of course add it to the base install :) .

Jeff
 
Back
Top