A script that sets all default mail boxes to :fail:

nat

Well-Known Member
Jan 16, 2003
209
0
166
Is there a script that sets all default mail boxes for all current accounts to :fail:
 

rootsupport

Member
May 2, 2006
18
0
151
India
You can try the below attached perl script for converting all domain Default Accounts to :fail
 

Attachments

bartdc

Member
May 17, 2006
16
0
151
In addition to this, is there any way to set all default mail boxes who don't forward to another e-mail address to :fail: ? So that settings that users made themself won't be lost?

Thanks,
Bart
 

mattlindi

Member
Jan 20, 2004
10
0
151
bartdc said:
In addition to this, is there any way to set all default mail boxes who don't forward to another e-mail address to :fail: ? So that settings that users made themself won't be lost?

Thanks,
Bart
it's actually more proper to set them to :blackhole:

setting them to fail a) increases traffic on the network because it sends a reply and b) notifies the sender that there is a real mailserver listening (spammers love that).

just my $.02 - YMMV
 

xisn

Well-Known Member
Dec 4, 2004
136
5
168
cPanel Access Level
Root Administrator
Actually, :fail: is the best option, for more information, see the write up here:
http://www.configserver.com/free/fail.html

You can also find TONS of stats to prove that :fail: is the better option...


mattlindi said:
it's actually more proper to set them to :blackhole:

setting them to fail a) increases traffic on the network because it sends a reply and b) notifies the sender that there is a real mailserver listening (spammers love that).

just my $.02 - YMMV
 

mattlindi

Member
Jan 20, 2004
10
0
151
xisn said:
Actually, :fail: is the best option, for more information, see the write up here:
http://www.configserver.com/free/fail.html

You can also find TONS of stats to prove that :fail: is the better option...
Ahh -

# Your server does not send a bounce message (just the DENY command)
# Your server does not send anything to the sender of the email (i.e. the address in the From: line)
I thought the opposite was true. (scurries off to change everyone to :fail: - yipes! )

Thanks