From owner-freebsd-net Tue Oct 3 23:30:56 2000 Delivered-To: freebsd-net@freebsd.org Received: from picalon.gun.de (picalon.gun.de [192.109.159.1]) by hub.freebsd.org (Postfix) with ESMTP id CF7C437B502 for ; Tue, 3 Oct 2000 23:30:52 -0700 (PDT) Received: (from uucp@localhost) by picalon.gun.de (8.9.3/8.9.3) id IAA01290; Wed, 4 Oct 2000 08:30:18 +0200 (MET DST) >Received: (from andreas@localhost) by klemm.gtn.com (8.11.0/8.11.0) id e946Jl706633; Wed, 4 Oct 2000 08:19:47 +0200 (CEST) (envelope-from andreas) Date: Wed, 4 Oct 2000 08:19:47 +0200 From: Andreas Klemm To: Michelangelo Pisa Cc: net@FreeBSD.ORG Subject: Re: Procmail Message-ID: <20001004081946.A6539@titan.klemm.gtn.com> References: <39D9EE22.70EE4684@osny.com.br> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <39D9EE22.70EE4684@osny.com.br>; from michelangelo@osny.com.br on Tue, Oct 03, 2000 at 02:33:06PM +0000 X-Operating-System: FreeBSD 4.1.1-STABLE SMP X-Disclaimer: A free society is one where it is safe to be unpopular Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Oct 03, 2000 at 02:33:06PM +0000, Michelangelo Pisa wrote: > hello!! > > I'm trying to use the Procmail-3.13.1 in the FreeBSD 2.2.7 to > filter e-mails with virus, but > when I use the following configuration in my sendmail.cf: > Mprocmail, P=/usr/bin/procmail, F=DFMmShu, S=11/31, R=21/31, > T=DNS/RFC822/X-Unix, > A=procmail -m MAIL_FROM="$_" MAIL_TO="$u" > $h > > In the initialization of the system shown me errors how: > invalide rewrite line > (tab expected) You need to use tabulator instead of spaces to indent lines... Another thing would be to upgrade sendmail and to build a sendmail.cf file by using a .mc file defining define(`PROCMAIL_MAILER_PATH', `/usr/local/bin/procmail')dnl and FEATURE(local_procmail) Here is my .mc file (I run UUCP over TCP/IP and send and receive mail via UUCP): divert(-1) include(`../m4/cf.m4') VERSIONID(`@(#)klemm.mc 1.1 (AKL) 20/03/96') define(`_USE_ETC_MAIL_', True)dnl OSTYPE(bsd4.4)dnl DOMAIN(generic)dnl FEATURE(nocanonify) Dmklemm.gtn.com define(`confDOMAIN_NAME', `$m')dnl MASQUERADE_AS(klemm.gtn.com)dnl define(`PROCMAIL_MAILER_PATH', `/usr/local/bin/procmail')dnl define(`confCON_EXPENSIVE', True)dnl define(`SMTP_MAILER_FLAGS', e)dnl define(`confBIND_OPTS', `-DNSRCH -DEFNAMES')dnl define(`confDIAL_DELAY', `5s')dnl define(`UUCP_MAX_SIZE', 2000000)dnl define(`SMART_HOST', `uucp-dom:easix')dnl define(`UUCP_RELAY', `uucp-dom:easix')dnl FEATURE(access_db) FEATURE(accept_unresolvable_domains) FEATURE(always_add_domain) FEATURE(masquerade_envelope) FEATURE(local_procmail) FEATURE(relay_entire_domain) MAILER(local)dnl MAILER(smtp)dnl MAILER(uucp)dnl -- Andreas Klemm Powered by FreeBSD SMP Songs from our band >>64Bits<<............http://www.apsfilter.org/64bits.html My homepage................................ http://people.FreeBSD.ORG/~andreas Please note: Apsfilter got a NEW HOME................http://www.apsfilter.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message