Add New domains in a system file...

tdldp

Verified User
Joined
May 9, 2005
Messages
150
Hello...

For a better protection of our clients, i would like to have the following operation done when we create a client domain in directadmin...

(In reseller, add a user, we add a domain name)

We want that this domain name gets added at installation stage in file :
/etc/virtual/use_rbl_domain automatically... We have warned our clients (new and existing) that from now on, Our mailing service will work with RBL's...

Which file / files do i need to modify to get directadmin do this for me ???
I suppose each time i update DA, i'll have to do this process again...
Is there a way to prevent this ????

Second Question :
I need to convert all existing domains to rbl domains...
How do i grep list of all existing domains, and add them to /etc/virtual/use_rbl_domains ???

Yours...
Tdldp
 
I'll take the second question first:

Code:
cat /etc/virtual/domains >> /etc/virtual/use_rbl_domains

The first question you'll need to run some post_create scripts. I'd suggest: /usr/local/directadmin/scripts/custom/README
 
Back
Top