I am using Postfix+SpamAssassin+DBMail and have noticed a routing inefficiency that is most likely due to me having my config screwed up. I am also having a hard time figuring out how to route messages that SpamAssasin has marked as SPAM to a specific IMAP folder without using a rule in Outlook or some other mail client...in other words I need it to work in a web mail client.
Problem 1: It seems that a new email follows the following pattern NewMessage->Postfix->SpamAssassin->Postfix->DBMail. Do I have something configured wrong in SpamAssassin or Postfix that it does not just deliver directly back to DBMail instead of handing the message back to Postfix i.e. NewMessage->Postfix->SpamAssassin->DBMail? Problem 2: Since DBMail's SMTP program is actually what stores the message can it be given routing rules such as "If header X-Spam-Flag: YES exists then move to folder SPAM otherwise if folder SPAM does not exist continue to deliver to INBOX"? Using MS Outlook's rules wizard this can be done and also SquirrelMail (my web mail client) can do something similar but they are both dirt slow if you have a lot of email. Or is this something Postfix can instruct DBMail's SMTP program to do? If so any ideas as to how? Thanks in advance! ---------------------------------------- Michael Shuler
