Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Howto: Securing Sendmail against open relays.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rroet
Apprentice
Apprentice


Joined: 27 May 2002
Posts: 176
Location: The Hague, The Netherlands

PostPosted: Fri Oct 25, 2002 6:08 am    Post subject: Howto: Securing Sendmail against open relays. Reply with quote

Hi,

I've played arround with sendmail a lot the last year, and I want to share the knowledge. These are just a few of the RBL-servers online, if you have more.... please append them. This will help secure the servers more and more against open relay servers.

The following code should be added to your /etc/mail/sendmail.mc and don't forget to hash your sendmail.mc to sendmail.cf like this: m4 sendmail.mc > sendmail.cf:
Code:

FEATURE(blacklist_recipients)
FEATURE(`dnsbl', `relays.ordb.org', `"550 Mail from " $&{client_addr} " rejected - see http://www.ordb.org/faq/"')dnl
FEATURE(`dnsbl', `bl.spamcop.net', `"550 Mail from " $&{client_addr} " rejected - see http://spamcop.net/bl.shtml?"$&{client_addr}')dnl
FEATURE(`dnsbl', `relays.osirusoft.com', `"550 Mail from " $&{client_addr} " rejected - see http://relays.osirusoft.com')dnl
FEATURE(`dnsbl', `proxy.relays.monkeys.com',  `"550 Mail from " $&{client_addr} " rejected')dnl
FEATURE(`delay_checks')dnl


You need to add the feature "blacklist_recipients" to be able to pass the senders serverserveraddress through the blacklist servers... After that I've added as much "FREE" servers as I could find.

the "FEATURE(`delay_checks')dnl" is a feature which is not specifically needed, all it does is create some extra output in the /etc/mail/mail.log so you can find which server / which e-mailaddress tried to spam your server.
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Wed Oct 30, 2002 7:14 am    Post subject: Reply with quote

very cool ... I have been looking for an anit-spam solution
Back to top
View user's profile Send private message
Xor
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2002
Posts: 144

PostPosted: Wed Oct 30, 2002 6:05 pm    Post subject: Reply with quote

this are mine I use...

relays.ordb.org relays.visi.com dnsbl.njabl.org

they are quite good and quick.... trust me.... know first hand :(
Back to top
View user's profile Send private message
col
l33t
l33t


Joined: 08 May 2002
Posts: 820
Location: Melbourne - Australia

PostPosted: Wed Oct 30, 2002 10:13 pm    Post subject: Reply with quote

how would you put any exception in ? ....like say you need to recieve mail from some ISP that has been blacklisted ??
Back to top
View user's profile Send private message
Rroet
Apprentice
Apprentice


Joined: 27 May 2002
Posts: 176
Location: The Hague, The Netherlands

PostPosted: Thu Oct 31, 2002 6:40 am    Post subject: Reply with quote

I don't. My clients know about this and support it. The fight against openrelays is harsh and it has to be done.

I think you can fix it though. check your /etc/mail/access file. You should be able to open relays in here :)
_________________
Workstation: Shuttle SN85G4v2, AMD64 3200+, 512MB, 250GB sata, Radeon 9800 Pro.
Server 1: here
Server 2: here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum