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! Now, I would do the opposite: don't quarantine anything in mavaisd, and let maildrop quarantine all junk. ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/
