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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SendMail - /dev/null

Status
Not open for further replies.
May 12, 2008
3
ES
Hi all,

I would like to send to /dev/null all mail receibed from a specifically host.

Any ideas?

Regards
 
Might depend on version of sendmail but I use the
access filr

someuser@whatever.com DISCARD

then I have to recompile the access file, I wrote a script so I don't have to remember the commands
#!/bin/ksh

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

sleep 2

/sbin/service sendmail restart

ps -eaf|grep send

Norm

 
I try to use discard in access but I allways get "relaying to denied"

I have a 8.12.11 SendMail version and if I add in access my machine: 10.0.51.137 DISCARD

220 smtp-pre ESMTP Sendmail 8.12.11/8.10.2; Mon, 15 Dec 2008 08:47:19 +0100 (CET
)
helo kko
250 smtp-pre Hello orobledillo.inet.sistemas.geci [10.0.51.137], pleased to meet
you
mail from:bill.gates@microsoft.com
250 2.1.0 bill.gates@microsoft.com... Sender ok
rcpt to:eek:scar@telecor.es
550 5.7.1 oscar@telecor.es... Relaying denied

 
If you have sendmail DISCARD mail from your machine, of course relaying will be denied. You want to put the domain, ip or email address of the source you want to discard. You can also do this with a procmail filter.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top