Spam: Difference between revisions

From Hackepedia
Jump to navigationJump to search
No edit summary
Frankk (talk | contribs)
No edit summary
Line 1: Line 1:
== BSD ==
On OpenBSD this should work out of the box. On FreeBSD you have to mount a fdescfs(5) filesystem in order to get this working.
There is an effective way to block spam using [[pf]] and spamd ([[OpenBSD]]'s version, not SpamAssassin's). These are taken directly from [http://www.openbsd.org/papers/bsdcan05-spamd/index.html Bob Beck's slide presentation at BSDCAN 2005]
There is an effective way to block spam using [[pf]] and spamd ([[OpenBSD]]'s version, not SpamAssassin's). These are taken directly from [http://www.openbsd.org/papers/bsdcan05-spamd/index.html Bob Beck's slide presentation at BSDCAN 2005]


Line 14: Line 19:
  */30    *    *    *    *    /usr/local/sbin/spamd-setup
  */30    *    *    *    *    /usr/local/sbin/spamd-setup


Also probably worth your time to check out your spamd.conf although it shouldn't require modification to work out of the box. Now moving on to the [[Testing:Process]].
Also probably worth your time to check out your spamd.conf although it shouldn't require modification to work out of the box.  
 
 
 
 
 
Now moving on to the [[Testing:Process]].

Revision as of 18:19, 25 October 2005


BSD

On OpenBSD this should work out of the box. On FreeBSD you have to mount a fdescfs(5) filesystem in order to get this working. There is an effective way to block spam using pf and spamd (OpenBSD's version, not SpamAssassin's). These are taken directly from Bob Beck's slide presentation at BSDCAN 2005

in pf.conf (note variables):

table <spamd> persist
no rdr on { lo0, lo1 } from any to any
rdr inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port 8025
table <spamd-white> persist
rdr pass inet proto tcp from !<spamd-white> to any port smtp -> 127.0.0.1 port 8025
pass in log on $ext_if inet proto tcp to $Mail_servers port smtp keep state
pass out log on $ext_if inet proto tcp from $Mail_servers to any port smtp keep state

and add the cronjob:

*/30    *    *    *    *    /usr/local/sbin/spamd-setup

Also probably worth your time to check out your spamd.conf although it shouldn't require modification to work out of the box.



Now moving on to the Testing:Process.