Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-15-2006, 09:05 PM   #1
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.

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:

So, the following 2 emails are valid:

If I don't want to accept any email from, but should be kept. And I also need to receive email from

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, will also not be able to receive this email. Rules:

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

- spamassassin:

blacklist_to 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
Registered: Jan 2003
Distribution: Slackware
Posts: 82

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

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


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 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 02:45 AM.

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