Spam Assassin

18 posts / 0 new
Last post
#1 Tue, 04/14/2009 - 13:22
karamon98

Spam Assassin

Hello, I have spamassassin installed in webmin but it isn't showing up in my Virtualmin.

I haven't set up any servers yet, but it still isn't displayed under Virtualmin -> System Settings -> Features and Plugins as "Spam Filtering"

as I've seen in other installations. How do I get this enabled/installed?

Tue, 04/14/2009 - 16:35
Joe
Joe's picture

Did you use our automated install script? Sounds like no. If at all possible, we'd recommend you start with a freshly installed supported OS and run install.sh, which will install all dependencies and configure them correctly for use with Virtualmin.

If this isn't an option: Are you sure you have SpamAssassin installed? The SpamAssassin Webmin module is <i>not</i> the same as SpamAssassin. It is a GUI for controlling SpamAssassin. But, you have to install SpamAssassin separately (we recommend using packages provided by your OS).

--

Check out the forum guidelines!

Wed, 04/15/2009 - 04:59 (Reply to #2)
karamon98

Yes, I am sure that it is installed and working correctly. Starting a fresh install unfortunately is not an option.

Output from spamassassin:
$ spamassassin -V
SpamAssassin version 3.2.4
running on Perl version 5.8.5

If I copy over the spam, spamclear, spamclear.pl, etc from another installation and change the config files to point ot the right things, would this work?

It should also be noted that I haven't set up any virtual servers yet, I don't think this really matters though.

Is there any other information that would help you give a informed response to getting this feature enabled?

Thanks for your time!

Wed, 04/15/2009 - 06:09 (Reply to #3)
andreychek

When you say it's not an option, where are you looking for that? For example, does &quot;spam filtering&quot; show up in Features and Plugins?
-Eric

Wed, 04/15/2009 - 06:15 (Reply to #4)
karamon98

From original post:

<div class='quote'>I haven't set up any servers yet, but it still isn't displayed under Virtualmin -&gt; System Settings -&gt; Features and Plugins</div>

It additionally doesn't show up anywhere else in the virtualmin panel. It does show up (and is working) in the webmin panel. Let me know any more info I can provide. Thanks!

Wed, 04/15/2009 - 06:23 (Reply to #5)
andreychek

Sorry, that's what I get for trying to help quickly without reading the entire thread :-)

You may need to go into Webmin -&gt; Servers -&gt; SpamAssassin -&gt; Module Config, and verify that all the paths for the various SpamAssassin components are correct.

I couldn't really say whether or not copying that from another server would work... it depends on a lot of factors :-)
-Eric

Wed, 04/15/2009 - 06:56 (Reply to #6)
karamon98

All info in webmin module config is there and module is functioning correctly...

Wed, 04/15/2009 - 09:27 (Reply to #7)
Joe
Joe's picture

After you've confirmed that SpamAssassin is configurable in Webmin (but please don't use the Webmin module to setup procmail, as that conflicts with the way Virtualmin uses procmail), run the configuration check in Virtualmin. Then look in Features and Plugins again. I'm guessing Webmin didn't know about SpamAssassin to start with...the only reason spam options wouldn't show up is if the tools Webmin needs to perform spam filtering aren't present. You also need procmail (make sure Webmin knows about it, too), and procmail-wrapper if you're using Postfix as your mail server (depending on your OS, we may have prebuilt packages for you, or you may need to compile and install it yourself).

--

Check out the forum guidelines!

Fri, 04/17/2009 - 07:22
karamon98

Hmm... this still isn't working. I can verify that webmin can edit spamassassin settings but virtualmin after recheck still isn't picking it up.

If I attempt to reinstall as was originally suggested. Is there a way to make sure that things are going to be set up the same as they are now? If I uninstall/reinstall it also doesn't uninstall any packages that are currently in place like stat reporting, etc, etc?

Will the re-install find everything that was there before?

Is there anything else I can do to troubleshoot the spam filtering optinos in virtualmin?

Fri, 04/17/2009 - 12:16 (Reply to #9)
Joe
Joe's picture

Don't reinstall. Because the answer to &quot;Will the re-install find everything that was there before?&quot; is no. Uninstalling Virtualmin deletes Virtualmin and Webmin's metadata...like users, mail preferences, and tons of other stuff. Of course you have backups (<i>everybody</i> has good backups, right!?!), but you don't want the hassle of that just to find that the problem you're trying to solve still exists. Why would it be different on reinstall? Are you planning to install differently than you did last time? I don't really understand the mind-set of thinking a reinstall will do anything useful...doing the same things and expecting different results isn't really the right way to solve problems. ;-)

I'm not sure if you answered my question about how you installed to start with. Did you use install.sh? (If the answer is &quot;no&quot;, and you could now safely start over and use install.sh, then you should definitely do so. If you already have virtual servers setup, then you can't &quot;safely&quot; start over.)

What OS are you running?

If an RPM based distro, what is the output of the following:

rpm -q spamassassin

rpm -q procmail-wrapper

rpm -q procmail

rpm -q virtualmin-base

--

Check out the forum guidelines!

Fri, 04/17/2009 - 18:39
karamon98

<div class='quote'>What OS are you running?</div>
RHEL 4

<div class='quote'>rpm -q spamassassin</div>
spamassassin-3.2.4-1.el4.1

<div class='quote'>rpm -q procmail-wrapper</div>
Not installed

<div class='quote'>rpm -q procmail</div>
procmail-3.22-14.1.el4

<div class='quote'>rpm -q virtualmin-base</div>
Not installed (I installed this from the webmin panel, not sure if it would have used an RPM)

rpm -q webmin
webmin-1.470-1.rs

Thanks again for your time!

Fri, 04/17/2009 - 20:25 (Reply to #11)
Joe
Joe's picture

OK, multiple problems.

You need procmail-wrapper. Get it from our repos. (http://software.virtualmin.com/gpl/centos/4/i386 or x86_64)

<div class='quote'>
rpm -q webmin
webmin-1.470-1.rs
</div>

This is not a full Webmin. Rackspace has a custom Webmin that has been stripped of a number of necessary modules. I don't know if it's missing any related to spam, but you definitely need to switch to our Webmin package.

There are docs about Rackspace systems here:

http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,tro...

--

Check out the forum guidelines!

Mon, 04/20/2009 - 13:18
karamon98

<div class='quote'>This is not a full Webmin. Rackspace has a custom Webmin that has been stripped of a number of necessary modules. I don't know if it's missing any related to spam, but you definitely need to switch to our Webmin package.</div>

I can see the issues here, everything is much clearer now!

I haven't actually started using Virtualmin yet, only have it installed. Would it be 'wiser' to just go ahead and get a clean install as I don't have any 'meta-data' stored yet?

I do use webmin itself fairly extensively.

What possible difficulties would I be looking at with a clean install?

Thanks for the help thus far.

Mon, 04/20/2009 - 20:54 (Reply to #13)
Joe
Joe's picture

Yes, if installing fresh is a good and safe option for you, I would recommend it. Installation of the Virtualmin-related software (like Postfix, Apache, procmail, Dovecot, SpamAssassin, ClamAV, etc.) and configuring it in a reasonably nice way for virtual hosting is a non-trivial task and takes a lot of work. Most of it really isn't even Virtualmin related. It's just the stuff you have to do to setup a full-feature virtual hosting system with reasonable security, decent spam and AV filtering, and reasonable mail functionality. And install.sh just happens to do it in a way that Virtualmin is configured to work with, by default (which saves you an additional bunch of steps, since you don't then have to teach Virtualmin what your system looks like).

The difficulties should only be those documented in the link above. If you follow the necessary steps to kill off their Webmin package, and make sure it never comes back (by making sure yum knows not to install it), the installation should go as smoothly on a RackSpace system as on any other CentOS 5 system. Which is to say, &quot;very smoothly&quot;.

--

Check out the forum guidelines!

Mon, 04/20/2009 - 20:56 (Reply to #14)
Joe
Joe's picture

Oh, wait, just realized you said RHEL 4. Why did you choose RHEL4? That's a pretty old system at this point. RHEL 5 would be a better choice for pretty much anything, if you have the option.

But, RHEL 4 is historically pretty well supported and tested, but it's been a long time since we had anyone report good or bad things about it, so I don't know if there have been any changes in the install that might break on older operating systems.

--

Check out the forum guidelines!

Tue, 04/21/2009 - 06:33 (Reply to #15)
andreychek

Yeah, if you're considering a clean install, you might find that you have a much more recent system -- more up to date packages and the like -- by going with RHEL 5, or perhaps even CentOS 5 if cost is an issue.

And if you hadn't used the install.sh script to get things up and running, you'll find Virtualmin much more awesome after using it, as all sorts of stuff comes configured out of the box!

Just make sure you read the link Joe posted above before performing the Virtualmin install :-)
-Eric

Tue, 04/21/2009 - 09:43
karamon98

Well, this is a production server at the moment so starting over from scratch completely really isn't an option. Will things not work as expected if I don't use RHEL 5 and more recent packages?

Tue, 04/21/2009 - 11:11 (Reply to #17)
Joe
Joe's picture

Ah, I misunderstood you when you said, &quot;Would it be 'wiser' to just go ahead and get a clean install as I don't have any 'meta-data' stored yet?&quot; I thought you meant &quot;clean install of the system&quot;. ;-)

<div class='quote'>Will things not work as expected if I don't use RHEL 5 and more recent packages?</div>

I don't exactly know what you mean. What more recent packages? Our Virtualmin packages from the virtualmin-universal repo should work on any RPM-based distribution, including RHEL4. All binaries should be coming from repos that are built explicitly for your OS and version (so the virtualmin repo ought to be pulling from /centos/4/i386 or /centos/4/x86_64). It wouldn't be safe to mix and match builds intended for RHEL5.

--

Check out the forum guidelines!

Topic locked