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?
|