Re: Adding header depending on _SCORE_ and settings UserPref
Hello Thanks for answer. > Have you tried the amavis/sa-exim way? Not yet. if I'm not mistaken amavis is working in delivery time not SMTP time? > >> Some my configuration is based on: >> >> http://www.janoszen.com/2013/07/24/filtering-spam-with-exim-and-spamassassin-properly/ > > I looked onto that and did not like it. Mostly because it does not run at > the SMTP time... yes , but I SMTP time I can't analize spam according user prefs - for multi recipient :/ > you can do two checks, one at SMTP time (with sane defaults), and second > (user-personalized) at delivery time. > single recipient e-mails can be scanned with user preferences at SMTP time > and you can skip the latter step for them. > Of course, spam rejected at SMTP time won't be scanned with per-user > settings... Yes this is concept but how can I detect is it single or multi recipient? AND if it is multi recipient I can not reject mail in SMTP time. Best Regards
Re: tips and tricks?
On 20.07.14 01:30, Thomas Cameron wrote: Last time I set up SA I used http://www.spamtips.org/p/ultimate-setup-guide.html, but it appears to be somewhat dated (2011). Is it still a good guide? Is there a better simple collection of tips and tricks? looks as a good guide, but I for addon rules I'd only use Sought rules, not SMF_BRACKETS_TO -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. There's a long-standing bug relating to the x86 architecture that allows you to install Windows. -- Matthew D. Fuller
Re: Adding header depending on _SCORE_ and settings UserPref
3. In exim make router that check if X_Spam_Kill exists and move mail to /dev/null. As Matus already mentioned, don't plain drop it. SMTP reject is proper handling. On 20.07.14 10:52, Adi wrote: Yes SMTP reject is proper. And normally is can be done in ACL by "deny" options. But I must do it probably much later in router/transport. Because my configuration is different: for each recipient pipe spamc and pipe additional process exim to Mailbox. Have you tried the amavis/sa-exim way? Some my configuration is based on: http://www.janoszen.com/2013/07/24/filtering-spam-with-exim-and-spamassassin-properly/ I looked onto that and did not like it. Mostly because it does not run at the SMTP time... In normal Exim's configuration mail will be analized by SA only once (only for TO: address - I must check if all user prefs is readed and used in this case). So, I can: 1. not worry about the messages with multiple recipients and use simple building ACL options in Exim. Fast and easy to configure. 2. try do it properly for multiple recipients mails. But there are many problems. Is slower, hard to configure (example reject email:) you can do two checks, one at SMTP time (with sane defaults), and second (user-personalized) at delivery time. single recipient e-mails can be scanned with user preferences at SMTP time and you can skip the latter step for them. Of course, spam rejected at SMTP time won't be scanned with per-user settings... -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Fucking windows! Bring Bill Gates! (Southpark the movie)
Re: Adding header depending on _SCORE_ and settings UserPref
Hello Thank you for answer. >> 2. In Spamassassin I need compare if _SCORE_ > kill_spam_score >>then add header X_Spam_Remove or X_Spam_Kill > > Adding a custom header (or any action for that matter) depending on the > overall score requires writing a custom plugin. > It looks like :( I'll have to work on that. In the meantime, I will use a fixed value, eg 20 and I will compare in Exim based on X-Spam-Status: Yes, score=32.1 > >> 3. In exim make router that check if X_Spam_Kill exists and >>move mail to /dev/null. > > As Matus already mentioned, don't plain drop it. SMTP reject is proper > handling. Yes SMTP reject is proper. And normally is can be done in ACL by "deny" options. But I must do it probably much later in router/transport. Because my configuration is different: for each recipient pipe spamc and pipe additional process exim to Mailbox. Some my configuration is based on: http://www.janoszen.com/2013/07/24/filtering-spam-with-exim-and-spamassassin-properly/ I can't find info how reject mail in router/transport only info that should be done in ACL. Above configuration have advance that if incoming mail have CC, BCC then each recipient will be process by spamc -u user@mail with own: userpref (include white/black list), bayes and awl. In normal Exim's configuration mail will be analized by SA only once (only for TO: address - I must check if all user prefs is readed and used in this case). So, I can: 1. not worry about the messages with multiple recipients and use simple building ACL options in Exim. Fast and easy to configure. 2. try do it properly for multiple recipients mails. But there are many problems. Is slower, hard to configure (example reject email:) What do you think about? Best Regards