Bulk change default address for all existing accounts

SimpleTechGuy

Well-Known Member
Mar 22, 2021
64
21
8
United States
cPanel Access Level
Root Administrator
Wanting to temporarily change the default address for all accounts to :blackhole in order to slow down a dictionary attack on my servers. I know I can go into each accounts cpanel and manually change the default address there, but looking for a way to do this for all accounts at once.

Thanks,
 

SimpleTechGuy

Well-Known Member
Mar 22, 2021
64
21
8
United States
cPanel Access Level
Root Administrator
I found the following post from several years ago, but it's not working. I'm getting -bash: replace: command not found

 
Last edited:

SimpleTechGuy

Well-Known Member
Mar 22, 2021
64
21
8
United States
cPanel Access Level
Root Administrator
Also found this post from a couple of years ago but the OP never provided a script. Honestly it would be easier for me to do them manually that trying to figure out how to write a script. Hoping there might be an easier way since 2 years ago.