You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Bob Cohen <bo...@mojotools.com> on 2009/06/03 15:41:57 UTC
How to Start spamd
Sorry for the dumb question but I can't seem to find the answer in the
documentation or by googling. I'm trying to follow the Integrated
Spamd In Postfix recipe (http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
). How do I invoke spamd and then make sure it runs at boot? I'm
sure I'm missing something really easy. Nevertheless, I'm missing it.
Help would be appreciated.
Also, is there some way to minimize or create a (mostly) set and
forget method of dealing with spam? The junk mail filters in my mail
client do a pretty good job of routing the unwanted emails into the
junk mail folder, which I just delete. The recipe above seems to do
basically the same thing only up stream one level. I will still have
to empty the "spamvac" mail queue periodically. All things being
equal, I'd rather turn the mail away at the door rather than take up
my hard disk space.
Bob
Re: How to Start spamd
Posted by Robert Schetterer <ro...@schetterer.org>.
Bob Cohen schrieb:
> Sorry for the dumb question but I can't seem to find the answer in the
> documentation or by googling. I'm trying to follow the Integrated Spamd
> In Postfix recipe
> (http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix). How do
> I invoke spamd and then make sure it runs at boot? I'm sure I'm missing
> something really easy. Nevertheless, I'm missing it. Help would be
> appreciated.
>
> Also, is there some way to minimize or create a (mostly) set and forget
> method of dealing with spam? The junk mail filters in my mail client do
> a pretty good job of routing the unwanted emails into the junk mail
> folder, which I just delete. The recipe above seems to do basically the
> same thing only up stream one level. I will still have to empty the
> "spamvac" mail queue periodically. All things being equal, I'd rather
> turn the mail away at the door rather than take up my hard disk space.
>
> Bob
Hi Bob, you may use spamass-milter and/or clamav-milter with
sanesecurity antispam database with postfix
clamav-milter does quarantaine in hold by default
you may easy check that mails manual ( i.e. use webmin ) there, or
reject them at income smtp level,
spamass-milter ( with spamd ) can reject mail above a defined spamlevel
but might be more complicated to setup
for low traffic sites clamav-milter with a well done antispam setupped
postfix should be enough ( use additional rbls etc )
i wouldnt recommend setups
described in
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
( after all they would work )
if you want a nearly all around match solution try using amavis-new
or if you dont need user level spamfiltering with spamassassin
use spampd
you should find all software with example setups for postfix by google easy
--
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Re: How to Start spamd
Posted by LuKreme <kr...@kreme.com>.
On 3-Jun-2009, at 08:41, Martin Gregorie wrote:
> Take a look at the daemon management scripts in /etc/rc.d/init.d
> You should find one called spamassassin (or possibly spamd - its
> called
> spamassassin in Fedora distros).
On my FreeBSD it is
/usr/local/etc/rc.d/sa-spamd
and requires the following (or similar) in /etc/rc.conf:
spamd_enable="YES"
spamd_flags="-c -s /var/log/spamd"
--
Today the road all runners come/Shoulder high we bring you home.
And set you at your threshold down/Townsman of a stiller
town.
Re: How to Start spamd
Posted by Bob Cohen <bo...@mojotools.com>.
On Jun 3, 2009, at 10:41 AM, Martin Gregorie wrote:
> The following assumes that your system uses the Unix System V / RedHat
> daemon startup system.
Thank you. I should have mentioned I'm running Fedora 9, so yes
System V applies. There was no init.d script but the Spamassassin
source distro comes with one. I put that in /etc/rc.d/init.d and set
up the service. Things look like they are working. I'll probably
monitor the spamvac account for a while to vet for false positives and
eventually set up a cron job to delete the queue. Thanks again for
your help.
Bob
Re: How to Start spamd
Posted by Martin Gregorie <ma...@gregorie.org>.
On Wed, 2009-06-03 at 09:41 -0400, Bob Cohen wrote:
> Sorry for the dumb question but I can't seem to find the answer in the
> documentation or by googling. I'm trying to follow the Integrated
> Spamd In Postfix recipe (http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
> ). How do I invoke spamd and then make sure it runs at boot? I'm
> sure I'm missing something really easy. Nevertheless, I'm missing it.
> Help would be appreciated.
>
The following assumes that your system uses the Unix System V / RedHat
daemon startup system.
Take a look at the daemon management scripts in /etc/rc.d/init.d
You should find one called spamassassin (or possibly spamd - its called
spamassassin in Fedora distros). This script defines the service that
lets spamd be started, stopped and have its status checked. Assuming its
called 'spamassassin, execute:
chkconfig -level 345 spamassassin on
to mark the spamd service as active at run levels 3,4 and 5 and then
start it with:
service start spamassassin
or use your distro's GUI system configuration tool to do the same job if
you prefer that way of working.
If spamd is installed but there's no service control script for it
in /etc/rc.d/init.d you'll have to write one. Copying and editing an
existing script is as good a way as any to do this. You'll need to
supply start and stop priorities for spamd. Set the start priority to be
just lower than the Postfix value and its stop priority to be just
higher. This means that, at boot time spamd is started just before
Postfix and during shutdown or a system reboot it is stopped just after
Postfix. See 'man chkconfig' for details.
Then configure the service and start it as shown above.
> Also, is there some way to minimize or create a (mostly) set and
> forget method of dealing with spam? The junk mail filters in my mail
> client do a pretty good job of routing the unwanted emails into the
> junk mail folder, which I just delete. The recipe above seems to do
> basically the same thing only up stream one level. I will still have
> to empty the "spamvac" mail queue periodically. All things being
> equal, I'd rather turn the mail away at the door rather than take up
> my hard disk space.
>
Two suggestions:
1)set up a daily or weekly cron job to delete the spamvac
mail queue.
2)if you want to send spam direct to /dev/null, you can simply
change the final version of filter.sh in
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix so that,
instead of running $NEW_COMMAND and exiting with $NEWCOMMAND's exit
status, it just deletes $OUTPUT and exits with the EX_OK exit status.
You'll find the value defined in sysexits.h. This will cause the
spam-flagged message to be silently thrown in the bit bucket.
Martin