From owner-freebsd-questions@FreeBSD.ORG Mon Jun 14 19:11:26 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CB3316A4CE for ; Mon, 14 Jun 2004 19:11:26 +0000 (GMT) Received: from ihemail2.firewall.lucent.com (ihemail2.lucent.com [192.11.222.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23EA343D2F for ; Mon, 14 Jun 2004 19:11:21 +0000 (GMT) (envelope-from rrajarajan@lucent.com) Received: from nj7460exch001h.wins.lucent.com (h135-17-42-36.lucent.com [135.17.42.36])ESMTP id i5EJBHG20788 for ; Mon, 14 Jun 2004 14:11:18 -0500 (CDT) Received: by nj7460exch001h.ho.lucent.com with Internet Mail Service (5.5.2657.72) id ; Mon, 14 Jun 2004 15:11:17 -0400 Message-ID: <1B8C2E08B21B8743A2B3AED07407DA760822B210@nj7460exch002u.ho.lucent.com> From: "Rajamani, Rajarajan (Rajarajan)" To: "'freebsd-questions@freebsd.org'" Date: Mon, 14 Jun 2004 15:11:16 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: spamassassin, clamav with sendmail - not scanning local mails. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2004 19:11:26 -0000 I have installed the spamassassin milter and the clam av milter ports and have made the following changes to the freebsd.mc file. INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=,T=C:15m;S:4m;R:4m;E:10m') INPUT_MAIL_FILTER(`clmilter',`S=local:/var/run/clamav/clmilter.sock, F=,T=S:4m;R:4m')dnl define(`confINPUT_MAIL_FILTERS', `spamassassin, clmilter') then restarted sendmail by # make, # make install,# make restart, # newaliases Now I am noticing that all mails that are being sent directly to my machine are tagged properly both for spam and viruses. Mails that are sent from one account to another are not being scanned. Since I use fetchmail/fetchyahoo/gotmail to retreive my ISP/yahoo/hotmail accounts (where I get most spam), the mails delivered to my mbox are not scanned by either clamd or spamd. I checked that these tools are having the appropriate switches to forward the pop'd mails to my account instead of putting it directly into the mbox. Am I missing something. How do I force sendmail to use the mail filters for local mails. Any info would be appreciated. Thanks, Rajarajan