Koozali.org: home of the SME Server

How can I stop spam mails from goint to junkmail folder?

Kelly Tran

How can I stop spam mails from goint to junkmail folder?
« on: March 26, 2004, 01:34:35 PM »
Please take it easy on me... I am new with Linux.  Where do I need to change in the .procmailrc file to stop tagged spam mails from goint to my junkmail folder?

-----------------------------------------
:0
* ^X-Spam-Status: Yes (changes Yes to No ?)
$MAILDIR/;junkmail/

# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT
------------------------------------------

TIA,
Kelly

Offline hordeusr

  • ***
  • 68
  • +0/-0
How can I stop spam mails from goint to junkmail folder?
« Reply #1 on: March 26, 2004, 03:57:35 PM »
What are you using to filter with?  Spamassassin?  Where do you want the spam to go?  If you are using Spamassassin you could just turn it off, then the spam will be delivered.  Oh, and of course, Why do you not want junkmail to be delivered to the junkmail folder?  In what you show, you could change it to $MAILDIR/ and it should just go to the Inbox.  However, that's a templated file so the server will overwrite it at some point.  A description of what SME version you are running and added software would be helpful.  Then add to that exactly what you want done and why.  Someone may have a better solution.

Kelly Tran

How can I stop spam mails from goint to junkmail folder?
« Reply #2 on: March 26, 2004, 06:39:06 PM »
I am using E-Smith 6.0 with ClamAV and SpamAssassin from swerts-knudsen.dk.  It works like a charm but I just don't want the tagged spam mails to be sorted to the junkmail folder.  I simply want all emails go my inbox.  Please help...

Kelly

Offline hordeusr

  • ***
  • 68
  • +0/-0
How can I stop spam mails from goint to junkmail folder?
« Reply #3 on: March 26, 2004, 07:52:22 PM »
why bother with spamassassin then?  The spam still ends up in your inbox.  You can turn of spamassassin in the options.  swerts-knudsen.dk spamassassin requires procmail, the Procmail swerts-knudsen.dk sets up by default forwards to the junkmail folder. You might try contacting swerts-knudsen.dk if you want to modify what they have done.  Or find the custom templates they use to modify the procmail configuration and remove the 'move to junkmail folder' part.

Jesper Knudsen

How can I stop spam mails from goint to junkmail folder?
« Reply #4 on: March 26, 2004, 10:51:06 PM »
If you do not want the tagged email to be placed in the junkmail automatically on a SME 6.0 server folder but simply delivered to the inbox with modified subject field then you need to remove the procmail template for sorting:

[root@e-smith]# cd /etc/e-smith/templates-user/.procmailrc
[root@e-smith]# rm -f 95SpamSort

Then re-run the procmail configuration updater.
[root@e-smith]# cd /root
[root@e-smith]# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
[root@e-smith]# chmod 755 lat-procmail
[root@e-smith]# ./lat-procmail -c "*|enabled|no|some|normal"

Rgds,
Jesper

Jesper Knudsen

How can I stop spam mails from goint to junkmail folder?
« Reply #5 on: March 26, 2004, 10:57:22 PM »
If you do not want the tagged email to be placed in the junkmail automatically on a SME 6.0 server folder but simply delivered to the inbox with modified subject field then you need to remove the procmail template for sorting:

[root@e-smith]# cd /etc/e-smith/templates-user/.procmailrc
[root@e-smith]# rm -f 95SpamSort

Then re-run the procmail configuration updater.
[root@e-smith]# cd /root
[root@e-smith]# wget http://sme.swerts-knudsen.dk/downloads/SpamAssassin/lat-procmail
[root@e-smith]# chmod 755 lat-procmail
[root@e-smith]# ./lat-procmail -c "*|enabled|no|some|normal"

Rgds,
Jesper

drbauer

Just delete it
« Reply #6 on: March 27, 2004, 07:18:29 AM »
I would be interested in just dumping the spam tagged messages, or better yet a script to weekly go through and emptiy all users junkmail folders, I think that this would be easy enough as a one time script , but I would want to have it be able to deal with new users, and there is where I get hung up.

carlosp

How can I stop spam mails from goint to junkmail folder?
« Reply #7 on: March 29, 2004, 09:36:44 AM »
I have to say a script like this would really be helpful.

Carlos

Offline hordeusr

  • ***
  • 68
  • +0/-0
How can I stop spam mails from goint to junkmail folder?
« Reply #8 on: March 29, 2004, 11:21:37 PM »
I did have a set-up that deleted our junkmail automatically, but it was a modification in our webmail system(IMP/Horde).  I put it in with the automatic trash removal maintenance.  It would dump junkmail that had been in the folder for more than X amount of days.  It would do this every login, daily, weekly, monthly, yearly, depending on how I set it up.  Now we use ASSP and all I can say is WOW--it works great for our server...much less load...junkmail is just rejected.  Another option is using the dungog spamassassin rpms.  They cost a small amount, but allow more custom stuff, global settings, just deleting e-mail, forward to a junkmail account, individual account settings(if someone still wants a junkmail folder) etc...

Offline raem

  • *
  • 3,972
  • +4/-0
How can I stop spam mails from goint to junkmail folder?
« Reply #9 on: March 30, 2004, 12:29:31 AM »
Greg Zartmans implementation of spamassassin for sme v6.0 has a server manager panel that allows Sortspam selection (ie to junkmail folder or to inbox).
It also has a selection to reject messages based on RBLs, as well as setting up your own customised white lists and black lists.

Only use this if you have plenty of processor power and plenty of RAM, or your server may grind to a halt when it gets busy.

Search these forums on "RBLList" for a neat way to block a lot of "crap" before it even gets into your server. Spamassassin and virus scanner will end up having a lot less to do.

Here is the link
http://forums.contribs.org/index.php?topic=21195.msg84012#msg84012

Its works very effectively, but be careful choosing which lists to "look up", you may block wanted emails.

Regs
Ray
...