Koozali.org: home of the SME Server

Junkmail folder

Offline Teviot

  • *
  • 610
  • +0/-0
Junkmail folder
« on: November 16, 2006, 01:02:43 AM »
Is there a command that I can execute that clean all junkmail from all email users to clean out the junkmail folders for each user
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Junkmail folder
« Reply #1 on: November 16, 2006, 12:05:50 PM »
teviot

/etc/cron.d/purge_junkmail
...

Offline Teviot

  • *
  • 610
  • +0/-0
Junkmail folder
« Reply #2 on: November 16, 2006, 12:10:30 PM »
Code: [Select]
[root@gateway ~]# /etc/cron.d/purge_junkmail
-bash: /etc/cron.d/purge_junkmail: Permission denied
[root@gateway ~]#


Ray

That didn't work.  Is there something I should check???
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline raem

  • *
  • 3,972
  • +4/-0
Junkmail folder
« Reply #3 on: November 16, 2006, 12:17:13 PM »
teviot

> /etc/cron.d/purge_junkmail
> That didn't work.  Is there something I should check???[/quote]

> Please don't tell me to read this or that.

So I didn't.
...

Offline raem

  • *
  • 3,972
  • +4/-0
Junkmail folder
« Reply #4 on: November 16, 2006, 12:24:20 PM »
>Is there something I should check?

If you read /etc/cron.d/purge_junkmail you will find the command, but the problem is you don't want to be told to read something.
...

Offline byte

  • *
  • 2,183
  • +2/-0
Junkmail folder
« Reply #5 on: November 16, 2006, 11:06:22 PM »
If you wanted to you could set to automatically clear junkmail after say 90 days by doing...

db configuration setprop spamassassin MessageRetentionTime 90

Where 90 is the value you want, then do...

signal-event email-update
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline Teviot

  • *
  • 610
  • +0/-0
Junkmail folder
« Reply #6 on: November 17, 2006, 12:26:16 AM »
Thank you byte

You have been most helpfull.  Will give that a go and see how thing pan out
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline raem

  • *
  • 3,972
  • +4/-0
Junkmail folder
« Reply #7 on: November 17, 2006, 01:45:43 AM »
byte

> MessageRetentionTime 90

90 days is the default setting anyway, if you enable junkmail filtering in server manager.
You would usually run that command to set a different number of days to suit your situation.
...

Offline sbaker712

  • *
  • 14
  • +0/-0
Junkmail folder
« Reply #8 on: November 17, 2006, 05:36:58 PM »
i would like to know where the junkmail folder is located for each user. i have looked in the /home/e-smith/files/users/"username"/... under the Mail directory nothing is listed. under the Maildir directory the only options i can see is cur, new, and tmp. nothing is listed under current since the client uses pop3 to download the messages from the server so nothing is saved to the server. under new i am only seeing stuff when the have new messages arriving before they have downloaded them off the server. now under tmp i am not seeing anything.

I am running latest release of SME 7 build in serveronly mode. Contribs that I currently have installed sme7admin, saco-qmHandle-1.3.1, user-manager, and mailstats.

i have also set up a secondary server that has no contribs added to it to see if the ;junkmail folder exists in the /home/e-smith/files/users/"username"/Maildir folder and i am still not seeing the folder but i do see the folder when when logging into webmail.

any help in pointing me in the right direction would be greatly appreciated. i had just recently upgraded from SME 6.01 to SME 7.0 to have better control over the volume of spam i am getting. which by the way  has been great so far.

Offline byte

  • *
  • 2,183
  • +2/-0
Junkmail folder
« Reply #9 on: November 17, 2006, 07:15:14 PM »
Quote from: "RayMitchell"

90 days is the default setting anyway


That's correct I was just showing how it works...Should have mentioned it was the default value.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
Junkmail folder
« Reply #10 on: November 17, 2006, 07:18:56 PM »
Quote from: "sbaker712"

if the ;junkmail folder exists in the /home/e-smith/files/users/"username"/Maildir folder and i am still not seeing the folder but i do see the folder when when logging into webmail.


Its in /home/e-smith/files/users/joe/Maildir/.junkmail

If you use mc command you will be able to see...Dont forget because its got a . at the start means its a hidden folder.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline sbaker712

  • *
  • 14
  • +0/-0
Junkmail folder
« Reply #11 on: November 17, 2006, 07:27:14 PM »
thank you so much byte. i just completely spaced out that it could have been a hidden folder. i am guessing this is a change that was added to SME 7 because i could have sworn that in SME 6 with Spamassassin contrib that it was not hidden. anyways thank you now i can clean of some of these junkmail folders from people that get regularly spammed.