LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-07-2007, 07:19 AM   #1
csdhiman
Member
 
Registered: Mar 2007
Posts: 47

Rep: Reputation: 15
postfix block sender ip


I want to block some spam ips in postfix .so that they cannt send mail to me .

what tag i have to use for this

i am using rbl list in

smtpd_recipient_restrictions =
smtpd_recipient_restrictions =
#reject_invalid_hostname,
#reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
check_recipient_access hash:/etc/postfix/recipient
reject_unauth_destination,
reject_rbl_client relays.ordb.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client multihop.dsbl.org,
permit



suggest me the tag to block sender ip
 
Old 08-07-2007, 07:27 AM   #2
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
You can try my other post here.

http://nixcraft.com/mail-servers/328...blacklist.html

------
 
Old 08-07-2007, 08:05 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I think you're using too many blacklists.

reject_rbl_client relays.ordb.org, #dead, remove
reject_rbl_client dnsbl.njabl.org, #part of sbl-xbl.spamhaus.org, see below
reject_rbl_client opm.blitzed.org, #dead, remove
reject_rbl_client cbl.abuseat.org, #part of sbl-xbl.spamhaus.org, see below
reject_rbl_client bl.spamcop.net, #ok to use now
reject_rbl_client sbl.spamhaus.org, #change to sbl-xbl.spamhaus.org, see spamhaus' site for what it does
reject_rhsbl_client blackhole.securitysage.com, #haven't heard of this one; a cursory check makes it look ok
reject_rhsbl_sender blackhole.securitysage.com, #see above
reject_rbl_client blackholes.easynet.nl, # dead. remove
reject_rbl_client proxies.blackholes.wirehub.net, #see above
reject_rbl_client list.dsbl.org, #no automatic removal; many entries that are years old. would not use.
reject_rbl_client multihop.dsbl.org, #see above

In addition, I think it's smarter to only do a little DNSBL-based blocking at the STMP level, and let spam software like spamassassin do further checks and assign a spam score. I use sbl-xbl.spamhaus.org and bl.spamcop.net only, because they have very few false positives. See http://www.dnsbl.com/ for more DNSBL information.
 
Old 08-07-2007, 10:08 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Quote:
suggest me the tag to block sender ip
You'll have to define an access table and call it with check_client_access.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSTFIX how to block/delete mail from sender... hct224 Linux - Newbie 5 12-29-2009 10:11 PM
Postfix, relay sender restriction barghota Linux - Software 1 09-13-2006 02:24 PM
qmail: how can I block emails which have no sender address? hamish Linux - Networking 0 08-16-2006 04:16 PM
postfix 554 validating sender exodist Linux - Networking 3 06-26-2006 12:29 PM
Undelivered Mail Returned to Sender - Block Email henryvl Linux - Networking 1 02-15-2006 04:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration