
21st June 2006, 06:12
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
RBL - spam blacklists howto
can someone point me in the direction on how i setup my postfix system with maildir too support the RBL anti-spam blacklist system
thanks,
|

21st June 2006, 09:26
|
|
Local Meanie
|
|
Join Date: Apr 2006
Location: Switzerland
Posts: 1,046
Thanks: 4
Thanked 34 Times in 32 Posts
|
|
That is quite simple. You need them to add to the "smtpd_recipient_restrictions" in your main.cf file.
All of mien looks like that:
Code:
smtpd_recipient_restrictions =
reject_invalid_hostname,
permit_sasl_authenticated,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
permit_mynetworks,
# permit_sasl_authenticated,
reject_unauth_destination,
check_recipient_access hash:/etc/postfix/recipient_checks,
check_recipient_access pcre:/etc/postfix/recipient_checks.pcre,
check_helo_access hash:/etc/postfix/helo_checks,
check_sender_access hash:/etc/postfix/sender_checks,
check_client_access hash:/etc/postfix/client_checks,
check_client_access pcre:/etc/postfix/client_checks.pcre,
reject_rbl_client relays.ordb.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client relays.ordb.org,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
permit
As you can see in the first part I do some other checks and the RBLs start with that here:
Quote:
reject_rbl_client relays.ordb.org,
reject_rbl_client opm.blitzed.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rhsbl_client blackhole.securitysage.com,
reject_rhsbl_sender blackhole.securitysage.com,
reject_rbl_client relays.ordb.org,
reject_rbl_client blackholes.easynet.nl,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client proxies.blackholes.wirehub.net,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.njabl.org,
|
Just add those rbls that you want to use
After you have altered the main.cf restart postfix ^^
Last edited by sjau; 22nd June 2006 at 18:20.
|

22nd June 2006, 00:25
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
thanks!
ive added the full string too main.cf and restarted postfix with no issues
ive installed rblcheck and rbldnsd using apt-get install - is this all i need too do for RBL blacklists too be added to my server?
thanks!!!
|

22nd June 2006, 15:41
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
|
Originally Posted by alexnz
ive installed rblcheck and rbldnsd using apt-get install - is this all i need too do for RBL blacklists too be added to my server?
|
You don't need this. Just configure Postfix as outlined above.
|

23rd June 2006, 01:20
|
|
Member
|
|
Join Date: Jun 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
|
|
thanks for that falko!
|

17th August 2006, 20:29
|
|
Member
|
|
Join Date: Apr 2006
Location: Coimbra, Portugal
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Falko,
Quote:
|
Originally Posted by falko
You don't need this. Just configure Postfix as outlined above. 
|
I have a SuSE 10.1 64bit system.
In this case is this also the only thing necessary to put RBL's to work.
My problem is that I have setup this in main.cf but in my postfix directory I still keep getting an enormous amount of trash mail going to :
/var/spool/postfix/ ...
either the emails are
/deferred
/defer
/bounced (a bit less) or
/active
and
/incomming
At this point I have no user in the system! So I should get 0 emails. This is clearly spam  .
Regards,
Pedro
Last edited by keybd_user; 17th August 2006 at 20:41.
|

17th August 2006, 21:09
|
|
Local Meanie
|
|
Join Date: Apr 2006
Location: Switzerland
Posts: 1,046
Thanks: 4
Thanked 34 Times in 32 Posts
|
|
if you want to use some more checks you could also add this:
Code:
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
Those are just standards checks on whether the email "appears" to be from a legit site.
In order to see whether you rbls work you can look at your mail.log and see if any of the lists rbls will appear in there.
|

29th January 2007, 17:47
|
|
Member
|
|
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
|
|
[QUOTE=sjau]
Code:
check_recipient_access hash:/etc/postfix/recipient_checks,
check_recipient_access pcre:/etc/postfix/recipient_checks.pcre,
check_helo_access hash:/etc/postfix/helo_checks,
check_sender_access hash:/etc/postfix/sender_checks,
check_client_access hash:/etc/postfix/client_checks,
check_client_access pcre:/etc/postfix/client_checks.pcre,
Hi all,
sorry for the bump, but those lines gave me a hickup. What do the mentioned files contain? I don't have them by default, so I think they have to be created by myself. (I admit I'm too lazy now to look up those paramters in the postfix docs in the first place  )
|

29th January 2007, 18:01
|
|
Local Meanie
|
|
Join Date: Apr 2006
Location: Switzerland
Posts: 1,046
Thanks: 4
Thanked 34 Times in 32 Posts
|
|
|

1st February 2007, 09:55
|
|
Member
|
|
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
|
|
Thank you for the link. It's a very ... extensive document
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 13:06.
|
Recent comments
13 hours 13 min ago
13 hours 18 min ago
18 hours 17 min ago
1 day 58 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 7 hours ago
1 day 13 hours ago
1 day 17 hours ago
1 day 19 hours ago