Koozali.org: home of the SME Server

mail processing.

wacko

mail processing.
« on: June 29, 2004, 02:47:24 PM »
I seem to have a new problem with spam eMail
eMail which has spam scores like the one below dont seem to go through to the sep spam account I have setup via procmail.

I checked the procmail file and all looks fine,

Quote

# ---------------------------------------
# Default Shell, Program & file locations
# ---------------------------------------
SHELL=/bin/bash
DEFAULT=$HOME/Maildir/
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/Maildir/
PMDIR=$HOME
SENDMAIL=/usr/sbin/sendmail

# ---------------------------------------------
# lots of logging, usually for debugging only !
# ---------------------------------------------
VERBOSE=no
LOGFILE=$HOME/procmail.log


# ----------------------------------------------------------------------
# Route email to SpamAssassin Router
# The condition line ensures that only messages smaller than 250 kB
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
# isn't bigger than a few k and working with big messages can bring
# SpamAssassin to its knees.
# ----------------------------------------------------------------------
:0fw
* < 256000
| /usr/bin/spamc




# -------------------------------------------------------------------------
# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox or simply delete them. (This one is optional.)
# --------------------------------------------------------------------------
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*
/dev/null

# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to spam@ mailbox
# -------------------------------------------------------------------------
:0
* ^X-Spam-Status: Yes
! spam@domain.com


# -------------------------------------------------------------------------
# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to the junkmail folder
# -------------------------------------------------------------------------
#:0
#* ^X-Spam-Status: Yes
#$MAILDIR/;junkmail/



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



via the user manager it is set to geek mode and the procmail file itself doesnt have any problems so I cant understand why it doesnt process it?

any help!




Quote
X-Spam-Report:
   *  0.0 HTML_MESSAGE BODY: HTML included in message
   *  2.0 PYZOR_CHECK Listed in Pyzor (http://pyzor.sf.net/)
   *  3.0 SUSPICIOUS_RECIPS Similar addresses in recipient list
   *  4.3 SORTED_RECIPS Recipient list is sorted by address
   *  2.0 RCVD_IN_RFCI RBL: Sent via a relay in ipwhois.rfc-ignorant.org
   *      [$ has inaccurate or missing WHOIS data at the]
   [RIR]
   *  0.8 MSGID_FROM_MTA_HEADER Message-Id was added by a relay
X-Spam-Status: Yes, hits=12.1 required=2.0 tests=HTML_MESSAGE,
   MSGID_FROM_MTA_HEADER,PYZOR_CHECK,RCVD_IN_RFCI,SORTED_RECIPS,
   SUSPICIOUS_RECIPS autolearn=no version=2.63
X-Spam-Level: ************
Quote

wacko

mail processing.
« Reply #1 on: June 29, 2004, 02:53:22 PM »
it appears that the procmail file doesnt seem to get read at all, because even mails which should be deleted because of a high spam score come through.

Im sure it s a simple change somewhr but just cant figure out whr!

Anonymous

mail processing.
« Reply #2 on: June 29, 2004, 04:20:24 PM »
Quote from: "wacko"
it appears that the procmail file doesnt seem to get read at all, because even mails which should be deleted because of a high spam score come through.

Im sure it s a simple change somewhr but just cant
figure out whr!


Does your /home/e-smith/users/"user"/.qmail tell it to use .procmailrc.

Mine says:
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------


| /usr/bin/procmail ~/.procmailrc
# Vacation Message Disabled

Per

wacko

mail processing.
« Reply #3 on: June 29, 2004, 04:48:34 PM »
ahh spot on!

Quote
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation
#------------------------------------------------------------

&
./Maildir/
# Vacation Message Disabled


that seemed to be the problem
(have no idea why it changed to that, I havnt made any changes to the system for a while,

I changed it to use procmail via user-manager and hopefully it will work without problems now

on another note although same issue with a different account the administrator account, I have the same issue but admin user directory has no files apart from a home directory.

How would I fix the same issue but with the admintrator account?!

many thanks for your quick response.

Anonymous

mail processing.
« Reply #4 on: June 29, 2004, 06:23:17 PM »
on another note although same issue with a different account the administrator account, I have the same issue but admin user directory has no files apart from a home directory.

How would I fix the same issue but with the admintrator account?!

Look in /home/e-smith.

Per

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
mail processing.
« Reply #5 on: March 26, 2005, 07:40:11 PM »
I found the solution.
These happens because the users are created BEFORE spamassasin is installed.
The new users created with spamassasin installed have the code in their home dir

Quote
| /usr/bin/procmail ~/.procmailrc
# Vacation Message Disabled

For update the old users created before spamassasin, execute this command:
Code: [Select]
/sbin/e-smith/signal-event user-modify

Sorry for my english