Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: John on June 10, 2003, 02:50:03 AM

Title: Spamassasin rpm
Post by: John on June 10, 2003, 02:50:03 AM
Hi

I have 5.6 and have decided enough is enough and I need spamassasin.

last time I looked into this there was no rpm for spamassasin for 5.6.

Can somebody bring me up to speed on this.

is there an rpm?

is it something that is configured so you can add to your blacklist and whitelist and see what is being held/deleted in the server manager.

John
Title: Re: Spamassasin rpm
Post by: Ray Mitchell on June 10, 2003, 01:20:01 PM
http://www.leiinc.com/repository/Linux/Mitel_SME_Server/Beta/Spamassassin/

You will also need user manager panel from dungog.net
Ray
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 03:05:04 PM
Hi

Thanks.

I have installed those and seems to be up and running.

How do I test it... almost makes me want somebody to send me some spam now to see what happens...

Maybe I should be addressing these kinds of questions to a spamassassin list.

But I am still cnfused over how it works.

Say somebody sends me some spam and my mail program logs on to my pop account to download my mail and in there is an email which is from Mr Annoyingafrican who wants me to send him my bank details so he can transfer $11m and spamassassin sees this and thinks "no way"

What then happens to this mail? does it arrive in my inbox and get chucked in a junkmail file and I have to go in and add the sende rto my blacklist or what?

John
Title: Re: Spamassasin rpm
Post by: Brian Read on June 10, 2003, 04:37:53 PM
If you have ticked the box in the spamassassin server mamanger panel  to route your spam to a "junkmail" mail box folder, then it will be retained on the server, and you can use webmail:

https:/webmail

to examine it.

If you do this and find there is no "junkmail" folder, then you have not yet had any spam, and thus procmail has not created it.

Cheers

Brian
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 05:13:57 PM
Hi

If I type https:/webmail I get:

An error occured while loading https:/webmail:

Unknown host No host specified!

I am assuming this is not right and I am making a very basic error that is going to make me feel like a total and utter newbie.

John
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 05:16:19 PM
Hi

Sorry I did put in my server in that so I put https:/Neo/webmail (Neo being my mailserver.

Before somebody groans and calls me a total and utter twit!

John
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 05:20:59 PM
Hi

However if I put in http://Neo/webmail I get:

The requested URL /webmail was not found on this server

What does this mean?

John
Title: Re: Spamassasin rpm
Post by: Ray Mitchell on June 10, 2003, 05:48:55 PM
Well it depends what setting you put in server manager

Try https://Neo/webmail

You do need to enable webmail in the server manager and chose what type of access you allow http or https and whether local or public

As far as spammassassin is concerned it depends on whether you are using POP or IMAP.
You need to instal user manager and enable procmail for each user.

If IMAP then you should see the junkmail folder in your email client.
If you are using POP then do not tell spamassassin to send to the junkmail folder, the only way you will get to see the folder is by using webmail.

If you use POP then messages considered as spam will be delivered as usual, but you can tell spamassassin to apend the SPAM report to the message. That way it is pretty clear which messsages are spam and which messages are not.
You can set up a rule in procmail to handle these messages as you see fit.


Hope this helps
Ray
Title: Re: Spamassasin rpm
Post by: Ray Mitchell on June 10, 2003, 05:51:46 PM
To test, send yourself some mail that has lots of phrases that emulate junk or spam mail content. Use words like $10,000 and buy and sell and use ALL CAPITALS, things that spamassassin will pick up on.

Have a look at their web site for details.

Ray
Title: Re: Spamassasin rpm
Post by: Brian Read on June 10, 2003, 06:30:39 PM
sorry about the https:/webmail

I mean't

https://yourservername/webmail

Except I put the "yourservername" in chevrons, and the forum email sender editted them out for some reason.  The posting was correct on the web!!

Ray has given you more useful info, so i hope it is working now.

Cheers

Brian
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 07:44:50 PM
Hi

I sent myself some spam [Gaarrr] and it went straight on through no problem. Had all the classics in the title PrOn PENIS EXTENSION EARN £10,000 etc

Don't think I have webmail set up properly.

I have the user manager panel installed and running. I have enabled email retrieval for all users.

is there anything I can do by logging into the command prompt as root to get some idea of what is going on.

Like find out if webmail is running etc...

I will go have a look at the FAQ at spamassassin when I can access them (timing out all the time at the moment).

John
Title: Re: Spamassasin rpm
Post by: Brian Read on June 10, 2003, 08:04:21 PM
No, webmail doesn not "run" it is just there.

I suspect you have not enabled procmail processing for you users.  This is a multi stage process.  Having installed the user-manager, then go back into server mamanger and look for the user panel access panel. Go into the Global parameters, and tick the box for userpanel-procmail.  Then log into the user manager:

https://yourserver/user-manager

and put in your username and password, and goto the "process mail" panel, where you can set the user into "geek" mode.

Then return to server manager and go to the spamasassin planel and restart spamassassin.

Hope this helps

Cheers

Brian
Title: Re: Spamassasin rpm
Post by: John on June 10, 2003, 08:47:55 PM
Hi

OK did that.

Got a friend to send me some spam and it all got through.

John
Title: Re: Spamassasin rpm
Post by: Ray Mitchell on June 10, 2003, 10:12:17 PM
go to
https://Neo/user-manager

logon as a user whose email you want to be scanned by spammassassin
logon with the user password
in user manager go to Your settings Forward mail

The Email delivery field on rhs should be set to Use procmail to process mail

If you do not have this set for every user then the email just bypassess spamassassin and will not get scanned and "go straight through" as you say.

Use something like this for a message, I have just been testing it myself and this message definitely gets caught by spamassassin

MAKE  $1,000,000 INSTANTLY
BECOME A MILLIONAIRE OVERNIGHT
YOU CAN BE RICH TOO

Regards
Ray
Title: Re: Spamassasin rpm
Post by: John on June 11, 2003, 12:23:05 AM
Hi

Cheers Ray have done as you said.

Bit confused still.

Do I still have to have it set in geek mode?

Do I have to set all the spam rules mysslf.

ALso I am confused about what i should do with my email program.

DO I have to set it now to get mail off my server rather than log into my pop accounts?

John
Title: Re: Spamassasin rpm
Post by: John on June 11, 2003, 01:03:21 AM
Hi

I will figure this out!

I don't think I have server setup right (or at least I don't have the concept in my head).

Don't I have to set fetchmail to poll my ISP pop mail box log in and get my mails (Basically the same as what you do when you set up a email program - set the pop server, set the smtp server give it a user login and password).

Having done this I assume they get sorted by procmail and put into folders on the server (A bit like setting rules and folders in a email program).

Now the bit where I am confused is where the spamassassin comes in. I assume that part of procmails job is to also sort out spam from the other stuff. I asssume the promail rules cause the system to grab mail that is judged to be spam and either hold onto it on the server ina folder, forward it marked as spam or delete it. The blacklists then must be like super rules that automaticaly hold on to mail that the blacklist rules catch? I know whitelists enable mail identified by the whitelist to pass through.

Now the next question I have is how do I then set up my email programs (Sylpheed) on client machines to receive mail for that particular user from the server.

I hope this makes sense and that maybe somebody could "adjust" my understanding and explain what I do at each point.

I asssume my first thing to do is to set up fetchmail to get my mail from my ISP pop account. I assume this is done in server manager in email retreival?

John






Is this right?
Title: Re: Spamassasin rpm
Post by: Ray Mitchell on June 11, 2003, 11:56:24 AM
All this assumes that your email system is already delivering mail correctly before you start using spamassassin. If not then get it working before playing with spamassassin and procmail.


> Do I still have to have it set in geek mode?

You can use Normal (your rules are controlled by user-manager procmail web interface) or you can use Geek mode where all rules are controlled by manual command line intervention and not by the web panel.

> Do I have to set all the spam rules myself.

The spam rules are part of spamassassin, just set the spamassassin config as you want it, plus the white & black lists of course.

> DO I have to set it now to get mail off my server rather than
> log into my pop accounts?

Its your choice, if you want POP or IMAP, I don't think using spamassassin changes how you can collect your mail, although if you use IMAP it can direct the spam message to a "junkmail" folder (if enabled), whereas if you use POP the spam message is just delivered as usual to your user account. Then you can use a procmail rule to filter the spam messages if you want, this is where it would be good to enable spamassassin to add the word SPAM to each spam message so you can filter on it if desired.

Hope this helps
Ray
Title: Re: Spamassasin rpm
Post by: John on June 11, 2003, 04:09:16 PM
Hi

BIG thanks to all for the help.

I got it all set up and working.

John
Title: Re: Spamassasin rpm
Post by: marc sultan on June 20, 2003, 01:13:52 PM
Hi,
Well i've followed all the thread and i must say i'm like John
i have my mail serveur working fine but i use SSL encryption and IMAP (use the great securemail package) i installed all the package needed, looked for the latest release of spamassassin and i can't get junkmail folder in spite i setup my account in geek mode
any ideas ?

Marc SULTAN
Title: Re: Spamassasin rpm
Post by: Dave on June 22, 2003, 01:27:21 PM
Well I too have followed this through and configured everyone to use IMAP and logged in idividually as each user (only eight of us) and selected process mail and set the email delivery to use procmail.

I have sent, via hotmail account, spam as mentioned earlier but it still gets through.

So I'm at a loss what to do next.

Thanks to everyone for input I'm sure if I keep trying I'll get there :~)

Dave
Title: Re: Spamassasin rpm
Post by: Dave on June 22, 2003, 03:04:10 PM
Well, I know its working, I added my hotmail address to the black list, sent an email and BAM it got sent to the junkmail folder.

There's hope yet :~)

Dave
Title: Re: Spamassasin rpm
Post by: marc sultan on June 24, 2003, 02:12:39 PM
Hi all,

Well dave, i think i get trouble to get spamassassin working well because i use port 465 for secure SMTP/IMAP and i guess i need to fix it manually but i hadn't time to check for that
but it seem many here got it working so we should find a way i'll let u know if i can figure out what was the problem...