<<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.10 - 22 Nov 2003 - KirkStrauser)

META TOPICPARENT FreeBSD
This is an alternative to the instructions at FilterMailWithSpamAssassinViaMilter.
Line: 70 to 70

| spamc
Changed:
<
<

5. Configure SendMail? to make ProcMail the MailDeliveryAgent?

>
>

5. Configure SendMail to make ProcMail the MailDeliveryAgent?


Changed:
<
<
  • Edit your SendMail? config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).
>
>
  • Edit your SendMail config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).

  • Your new configuration file should look something like this:
/root# cd /etc/mail; tail -n 3 host.domain.com.mc
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.9 - 03 Jul 2003 - KirkStrauser)

META TOPICPARENT FreeBSD
Changed:
<
<
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:
>
>
This is an alternative to the instructions at FilterMailWithSpamAssassinViaMilter.

The general theory is that incoming mail will be piped through ProcMail? and processed according to the "recipes" in each user's setup.

Advantages:

Disadvantages:

  • This really doesn't play nicely with SendMailAndCyrus. Sure, you can make it work, but it may be more trouble than it's
worth.

1. Install SpamAssassin

  • If you have PortInstall? (from the sysutils/portupgrade port):
    portinstall mail/p5-Mail-SpamAssassin
Line: 71 to 81

MAILER(local) MAILER(smtp)
Deleted:
<
<
  • Install your new configuration:
/etc/mail# make; make install; make restart

6. Enjoy!

Congratulations! You've now installed SpamAssassin and configured SendMail? to use it to process all incoming mail. If an email meets SpamAssassin's criteria to be considered spam, then it will have an additional header added to it:

X-Spam-Flag: YES

Changed:
<
<
Finally, configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave). A sample Gnus configuration is available at EmacsWiki:SplitMailUsingBbdb.
>
>

6. Return to FilterMailWithSpamAssassin to finish up.


Changed:
<
<
Enjoy your newly-protected inbox! Reports of 90% decreases in spam content are pretty typical.
>
>
-- KirkStrauser - 03 Jul 2003

Deleted:
<
<
-- KirkStrauser - 04 Feb 2003

META FORM ClassForm  
META FIELD TopicClassification TopicClassification SystemAdministration
META FIELD OsVersion OsVersion All
Changed:
<
<
META TOPICMOVED KirkStrauser? date="1049125625" from="Freebsd.FilterSpamWithSpamAssassin" to="Freebsd.FilterMailWithSpamAssassin"
>
>
META TOPICMOVED KirkStrauser? date="1057253762" from="Freebsd.FilterMailWithSpamAssassin" to="Freebsd.FilterMailWithSpamAssassinAndProcMail"
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.8 - 31 Mar 2003 - KirkStrauser)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:
Line: 91 to 91

-- KirkStrauser - 04 Feb 2003

META FORM ClassForm  
Changed:
<
<
META FIELD TopicClassification TopicClassification NetWorking
>
>
META FIELD TopicClassification TopicClassification SystemAdministration

META FIELD OsVersion OsVersion All
Added:
>
>
META TOPICMOVED KirkStrauser? date="1049125625" from="Freebsd.FilterSpamWithSpamAssassin" to="Freebsd.FilterMailWithSpamAssassin"
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.7 - 04 Feb 2003 - KirkStrauser)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:
Changed:
<
<
1. Install SpamAssassin
>
>

1. Install SpamAssassin


  • If you have PortInstall? (from the sysutils/portupgrade port):
    portinstall mail/p5-Mail-SpamAssassin
  • Otherwise:
    cd /usr/ports/mail/p5-Mail-SpamAssassin; make install; make clean
Changed:
<
<
2. Install ProcMail
>
>

2. Install ProcMail


  • If you have PortInstall?:
    portinstall mail/procmail
  • Otherwise:
    cd /usr/ports/mail/procmail; make install; make clean
Changed:
<
<
3. Make a default ProcMail rcfile with your favorite text editor so that it looks like this:
>
>

3. Decide whether to call spamassassin directly, or run it as a daemon

3.1 Calling it directly

Pros:

  • Easy to set up
  • Unlikely to fail
Cons:
  • Slow when processing many simultaneous requests

3.2 Running as a daemon

Pros:

  • Very fast at processing multiple requests
  • No startup overhead every time an email is processed
Cons:
  • Use to lose email if the client (spamc) could not contact the daemon (spamd). This is probably fixed.
  • A small amount of extra setup is required

To run spamd:

cd /usr/local/etc/rc.d
cp spamd.sh-dist spamd.sh
/usr/local/etc/rc.d/spamd.sh start

4. Make a default ProcMail rcfile with your favorite text editor so that it looks like this:

4.1 Calling spamassassin directly:


/root# cat /usr/local/etc/procmailrc
Line: 18 to 50

| spamassassin -P
Changed:
<
<
4. Configure SendMail? to make ProcMail the MailDeliveryAgent?
>
>

4.2 Calling the spamassassin daemon with spamc:

/root# cat /usr/local/etc/procmailrc
DROPPRIVS=yes
:0fw
| spamc

5. Configure SendMail? to make ProcMail the MailDeliveryAgent?


  • If you haven't already done so, create a LocalSendmailConfiguration.
  • Edit your SendMail? config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).
Line: 34 to 76

/etc/mail# make; make install; make restart
Added:
>
>

6. Enjoy!


Congratulations! You've now installed SpamAssassin and configured SendMail? to use it to process all incoming mail. If an email meets SpamAssassin's criteria to be considered spam, then it will have an additional header added to it:



Line: 44 to 89

Enjoy your newly-protected inbox! Reports of 90% decreases in spam content are pretty typical.

Changed:
<
<
-- KirkStrauser - 03 Feb 2003
>
>
-- KirkStrauser - 04 Feb 2003

META FORM ClassForm  
META FIELD TopicClassification TopicClassification NetWorking
META FIELD OsVersion OsVersion All
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.6 - 03 Feb 2003 - KirkStrauser)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:

1. Install SpamAssassin

Changed:
<
<
  • If you have PortInstall?:
    portinstall mail/p5-Mail-SpamAssassin
>
>
  • If you have PortInstall? (from the sysutils/portupgrade port):
    portinstall mail/p5-Mail-SpamAssassin

  • Otherwise:
    cd /usr/ports/mail/p5-Mail-SpamAssassin; make install; make clean

2. Install ProcMail

Line: 44 to 44

Enjoy your newly-protected inbox! Reports of 90% decreases in spam content are pretty typical.

Changed:
<
<

-- KirkStrauser - 20 Aug 2002

>
>
-- KirkStrauser - 03 Feb 2003

META FORM ClassForm  
META FIELD TopicClassification TopicClassification NetWorking
Changed:
<
<
META FIELD OsVersion OsVersion 4.x, CURRENT
>
>
META FIELD OsVersion OsVersion All
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.5 - 14 Nov 2002 - KirkStrauser)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:
Line: 18 to 18

| spamassassin -P
Changed:
<
<
4. Configure SendMail? to make ProcMail the MailDeliveryAgent?
>
>
4. Configure SendMail? to make ProcMail the MailDeliveryAgent?

Changed:
<
<
  • Edit your SendMail? config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).
>
>
  • Edit your SendMail? config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).

  • Your new configuration file should look something like this:
/root# cd /etc/mail; tail -n 3 host.domain.com.mc
Line: 34 to 34

/etc/mail# make; make install; make restart
Changed:
<
<
Congratulations! You've now installed SpamAssassin and configured SendMail? to use it to process all incoming mail. If an email meets SpamAssassin's criteria to be considered spam, then it will have an additional header added to it:
>
>
Congratulations! You've now installed SpamAssassin and configured SendMail? to use it to process all incoming mail. If an email meets SpamAssassin's criteria to be considered spam, then it will have an additional header added to it:

X-Spam-Flag: YES
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.4 - 21 Aug 2002 - KirkStrauser)

META TOPICPARENT FreeBSD
Changed:
<
<
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming email! Here's how:
>
>
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming messages! Here's how:

1. Install SpamAssassin

  • If you have PortInstall?:
    portinstall mail/p5-Mail-SpamAssassin
Line: 40 to 40

X-Spam-Flag: YES
Changed:
<
<
Finally, configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave). A sample Gnus configuration is available at http://www.emacswiki.org/cgi-bin/wiki.pl?SplitMailUsingBbdb .

Enjoy your newly-protected inbox!

>
>
Finally, configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave). A sample Gnus configuration is available at EmacsWiki:SplitMailUsingBbdb.

Added:
>
>
Enjoy your newly-protected inbox! Reports of 90% decreases in spam content are pretty typical.

-- KirkStrauser - 20 Aug 2002

 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.3 - 21 Aug 2002 - TWikiGuest)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming email! Here's how:
Line: 40 to 40

X-Spam-Flag: YES
Changed:
<
<
Simply configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave), and enjoy your newly-protected inbox!
>
>
Finally, configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave). A sample Gnus configuration is available at http://www.emacswiki.org/cgi-bin/wiki.pl?SplitMailUsingBbdb .

Enjoy your newly-protected inbox!


-- KirkStrauser - 20 Aug 2002

META FORM ClassForm  
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.2 - 20 Aug 2002 - KirkStrauser)

META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming email! Here's how:
Line: 34 to 34

/etc/mail# make; make install; make restart
Changed:
<
<
-- Main.guest - 20 Nov 2008
>
>
Congratulations! You've now installed SpamAssassin and configured SendMail? to use it to process all incoming mail. If an email meets SpamAssassin's criteria to be considered spam, then it will have an additional header added to it:

X-Spam-Flag: YES

Simply configure your email client to move all emails with that header into their own folder (or delete them entirely, if you're feeling brave), and enjoy your newly-protected inbox!

-- KirkStrauser - 20 Aug 2002


META FORM ClassForm  
META FIELD TopicClassification TopicClassification NetWorking
META FIELD OsVersion OsVersion 4.x, CURRENT
 <<O>>  Difference Topic FilterMailWithSpamAssassinAndProcMail (r1.1 - 20 Aug 2002 - KirkStrauser)
Line: 1 to 1
Added:
>
>
META TOPICPARENT FreeBSD
Tired of getting hundreds of porn, Viagra, and fake marijuana advertisements in your email? Use FreeBSD, SpamAssassin, and ProcMail to evaluate your incoming email! Here's how:

1. Install SpamAssassin

  • If you have PortInstall?:
    portinstall mail/p5-Mail-SpamAssassin
  • Otherwise:
    cd /usr/ports/mail/p5-Mail-SpamAssassin; make install; make clean

2. Install ProcMail

  • If you have PortInstall?:
    portinstall mail/procmail
  • Otherwise:
    cd /usr/ports/mail/procmail; make install; make clean

3. Make a default ProcMail rcfile with your favorite text editor so that it looks like this:

/root# cat /usr/local/etc/procmailrc
:0fw
| spamassassin -P

4. Configure SendMail? to make ProcMail the MailDeliveryAgent?

  • If you haven't already done so, create a LocalSendmailConfiguration.
  • Edit your SendMail? config file. Locate the MAILER(local) line near the bottom. Just before that line, insert a new line: FEATURE(local_procmail).
  • Your new configuration file should look something like this:
/root# cd /etc/mail; tail -n 3 host.domain.com.mc
FEATURE(local_procmail)
MAILER(local)
MAILER(smtp)
  • Install your new configuration:
/etc/mail# make; make install; make restart

-- Main.guest - 20 Nov 2008

META FORM ClassForm  
META FIELD TopicClassification TopicClassification NetWorking
META FIELD OsVersion OsVersion 4.x, CURRENT
Revision r1.1 - 20 Aug 2002 - 16:52 - KirkStrauser
Revision r1.10 - 22 Nov 2003 - 17:09 - KirkStrauser