LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-15-2006, 09:05 PM   #1
alucard001
LQ Newbie
 
Registered: Apr 2006
Posts: 4

Rep: Reputation: 0
About blocking specific email address


Hello everyone. There is a problem I would like to ask for all your advices.

Situation:
Assume that there is an account called: myacct on linux which has sendmail, spamassassin and procmail.

Now, this sendmail server will receive email from 2 domains:

ABC.com
DEF.com

So, the following 2 emails are valid:

myacct@abc.com
myacct@def.com

Question:
If I don't want to accept any email from myacct@abc.com, but abc.com should be kept. And I also need to receive email from myacct@def.com.

How can I do this?


I have already tried:

Assume that there is a person who send an email to BOTH addresses listed above:

- Procmail: If I blocked the email address of myacct@abc.com, myacct@def.com will also not be able to receive this email. Rules:

:0 BbHh
* ^To:.*myacct\@abc\.com.*
spam

- spamassassin:

blacklist_to myacct@abc.com

myacct@def.com will also not be able to receive this email.


Can any body give some advices to the above situation?

Thank you very much for all your help!
 
Old 12-17-2006, 07:48 AM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
Maybe something like this (to myacct@abc.com and not to myacct@def)?

:0 BbHh
* ^To:.*myacct\@abc\.com.*
* !^To:.*myacct\@def\.com.*
spam
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blocking mails from specific email addresses/domains in postfix jomy Linux - Networking 1 07-15-2008 08:32 PM
Blocking Specific IP Addresses kaplan71 Fedora 2 11-10-2006 09:30 AM
iptables: blocking something.com for specific time farhan Linux - Security 2 06-11-2005 10:15 AM
Relay email for specific domains to an external address on a non-standard port BaDaBooM Linux - Networking 2 03-18-2003 10:40 PM
Blocking ports for a specific IP Shrimpy Linux - Networking 1 12-23-2002 11:48 AM


All times are GMT -5. The time now is 03:00 AM.

Main Menu
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