Automatic default address and spam assassin

flash_me

Member
Sep 30, 2003
11
0
151
Hello everyone

I'm a reseller with cpanel and i have about 350 accounts...

was thinking if there was some script that can automatically
set the change for all the accounts to "Send all unrouted e-mail for: :blackhole: " and if there was a way to turn the spam assassin on for all the accounts.

Hope to have good news


:) Thanks Andy
 

PWSowner

Well-Known Member
Nov 10, 2001
2,901
4
343
ON, Canada
This isn't a script for the blackhole setting, but it may help.

All you need to do there is add
*: :blackhole:
to the end of all the files in the /etc/valiases directory.

There are various programs that allow an easy search and replace on multiple files.
 

flash_me

Member
Sep 30, 2003
11
0
151
Thanks squirrel :)

but i was searching some perl script to do it......any suggestions or links to give a look :)