LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Spamassassin + Courier Imap + Procmail (http://www.linuxquestions.org/questions/linux-software-2/spamassassin-courier-imap-procmail-200324/)

Savahn 07-02-2004 09:56 AM

Spamassassin + Courier Imap + Procmail
 
I have an email server running Slackware 10 using Sendmail 8.13, Courier-IMAP, Spamassassin 2.63, Procmail, and Squirrelmail. I have set my procmailrc file to send all emails with a header of X-Spam-Status = Yes to INBOX.Spam, but the emails do not appear in the Spam folder they seem to vanish into thin air. Here is my procmailrc file:

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
SHELL=/bin/sh
DROPPRIVS=YES
SPAM=$HOME/Maildir/.Spam/
VERBOSE=YES

:0fw
| /usr/bin/spamc -f
:0
* ^X-Spam-Status: Yes
$SPAM

I have checked all permissions and all my settings. I do not see any typos anywhere and the program locations are correct. I am also running Mysql database to store the users spam settings. Here is my spamassassin local.cf file:

required_hits 5.0
rewrite_subject 1
report_safe 1
use_bayes 1
auto_learn 1
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
dns_available yes
pyzor_add_header 1
pyzor_path /usr/bin/pyzor
detailed_phrase_score 1
report_header 1
ok_languages en
ok_locales
user_scores_dsn DBI:mysql:spam:localhost
user_scores_sql_username spam
user_scores_sql_password #######
user_scores_sql_table userprefs

Please help. This server is for my business accounts and they are not happy because they think they are losing emails.

foo_bar_foo 07-02-2004 03:15 PM

Hi,
I had to go back and edit this cause somehow my brain forgot about IMAP
the first time around -- if you read the first one sorry.

lets see ......

I think don't set the variable SPAM
since you have MAILDIR set
use
Code:

* ^X-Spam-Status: Yes
$MAILDIR.Spam/




cyberjames 01-10-2005 01:31 AM

Hi!

May I know how you setup Spamassassin + Courier Imap + Procmail on slackware 10? I want to try that things on my Slack box. I also have problem related on IMAP which I have posted here. Click this

http://www.linuxquestions.org/questi...16#post1398316

I hope you will teach me Savahn on how to setup Courier IMAP and those other thing open sources.

best regards

james

Savahn 01-26-2005 08:40 PM

Would be more than happy to tell you cyberjames, just ask and ye shall recieve. I fixed the problem I was having, IT WAS A TYPO that could not be seen in ssh VI or MC, had to use Webmin to correct the problem. Just let me know if you need any assistance.


All times are GMT -5. The time now is 04:56 PM.