how to drop emails sent to non-existing account

newbies

Active Member
Jul 9, 2004
31
1
156
Hi,

How can I set cpanel to drop any emails sent to non-existing account? Now my default account gets so many spam.

I know DirectAdmin allows to do that, but don't know how to do it in cpanel.

thank you for your help.
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,001
3
168
Setting your default account to forward to either :fail: or :blackhole: (both with the colons) will stop message delivery for all addresses not setup on your account.

:fail: will create a "bounce" message to the sender

:blackhole: will simply discard the message
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
:fail: will create a "bounce" message to the sender

:blackhole: will simply discard the message
The cPanel exim configuration doesn't work that way now, with the verify = recipient rule that is in the standard ACL list ;)

:fail: will give a RCPT rejection at the SMTP level and not accept the mail (no bounce)
:blackhole: will accpt the whole email and then discard during filter processing

So, :fail: is the way to go now since you don't even accept the email for delivery.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
I didn't read it indepth ;) but because :fail: is rejecting the mail it never gets to the autoresponder, whereas with :blackhole: the mail is accepted and the auto-responder routine in exim is being picked up before the mail is thrown away. Something like that anyway, though I may have misread it :)
 

SarcNBit

Well-Known Member
Oct 14, 2003
1,001
3
168
chirpy said:
but because :fail: is rejecting the mail it never gets to the autoresponder,
<snip>
though I may have misread it :)
It does get to the autoresponder. The sender gets two messages, the auto response and a bounce. :eek: