LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how do I block mail sent to my .net address as opposed to my .com addr? (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-block-mail-sent-to-my-net-address-as-opposed-to-my-com-addr-121282/)

BrianK 11-30-2003 12:08 PM

how do I block mail sent to my .net address as opposed to my .com addr?
 
my mail is on, let's say, X.com - so my e-mail address is briank@X.com. Because of the way it's set up, I also get mail sent to briank@X.net.

For some unknown reason, about 95% of the spam I get is sent to briank@X.net, but I haven't given that address to ANYONE - sooo.. I can eliminate about 95% of my spam by simply rejecting all mail sent to briank@X.net (and I know I won't be missing any legit mail because I haven't given out that address).

Is there a way to do that? some sort of .mail file or something?

Thanks.

twantrd 11-30-2003 10:40 PM

Hi,

You could use procmail with spamassassin for this. For me, I run exim3 w/procmail and qpopper as my pop server. Pretty much, my procmail filters all the inbound messages and separates accordingly from my recipe list. You could write a recipe that dumps all the inbound messages for brian@x.net to /dev/null (which is the wastebucket). Read up on procmail. It's awesome!

-twantrd

BrianK 12-01-2003 02:31 AM

Quote:

Originally posted by twantrd
You could use procmail with spamassassin for this. For me, I run exim3 w/procmail and qpopper as my pop server. Pretty much, my procmail filters all the inbound messages and separates accordingly from my recipe list. You could write a recipe that dumps all the inbound messages for brian@x.net to /dev/null (which is the wastebucket). Read up on procmail. It's awesome!
Thanks... my super minimal .procmailrc looks like this:
Code:

#SPAMMERS DELIGHT
:0:
* ^To.*briank@.*X.net
/dev/null

:0:
* ^Cc.*briank@.*X.net
/dev/null

Works great!

Feel free to post your clever tricks. ;)


All times are GMT -5. The time now is 02:12 PM.