So I want to turn off catchall emails using :fail: I did this in WHM, but it doesn't effect the accounts created before I made the change, it only effects "new accounts" When I login to the account I want to change via Cpanel it says "The Default E-Mail/Catch-All feature has been disabled by default due to Spam and Security concerns. Please contact support if you need assistance with creating mail forwards (aliases) as an alternative. " How can I use WHM to edit the accounts manually to set the catchall to :fail: someone heeeelp?
I am the cpanel server admin? When I enable the feature, it only effects "new accounts" being accounts created after I enable it. I want to enable the feature for ALL accounts - being accounts that I created whilst the feature was originally switched off.
if you need to change : blackhole to :fail for all the domains. You can use the following replace :blackhole: :fail: -- /etc/valiases/* Thanks!
afaik, the thing that you set in whm is the default setting that is used while creating a new cpanel account. for changing already made settings, you will have to do that manually. I don't think theres an option to multi-reset in all cpanels that you have on your server
Hi there Sn@ke! Your wish is my command. I'm assuming this is a linux/centos box. The following should all be done via ssh. Make a backup of all files in /etc/valiases before running and then create a file (touch filename) and add the following: #!/usr/bin/perl print "Converting all domain Default Accounts to :fail: ..."; opendir (DIR, "/etc/valiases/") or die; while (my $file = readdir (DIR)) { if ($file =~ /^\./) {next} open (IN, "</etc/valiases/$file") or die; my @data = <IN>; close (IN); open (OUT, ">/etc/valiases/$file") or die; foreach my $line (@data) { if ($line =~ /^\*\:/) { print OUT "*: :fail:\n"; } else { print OUT $line; } } close (OUT); } print "Done!\n"; Code (markup): Then run: perl filename