Renato Botelho wrote:
> On 6/19/07, mouss <[EMAIL PROTECTED]> wrote:
>   
>> Renato Botelho wrote:
>>     
>>> Hello,
>>>
>>> I'm working on a SMTP server project that involves a lot of filters.
>>> I'm using postfix, amavisd-new and maildrop. Amavisd-new is
>>> quarantining messages on PostgreSQL server.
>>>
>>> After message is checked by amavisd-new, postfix forward this to
>>> maildrop to make some static filters. In some cases, maildrop need to
>>> quarantine messages. I need this messages to be quarantined in the
>>> same place amavisd-new do, on DB.
>>>
>>> I've think in 2 solutions:
>>>
>>> 1) Make maildrop save message on a Maildir, and write an application
>>> that reads Maildir and write on amavisd-new database. It'll probably
>>> work, but if amavisd-new change table structures, it'll stop working.
>>>
>>> 2) Configure maildrop to add a "mark" on message header sayng it needs
>>> to be quarantined, and give the message back to amavisd-new, and
>>> amavisd-new quarantine this one.
>>>
>>> I would like to implement the second solution, is it possible? I have
>>> no idea how to configure amavisd-new to figure out that message need
>>> to be quarantined based on an custom header.
>>>
>>>       
>> sure, add a header like
>> X-THIS-IS-SPAM: yes
>>
>> and add an SA rule that adds 20 points for such a header!
>>     
>
> Nice idea, but in this case message will have a score, isn't there a
> way to tell amavis to just quarantine a message if a custom header is
> found? Without scoring it with SA.
>   

I'll leave this to someone who knows the answer.

>> Now, I would do the opposite: don't quarantine anything in mavaisd, and
>> let maildrop quarantine all junk.
>>     
>
> I need to have all quarantine messages on Database
>   


you could install dbmail (make it listen on other port for imap or pop) 
and use it as a quarantine server. Then
- in amavisd-new, forward spam to a plussed address form ([EMAIL PROTECTED])
- in maildrop, do the same

in postfix: deliver "+spam" addresses to dbmail.



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to