Forum Moderators: bakedjake

Message Too Old, No Replies

Delete incomming emails to dont_exist@domain.com

I want to keep my catch all

         

MikeMike

12:56 pm on Oct 8, 2004 (gmt 0)

10+ Year Member



I have finally set up spamassassin and procmail and they send around 2000 spam emails to /dev/null per day. I still have several slipping through to me and I noticed that most of them are sent to the same few non existing email addresses such as log@mydomain.com, aster@mydomain.com etc, email addresses I never have used. Are there any way I can blacklist based on the email address the spam is sent to?

mat

1:20 pm on Oct 8, 2004 (gmt 0)

10+ Year Member



The most obvious, if not particularly subtle, method is to only allow incoming to specified addresses, and send (or not, tastes vary) a bounce message.

This sort of thing would work in procmail:

:0
*!^To:.*(goodaddress1@yourdomain.com¦goodaddress2@yourdomain.com¦goodaddress3@yourdomain.com)
*!^FROM_DAEMON
*!^X-Loop:spam@yourdomain.com
{
:0 h c
¦ (formail -t -r -A"X-Loop: spam@yourdomain.com " ; \
cat /home/yourdomain/junkresponse.txt ) ¦ $SENDMAIL -t
LOG='INVALID ADDRESS: '
:0
/dev/null
}

The X-Loop:spam@yourdomain.com bit gets added as an extra header in the bounce message, and is checked for on all incoming mail to avoid a never-ending closed loop.

Hope this might start you down the road.

PCInk

1:20 pm on Oct 8, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



(Post at same time!)

MikeMike

2:26 pm on Oct 8, 2004 (gmt 0)

10+ Year Member



I have used too many different email addresses on my domains over the years, and I haven't kept track of the email addresses and what purpose they have been used for.

I really just want to base this on a list of 6-7 email addresses to which the spammers keep on sending me emails, not base it on the good email addresses.

mat

2:32 pm on Oct 8, 2004 (gmt 0)

10+ Year Member



:0
* ^To:.*(killme1@yourdomain.com¦killme2@yourdomain.com)
{

:0:
/dev/null
}

Or, if you want to double-check them first rather than dev-nulling, send them to a dedicated folder and eyeball them via webmail:

/usr/spool/mail/yourdomain/tobechecked (or whatever your path would be in this case)

MikeMike

12:18 pm on Oct 9, 2004 (gmt 0)

10+ Year Member



Thats what I needed...
Thanks!