Hi again RhinoKiller and thanx agin for your answer.
I tried to hash it together with your command but it does not work thoug.
It only works to reject a domain if i put the domain in the acces-file.
yahoo.com REJECT
It works and will reject all mail from yahoo.com, but i only want to allow mail from two domains and reject all others without having to put them into the access file. This is a AMTRIX system on an AIX platform. So i will not have that application to start processing SPAM

.
Am i missing something in my .mc file. These are the entries.
# more /usr/samples/tcpip/sendmail/cf/poggen.mc
# @(#)80 1.1 src/bos/usr/samples/tcpip/sendmail/cf/aixsample.mc, tcpsamp, bos510 10/24/00 16:08:36
# Sample AIX file
divert(0)dnl
OSTYPE(poggen)dnl
DOMAIN(ediutv)dnl
FEATURE(accept_unresolvable_domains)dnl
FEATURE(access_db)dnl
MAILER(local)dnl
MAILER(smtp)dnl
// Thanx again for your help RhinoKiller