Howto allow only message for a specific domain?

Dario Lesca <[email protected]>
Newsgroups gmane.mail.qmail.scanner
Message-ID <[email protected]>
Hi, for a specific domain, for some local user I must allow only
exchange of messages with other local users and reject messages for
external domain.
What is the best way to block all messages, sent from a specific local
user, to every external domain and accept only message for local
domain's users?

Example 1:
From: [email protected]
To: [email protected]
.....
This message must be accepted

Example 2:
From: [email protected]
To: [email protected]
.....
This message must be rejected

Example 3:
From: [email protected]
To: [email protected]
Cc: [email protected]
.....
This message must be rejected

Example 4:
From: [email protected]
To: [email protected]
.....
This message must be accepted

Please, send me some suggest... 
Many thanks!

-- 
Dario Lesca <[email protected]>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.