Am 30.04.2012 07:30, schrieb Steve Fatula: > ----- Original Message ----- > >> From: Chad M Stewart <c...@balius.com> >> To: dspam-user@lists.sourceforge.net >> Cc: >> Sent: Sunday, April 29, 2012 9:46 PM >> Subject: [Dspam-user] Training -- a single address instead of >> spam/non-spam >> >> >> I'd like to come up with a way where my users can forward >> mis-classified >> messages to a single address, like fixme@ or correct@. I'm thinking >> that >> the address would be directed at a script. The script would then do >> the magic >> and then call dspam with the appropriate parameters. >> >> Wondering if anyone has some suggestions or been down this road >> before and care >> to share? The part I'm stuck on right now how to figure out the >> classification to pass to dspam, spam|innocent. I've thought about >> maybe >> taking the signature and searching system.log for it, get the >> classification >> from the entry and then obviously the classification must be the >> other. >> >> Sound reasonable? >> > > > Hmm, not sure. Perhaps someone has done such a thing, but, the part > that would get me is how such an address would know if it should be > retrained as SPAM, or HAM? I suppose you could take headers (if you > forward as attachment) and based on the dspam classification, do the > opposite, but, what is someone forwards to SPAM to retrain as HAM, > and, then realizes it was the wrong message, and, re-sends so it will > go back to SPAM? Yes, you could search the log for the last instance > and do the opposite I suppose. Still, they would need to forward as > attachment if keeping the signature in the headers, or, perhaps you > can go with keeping it in the body. > > But, what is so wrong with the easy way - a h...@yourmachine.com and > s...@yourmachine.com? Or, the dspam ui? Depending on how you run your > system. > > We actually use dovecot-antispam2 to do this, simply requires moving > a message to or from the spam folder via your email client. Extremely > simple.
hello, i think this will be done by tranport in postfix. steve bajic showed me some days ago some lines: /etc/postfix/lookups/pcre/transport.cf /^spam\@.*$/ dspam-retrain:spam /^(not?spam|ham)\@.*$/ dspam-retrain:innocent /^spam\-add\-([\w\-.%]+\@[\w.-]+)$/ dspam-retrain:spam /^spam\-del\-([\w\-.%]+\@[\w.-]+)$/ dspam-retrain:innocent /^spam\-([\w\-.%]+\@[\w.-]+)$/ dspam-retrain:spam /^not?spam\-([\w\-.%]+\@[\w.-]+)$/ dspam-retrain:innocent so you have to then an transport "dspam-retrain" in /etc/postfix/master.cf with this script from the git. Mr Fatula, yes you are right with dovecot-antispam, just move mail and all is okay. BUT, i plan to use a mail server as FILTER GATEWAY, so the users have the mails on their own server (xchange at example), so they have to send the mail back to my mail-gateway and cant use dovecot antispam. nex thing is, when u use a global ham@ and a global spam@, and want to use "per user" retrain it wont work, am i right? so, there has to be a way to do spam-add-<username>@domainn.tld & spam-del-<username>@domainn.tld ..... hmmm... i need a coffee and be back. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. > Discussions > will include endpoint security, mobile security and the latest in > malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Dspam-user mailing list > Dspam-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dspam-user ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Dspam-user mailing list Dspam-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspam-user