I just want to recieve emails from a few companies and
all other i want the mailserver to reject.
So in my sendmail.cf i have the C{tls}VERIFY ENCR for ACCESS.DB.
In my access file i put in
mydomain.se OK
anotherdomain.se OK
spamdomain REJECT
spamdomain.com REJECT
spammer.net REJECT
and then i hash it with makemap hash /etc/mail/access < /etc/mail/access
Though i have done this i am able to send mail from yahoo to my mailserver and that is not what i want. I just want to be able to get mail from mydomain.se and anotherdomain.se.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.