hwmig2007smapassassin
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | hwmig2007smapassassin [2015/06/09 15:23] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[: | ||
+ | |||
+ | (The following subject to correction) | ||
+ | |||
+ | ====== SpamAssassin ====== | ||
+ | |||
+ | ===== Overview ===== | ||
+ | |||
+ | * Can run in various modes | ||
+ | * For us, runs as a filter that MTA postfix uses | ||
+ | * Permanently running spamd (daemon), transiently running spamc (clients) | ||
+ | * SpamAssassin scores the email - something else can decide what to do with it | ||
+ | * SpamAssassin adds a header with the score to the email itself | ||
+ | * Mailman uses the Spamassassin score | ||
+ | * score > 10 -> mailman discards automatically | ||
+ | * score < 5 -> mailman accepts | ||
+ | * 5 > score > 10 -> mailman submits to moderator for human decision | ||
+ | |||
+ | ===== SpamAssassin docs ===== | ||
+ | |||
+ | * http:// | ||
+ | * / | ||
+ | |||
+ | ===== SpamAssassin - MTA - mailing list integration ===== | ||
+ | |||
+ | * We use postfix as our MTA | ||
+ | * We use mailman as our mailing list manager | ||
+ | |||
+ | ===== SpamAssassin - config ===== | ||
+ | |||
+ | * / | ||
+ | * / | ||
+ | * / | ||
+ | * / | ||
+ | * / | ||
+ | * I searched for " | ||
+ | * found http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * and for reference: | ||
+ | * http:// | ||
+ | * and http:// | ||
+ | * Note that some of the above documents are "out of date". That's ok, - our distro is "out of date" too so these docs will match our setup | ||
+ | * There' | ||
+ | |||
+ | update: | ||
+ | |||
+ | * I searched for " | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | ====== SpamAssassin Quick & Dirty Config ====== | ||
+ | |||
+ | I found this and tried it out on our site: http:// | ||
+ | |||
+ | * Install postfix and get it working for your domain. See http:// | ||
+ | * Install SpamAssassin. The easiest way to do this is with the command "perl -MCPAN -e ' | ||
+ | * As root, create a file at / | ||
+ | < | ||
+ | #!/bin/bash | ||
+ | / | ||
+ | exit $? | ||
+ | </ | ||
+ | |||
+ | * Run: | ||
+ | < | ||
+ | chmod 755 / | ||
+ | </ | ||
+ | |||
+ | and make sure you have it executable: | ||
+ | < | ||
+ | ls -als / | ||
+ | </ | ||
+ | |||
+ | * Create a user called ' | ||
+ | < | ||
+ | example: useradd -m -d / | ||
+ | </ | ||
+ | |||
+ | * Run | ||
+ | < | ||
+ | chown spamfilter: | ||
+ | </ | ||
+ | |||
+ | * In / | ||
+ | |||
+ | // | ||
+ | |||
+ | < | ||
+ | # ----------------------------------------------------------------------------------- | ||
+ | smtp inet n - n - - smtpd | ||
+ | -o content_filter=spamfilter: | ||
+ | # ----------------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | * In / | ||
+ | < | ||
+ | # ----------------------------------------------------------------------------------- | ||
+ | spamfilter unix - n n - - pipe | ||
+ | flags=Rq user=spamfilter argv=/ | ||
+ | # ----------------------------------------------------------------------------------- | ||
+ | </ | ||
+ | |||
+ | |||
+ | * Make sure that SpamAssassin is configured to run: | ||
+ | * Edit / | ||
+ | * Issue the command "/ | ||
+ | * Check / | ||
+ | * Make sure the symlinks are in the appropriate runlevel directories | ||
+ | * Restart postfix and make sure you can still get email. Send a fake spam through the system (from an outside address) to verify that spam is marked as spam. For information on configuring SpamAssassin, | ||
+ | |||
+ | |||
hwmig2007smapassassin.txt · Last modified: 2015/06/09 15:23 by 127.0.0.1