You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bazooka Joe <fa...@gmail.com> on 2009/05/06 20:26:56 UTC
Best way to invoke SA?
centos w/ sendmail - 500+ users - some users want their spam or a
higher spam level - most are happy w/ defaults. Would like to not scan
outgoing email.
1. spamass-milter
2. procmail
3. other?
Re: Best way to invoke SA?
Posted by mouss <mo...@ml.netoyen.net>.
John Hardin a écrit :
> On Wed, 6 May 2009, Adam Katz wrote:
>
>> SpamAssassin does not need to run on your outbound server.
>
> It could be argued that doing so is useful to detect intrusions that
> result in a spambot being installed on the local network.
>
For that to be really helpful, one should use a different configuration
for outbound mail (IP checks aren't useful, ... etc).
Alternatively, rate limiting or log parsing may be easier to setup.
Re: Best way to invoke SA?
Posted by John Hardin <jh...@impsec.org>.
On Wed, 6 May 2009, Adam Katz wrote:
> SpamAssassin does not need to run on your outbound server.
It could be argued that doing so is useful to detect intrusions that
result in a spambot being installed on the local network.
--
John Hardin KA7OHZ http://www.impsec.org/~jhardin/
jhardin@impsec.org FALaholic #11174 pgpk -a jhardin@impsec.org
key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
The difference between ignorance and stupidity is that the stupid
desire to remain ignorant. -- Jim Bacon
-----------------------------------------------------------------------
2 days until the 64th anniversary of VE day
Re: Best way to invoke SA?
Posted by Adam Katz <an...@khopis.com>.
Kris Deugau wrote:
> Bazooka Joe wrote:
>> centos w/ sendmail - 500+ users - some users want their spam or a
>> higher spam level - most are happy w/ defaults. Would like to not scan
>> outgoing email.
>>
>> 1. spamass-milter
>> 2. procmail
>> 3. other?
>
> For per-user configs, it's easiest to call spamc from procmail; prefs
> can be stored in a database (makes eg Squirrelmail's SA plugin useful)
> or on the filesystem in individual user dirs (doesn't play well with
> domain hosting without some trickery). Calling from per-user
> .procmailrc files means you can allow some users to have their spam in
> their inbox.
spamass-milter and similar mechanisms (mailscanner, amavis, and now
even milter-greylist) have the distinct advantage of more optimized
calls to spamd and the ability to reject mail at SMTP-time (so a legit
sender gets a bounce message from his/her sending server while a
forged sender does not) and then short-circuit other portions like
procmail/sieve and other scans that happen after SA.
Procmail has the distinct advantage of being by far the easiest to set
up. It also allows for more user-level customization, for example, my
previous server was set to run spamassassin unless the user had a
~/.spamassassin/no-scan file, and while I was trying out a new version
of SA, beta users triggered it by creating ~/.spamassassin/beta file.
As long as you're using spamc instead of spamassassin, procmail is
only slightly slower than the daemons, but YMMV.
As to outgoing mail ... at least put the MX record on its own IP
address (though a dedicated NIC is preferable, and the best option is
a separate server). Your outbound SMTP server should do things like
require encryption and authentication and allow relaying to anywhere
while your MX record SMTP server should relay only to the domains it
controls. SpamAssassin does not need to run on your outbound server.
Re: Best way to invoke SA?
Posted by Dave Walker <Da...@ubuntu.com>.
Kris Deugau wrote:
> Bazooka Joe wrote:
>> centos w/ sendmail - 500+ users - some users want their spam or a
>> higher spam level - most are happy w/ defaults. Would like to not scan
>> outgoing email.
>>
>> 1. spamass-milter
>> 2. procmail
>> 3. other?
>
> For per-user configs, it's easiest to call spamc from procmail; prefs
> can be stored in a database (makes eg Squirrelmail's SA plugin useful)
> or on the filesystem in individual user dirs (doesn't play well with
> domain hosting without some trickery). Calling from per-user
> .procmailrc files means you can allow some users to have their spam in
> their inbox.
>
> What kind of hardware, and mail volume? Just about anything new
> should be fine; if you're stuck with older hardware I'd recommend at
> least an aggregate ~2GHz of CPU, ~2G of RAM.
>
> -kgd
I push mail via spamc to spamassassin on a dedicated box. For just one
user, you can get away with much lower spec than mentioned. I'd even go
as far to say any ol' box laying on the shelf! However, don't expect to
use it for much else.
The mail is pushed via postfix MTA to spamassassin, comes back and is
delivered via procmail. The procmail rules can be specific per user,
but for my personal mail I tend to deliver based on rules to:
Inbox
|---Spam
|-- Surely
|-- Maybe
|-- TeachSpam
Where "Surely" is spam greater than a score of 5, "Maybe" is a score
greater than 3 and "Teachspam" is where I move any missed spam and it
pushes back to SA as known spam to be taught.
The benefit of using procmail is that you can have additional rules for
placing mail. However some people swear by a MDA called Sieve.
However you do it, it doesn't really matter IMO - however, I quite like
that way.
Kind Regards,
Dave Walker
Re: Best way to invoke SA?
Posted by Kris Deugau <kd...@vianet.ca>.
Bazooka Joe wrote:
> centos w/ sendmail - 500+ users - some users want their spam or a
> higher spam level - most are happy w/ defaults. Would like to not scan
> outgoing email.
>
> 1. spamass-milter
> 2. procmail
> 3. other?
For per-user configs, it's easiest to call spamc from procmail; prefs
can be stored in a database (makes eg Squirrelmail's SA plugin useful)
or on the filesystem in individual user dirs (doesn't play well with
domain hosting without some trickery). Calling from per-user
.procmailrc files means you can allow some users to have their spam in
their inbox.
What kind of hardware, and mail volume? Just about anything new should
be fine; if you're stuck with older hardware I'd recommend at least an
aggregate ~2GHz of CPU, ~2G of RAM.
-kgd