Bulk change default address for all existing accounts
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,
-
maybe just delete and append the line. here's a couple commands: sed '/^*:/d' -i /etc/valiases/* sed '1 a*: :blackhole:' -i /etc/valiases/* 0 -
Thank you @vanessa, I already went the manual route, but I'll try this when I get ready to switch back to :fail. 0
Please sign in to leave a comment.
Comments
4 comments