LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 11-30-2003, 01:08 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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.
 
Old 11-30-2003, 11:40 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
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
 
Old 12-01-2003, 03:31 AM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtain IP addr. from MAC addr? Ryand833 Linux - Wireless Networking 3 06-30-2005 02:59 PM
How can I block net access for 1 user? jimk Linux - Security 10 11-26-2004 12:43 PM
block ip address/hosts sohmc Linux - Security 3 09-19-2004 12:13 PM
Block RIAA on Kazza NEt kazykid22 Linux - Software 2 09-21-2003 02:14 PM
odd default gateway address, uses addr ~.ip.~ whatzat? piratebiter Linux - Networking 0 09-07-2003 08:06 PM


All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration