<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I am using MailScanner with Postfix to scan my
incoming email. I am also using getmail to poll my pop3 accounts and
download my email. I would like to process all of the email that getmail
retrieves in MailScanner. The way to do this is to invoke MailScanner
manually. Is this possible? If so, what is the command to do
this? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Below is a message that I posted to the getmail
mailing list. The reply is from the author of getmail.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>> I am in the process of setting up a new mail server with Postfix
(using<BR>> /Maildir's) , getmail, MailScanner and Maildrop. I have
everything working<BR>> except for getmail. I would like to have
getmail first send my email to<BR>> MailScanner for virus scanning and spam
checking and then to Maildrop for<BR>> sorting.<BR><BR>Okay. In this
case, MailScanner must add headers to the message to allow you<BR>to sort based
on it's spam/non-spam decision? If that's the case, it must<BR>write the
modified message to stdout. So your getmail delivery directive<BR>would be
something like this:<BR><BR>
postmaster="|/path/to/mydeliveryagent.sh"<BR><BR>where that script is something
like:<BR><BR> #!/bin/bash<BR> cat - \<BR> |
/path/to/mailscanner [options] \<BR> | /path/to/maildrop
[options]<BR><BR>I've never used MailScanner, so I can't help you with what
specific options<BR>you'll need to get it to operate in filter mode (read stdin,
modify, write<BR>stdout). It should be clearly spelled out in its
documentation.</DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Kevin</FONT></DIV></BODY></HTML>