Spamassassin start on reboot?

Forum for getting help with Project Gamera, Spamassassin, Clamav, qmail-scanner and other anti-spam tools.
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Spamassassin start on reboot?

Unread post by Galactic Zero »

Hello.

Seems Spamassassin isn't starting on a server reboot. I thought qmail-scanner was supposed to set that?

What do I need to check to make sure this is configured correctly...
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Qmail-scanner doesn't control that. What does chkconfig --list spamassassin say?
Lemonbit Internet Dedicated Server Management
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

[root@gz spamassassin]# chkconfig --list spamassassin
spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Well, that's the problem then. SpamAssassin is not started for any runlevel. A quick chkconfig --level 345 spamassassin on should fix that.
Lemonbit Internet Dedicated Server Management
Galactic Zero
Forum Regular
Forum Regular
Posts: 471
Joined: Mon Dec 06, 2004 10:43 pm

Unread post by Galactic Zero »

thanks...

exactly why 345? instead of say just 2? I looked at clamd and it is on for only 2. Just curious...
Franklyn Halamka
Still learning my way around Linux Security.
http://www.galacticzero.net
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

Depends on what runlevel you're running as. Linux machines without X (GUI) usually run at runlevel 3. Linux with GUI usually uses runlevel 5. Setting it for 3, 4 and 5 is just a habit. Different distributions use runlevels differently. See Wikipedia for more info.

You can run runlevel to see the current runlevel.
Lemonbit Internet Dedicated Server Management
Post Reply