Re: [dspam-users] NooB needs help with Script.

From: Chris Ryland <cpr@emsoftware.com>
Date: Thu Dec 01 2005 - 08:27:19 EST

On Dec 1, 2005, at 8:23 AM, Kyle Johnson wrote:

> Have you tried using:
> MySQLUIDInSignature on
> ParseToHeaders on
> ChangeModeOnParse on
> ChangeUserOnParse off ?
> After this, create two real users, spam and notspam, and use them
> for training...
> It works on my system. :)

I wonder--is the "ChangeUserOnParse off" necessary? Or just redundant
with *IDInSignature?

>
> LedHed wrote:
>
>
>> This is my first post to this list. (or any list for that matter)
>>
>> Background:
>> Zero Linux experience.
>> I need a mail server for work (Approx 30 users)
>> Mail server needs the following; Secure email (TLS & SMTPAuth),
>> IMAP, Webmail, Spam Filter, and Virus Scanner.
>> I started this journey a month ago, and settled on this: Fedora
>> Core 4, Postfix, Dovecot, Squirrelmail, DSpam, & ClamAV.
>> I'm also using MySQL to handle Virtual Users via PostfixAdmin, &
>> DSpam.
>> I have managed to get almost everything working, DSpam included.
>>
>> My only hang-up is the forwarding of spam & ham for training.
>>
>> I want my users to send spam to spam@mydomain.com & ham to
>> ham@mydomain.com.
>>
>> I've setup a transport_map = hash:/etc/postfix/transport in main.cf
>>
>> /etc/postfix/transport has this in it:
>> spam@mydomain.com learn-spam
>> ham@mydomain.com learn-ham
>>
>> I then added this to my master.cf
>> learn-spam unix - n n - - pipe
>> argv=/usr/local/bin/learn-spam
>> learn-ham unix - n n - - pipe
>> argv=/usr/local/bin/learn-ham
>>
>> I'm a n00b an know nothing about scripting, but attempted to use
>> this:
>>
>> /usr/local/bin/learn-spam looks like this (learn-ham is similar
>> only --class-ham)
>> #!/bin/bash
>> #learn-spam script for DSpam
>> #Requires MySQLUIDInSignature on
>> /usr/local/bin/dspam --user dspam --class=spam --source=error
>> #EOF
>>
>> This didn't work, and I'm out of ideas.
>>
>> I think I'm close because I get this in my mail log.
>>
>> Nov 30 20:35:16 mail postfix/qmgr[8128]: warning: premature end-of-
>> input on private/learn-ham socket while reading input attribute name
>> Nov 30 20:35:16 mail postfix/master[8125]: warning: process /usr/
>> libexec/postfix/pipe pid 8280 exit status 1
>> Nov 30 20:35:16 mail postfix/qmgr[8128]: warning: private/learn-
>> ham socket: malformed response
>> Nov 30 20:35:16 mail postfix/qmgr[8128]: warning: transport learn-
>> ham failure -- see a previous warning/fatal/panic logfile record
>> for the problem description
>> Nov 30 20:35:16 mail postfix/master[8125]: warning: /usr/libexec/
>> postfix/pipe: bad command startup -- throttling
>>
>> This tells me that the mail I sent to ham@mydomain.com is being
>> fed to the scripts I wrote.
>>
>> Any help would be greatly appreciated!
>>
>> -Jeff Harris
>>
>>
>>
>>
>>
>
>
>
>
> !DSPAM:438ef970213435209328925!
>
>
>

Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com
Received on Thu Dec 1 08:29:14 2005

This archive was generated by hypermail 2.1.8 : Fri Dec 02 2005 - 00:00:01 EST