Hello,

Thursday, July 20, 2006, 7:21:14 PM, Skaag Argonius wrote:
> Maybe instead of calling "queue/qmail-queue" at the end of the qpsmtpd
> process, I need to call a wrapper that would handle spam differently.

I have changed my /var/qmail/rc file, so it contains

  qmail-start "|maildrop"

so qmail-start runs maildrop as an MDA for every message.
Then I check, if a message is spam in a maildrop system-wide configuration
file /etc/maildroprc

  if (/^X-Spam-Flag: *YES/)
  {
      SPAM=1
  }
  else
  {
      SPAM=0
  }

Then every user has a ~/.mailfilter file where the message is delivered to
Spam folder if it's spam.

  if ($SPAM == 1)
  {
      to "./Maildir/.Spam/"
  }
  to "./Maildir/"

You probably could do this in a system-wide config also.
  
-- 
spaze - exploited.cz - openpgp: 0x6AC67DFA23A47856
SWYgcHJpdmFjeSBpcyBvdXRsYXdlZCwgb25seSBvdXRsYXdzIH
dpbGwgaGF2ZSBwcml2YWN5Lg0KLS0gUGhpbCBaaW1tZXJtYW5u

Reply via email to