PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Drop mail to folder using regex milter
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Drop mail to folder using regex milter

Réponse
 
LinkBack Outils de la discussion
Vieux 19/09/2006, 02h24   #1
Chris Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Drop mail to folder using regex milter

I am looking for a way to process mails after spam-assassin is done with
them, and I'd like to avoid using procmail as it's memory hungry and
mailbox oriented, and not really what we're looking for. We just want to
dump all e-mails with a X-Spam header value of over 15 to a folder,
however the only actions listed in the milter-regex man page are reject,
tempfail, discard, quarantine and accept.

How hard would it be to expand the milter to add an outputdirectory
option in? Is the quarantine option useful? I understand that quarantine
option just changes a flag on the queue, can you suggest a method of
dropping all queued messages to a folder once a day, or some such?


Thanks!

Chris M
  Réponse avec citation
Vieux 19/09/2006, 12h43   #2
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drop mail to folder using regex milter


Chris Martin wrote:
> I am looking for a way to process mails after spam-assassin is done with
> them, and I'd like to avoid using procmail as it's memory hungry and
> mailbox oriented, and not really what we're looking for. We just want to
> dump all e-mails with a X-Spam header value of over 15 to a folder,
> however the only actions listed in the milter-regex man page are reject,
> tempfail, discard, quarantine and accept.
>
> How hard would it be to expand the milter to add an outputdirectory
> option in? Is the quarantine option useful? I understand that quarantine
> option just changes a flag on the queue, can you suggest a method of
> dropping all queued messages to a folder once a day, or some such?
>


If you do modify it, I suggest you simply add a recipient with
smfi_addrcpt() instead of trying to deal with filesystem and security
issues.

Create an alias that spools mail to a file.

Or, why dont you use a milter like spamass-milter and use its ability
to add recipients to the email message?

  Réponse avec citation
Vieux 20/09/2006, 00h06   #3
Chris Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drop mail to folder using regex milter

jmaimon@ttec.com wrote:

>
> If you do modify it, I suggest you simply add a recipient with
> smfi_addrcpt() instead of trying to deal with filesystem and security
> issues.
>
> Create an alias that spools mail to a file.
>
> Or, why dont you use a milter like spamass-milter and use its ability
> to add recipients to the email message?
>


It never occurred to me I could achieve any of this with the default
spammass-milter. I've had a look and the -b option seems my best bet,
but it diverts all tagged mail, where as I only want to send tagged mail
with a score over a certain point. This allows us to tag from 8 to 17,
so that users get anything we're not 100% about, and the rest we can
inspect at leisure.

It's a pity that the regex milter doesn't let you redirect mails by
default. I'm not a good coder at all, so if I can avoid having to code
it up myself I'd prefer to!


Thanks for your .
  Réponse avec citation
Vieux 20/09/2006, 01h41   #4
jmaimon@ttec.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drop mail to folder using regex milter


Chris Martin wrote:

> I've had a look and the -b option seems my best bet, but it diverts all tagged mail, where as I only want to send tagged mail with a score over a certain point. This allows us to tag from 8 to 17, so that users get anything we're not 100% about, and the rest we can inspect at leisure.



See my bBr patch hosted at the spamass-milter savannah page or at

http://www.jmaimon.com/sendmail/spamass-milter/

  Réponse avec citation
Vieux 20/09/2006, 02h08   #5
Chris Martin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Drop mail to folder using regex milter

jmaimon@ttec.com wrote:
> Chris Martin wrote:
>
>> I've had a look and the -b option seems my best bet, but it diverts all tagged mail, where as I only want to send tagged mail with a score over a certain point. This allows us to tag from 8 to 17, so that users get anything we're not 100% about, and the rest we can inspect at leisure.

>
>
> See my bBr patch hosted at the spamass-milter savannah page or at
>
> http://www.jmaimon.com/sendmail/spamass-milter/
>


Has this been merged into the main milter code yet? Most of the dates
seem to be from 2004.

If it hasn't been done yet, I will ask the FreeBSD ports guys to create
a new spamass-milter port (I don't have any sort of clout, so I don't
know if they will) with the patch included by default. It seems very
basic functionality that a lot of people would want, and it's a pain to
have to patch code every time it's updated, and seeing this is what
ports is for I might as well use it

Thanks!
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h55.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10901 seconds with 13 queries