blocking mail using sendmail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers blocking mail using sendmail
# 1  
Old 10-09-2001
Network blocking mail using sendmail

Hi,
I am using sendmail 8.9.1 and trying to block email from certain domain/user. How could I do that? TQ
# 2  
Old 10-09-2001
Sendmail can easily do that with the Anti-Spam features (whether or not you are refusing the mail for spam-related reasons is irrelevant)

http://www.sendmail.org/m4/anti-spam.html

See the section on access_db
# 3  
Old 10-09-2001
Power

When I use this command

makemap hash /etc/mail/access < /etc/mail/access

it says

type hash is not supported by this version
I use solaris 2.6 (sunOS5.6):
# 4  
Old 10-09-2001
hash requires the Berkeley DB library.....

Quote:
NAME
makemap - create database maps for sendmail

SYNOPSIS
makemap [-C file] [-N] [-c cachesize] [-d] [-e] [-f] [-l]
[-o] [-r] [-s] [-u] [-v] maptype mapnam

DESCRIPTION
Makemap creates the database maps used by the keyed map
lookups in sendmail(8). It reads input from the standard
input and outputs them to the indicated mapname.

Depending on how it is compiled, makemap handles up to
three different database formats, selected using the map-
type parameter. They may be

dbm DBM format maps. This requires the ndbm(3)
library.

btree B-Tree format maps. This requires the new Berkeley
DB library.

hash Hash format maps. This also requires the Berkeley
DB library.
# 5  
Old 10-09-2001
Power

After unpacking the DB Berkeley distribution and running the following command (building for UNIX),

../dist/configure

I got the error message..
configure: error: No ar utility found

Perl 5.6.o is used
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Proxy Server

How to send mail (sendmail) for php mail()?

PHP mail() function doesn't work. Nor does sendmail: loaded system configuration file /etc/msmtprc ignoring user configuration file /home/xi/.msmtprc: No such file or directory falling back to default account using account default from /etc/msmtprc host = xsi port = 25 proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies

2. UNIX for Dummies Questions & Answers

Does the mail command use sendmail?

The question is, Does the mail comman actually send using sendmail or something else? So I am trying to test if sendmail is set up. I used... cat testemail.txt | mail -s "test mail" myemail@test.com I used my email though I didn't get an error, but didn't get the email either. ... (2 Replies)
Discussion started by: wondernate
2 Replies

3. Shell Programming and Scripting

how to know the mail sent status using sendmail

Hi, I am using sendmail command to send mail This is the command i am using cat <filename> | /usr/lib/sendmail -v <emailid> I will put the contents in the file as body of the email I want the subject also to be printed in the email I want to know whether email has been successfully... (1 Reply)
Discussion started by: trichyselva
1 Replies

4. Shell Programming and Scripting

mail or sendmail ?

1. I need to send emails using a shell script on linux. I want to use the most widespread method (the preferred method). Is one considered deprecated in favor of the other? Which, mail or sendmail ? 2. Now, without trying to favor mail in the first question: How can I include a From: mail... (1 Reply)
Discussion started by: limmer
1 Replies

5. UNIX for Advanced & Expert Users

Sendmail help for nobody mail box

Hi there all, I got a small tiny problem of not remambering how this worked. I get when I mail to a non existing mailbox I get a return failer to nobody@domain.bla wich will end up in root@domain.bla What I want is to get it to /dev/NULL so I dont get a messege when I mailed to a non existing... (0 Replies)
Discussion started by: draco
0 Replies

6. Linux

Restrict mail from Sendmail

Hello All, i have configured sendmail and trying to set a limit on mail Ex: If i have send any mail to a email-if that doesn'e exists, i want that after trying for 3 days it should stops sending that mail to user and send a mail to the sender that " sending mail failed , any messaged... (1 Reply)
Discussion started by: saurabh84g
1 Replies

7. Solaris

sendmail mail server help

Hello guys, Am trying to enable/start sendmail in Solaris 10. I tried using scvadm and also did it using the /etc/init.d/sendmail restart but no effect. Just returns to the prompt. No errors nothing. I checked if it is running using ps -eaf | grep sendmail, not running :( . I checked the logs... (9 Replies)
Discussion started by: rcmrulzz
9 Replies

8. UNIX for Advanced & Expert Users

blocking sendmail from domain

hi i edited the /etc/mail/access files with the line "yahoo.com REJECT", afterwhich i cannot send out files to the yahoo.com domain. :mad: can someone advise on how to go about configuring such that i am able to send mail out to yahoo.com BUT block INCOMING mail from yahoo.com :confused: i... (0 Replies)
Discussion started by: legato
0 Replies

9. Email Antispam Techniques and Email Filtering

Sendmail Access DB TLD Blocking ....

Now this is a bit tricky, but works great if you can decide which Top Level Domains or TLDs you want to receive mail We are getting so much spam from countries we never receive useful mail, I've been experimenting with blocking entire TLDs using sendmail access_db as an antispam technique. ... (0 Replies)
Discussion started by: Neo
0 Replies

10. UNIX for Dummies Questions & Answers

Sendmail - forwarding mail

quick question. I have a webserver that has various scripts for user registration and ect on it. I want to post (mail) these to myself - however I am a bit stuck on how to configure sendmail to do this. The hosting partner that I use has provided me with the use of their relay to send on the... (1 Reply)
Discussion started by: warrend
1 Replies
Login or Register to Ask a Question