Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access DB for RELAY

Status
Not open for further replies.

svkadmin

Technical User
Feb 20, 2005
8
SE
Hi Sendmail professionals !!

I want to be able to REJECT email from all domains not listed in access.db.
What entry should i put in the ACCESS for accompliche this behaviour.

I only want to recieve email from a few domains ??


// Best regards Martin
 
spamdomain REJECT
or
spamdomain DISCARD

Depending on how taxed your box is, the DISCARD has a lower overhead because it does not need to invoke the mailer.

Cogito Ergo Sum - Non Compos Mentis
 
Afterthought:
You will of course have to add the tld.
spamdomain.com
spammer.net

Cogito Ergo Sum - Non Compos Mentis
 
Hi RhinoKiller and thanx for your answer !!!

But i do not get it to work anyway. Sorry !!

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.

What is missing in the access-file ??

// Thanx and best regards

 
Check your syntax:
makemap hash /etc/mail/access < /etc/mail/access - no good
makemap hash /etc/mail/access.db < /etc/mail/access



Cogito Ergo Sum - Non Compos Mentis
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top