From owner-freebsd-questions@FreeBSD.ORG Fri Apr 28 17:34:52 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 895B316A405 for ; Fri, 28 Apr 2006 17:34:52 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AEC443D48 for ; Fri, 28 Apr 2006 17:34:51 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (aris.bedc.ondsl.gr [62.103.39.226]) (authenticated bits=128) by igloo.linux.gr (8.13.6/8.13.6/Debian-1) with ESMTP id k3SHYbap015125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 28 Apr 2006 20:34:40 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k3SHYgeS007919; Fri, 28 Apr 2006 20:34:42 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k3SHYgst007918; Fri, 28 Apr 2006 20:34:42 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 28 Apr 2006 20:34:42 +0300 From: Giorgos Keramidas To: Efren Bravo Message-ID: <20060428173442.GA7856@gothmog.pc> References: <20060428163853.GB7220@gothmog.pc> <20060428172209.84917.qmail@web25513.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060428172209.84917.qmail@web25513.mail.ukl.yahoo.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.392, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.81, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-questions@freebsd.org Subject: Re: procmail and sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Apr 2006 17:34:52 -0000 On 2006-04-28 19:22, Efren Bravo wrote: > Giorgos Keramidas wrote: > > If not, you need to do that, and add your local system-wide procmail > > options or filters to `/usr/local/etc/procmailrc'. > > After installed the procmail, where can I find the procmailrc file > because it's not into /usr/local/etc/ path ? Nowhere, you create one yourself. Very very carefully, because these rules will be applied to *all* incoming local email. The manpage of procmail(1) explains where Procmail will look for filtering rules: If no rcfiles and no -p have been specified on the command line, procmail will, prior to reading $HOME/.procmailrc, interpret commands from /usr/local/etc/procmailrc (if present). Care must be taken when creating /usr/local/etc/procmailrc, because, if circumstances permit, it will be executed with root privileges (contrary to the $HOME/.procmailrc file of course). For example, in your system-wide `procmailrc' file you can use rules like the following: MAILDIR=$HOME/Mail DEFAULT=$HOME/Mailbox LOGABSTRACT=no LOGFILE=$HOME/procmail.log :0 H * ^X-Spam-Flag: YES spam/. :0 H * ^Subject: {Spam not delivered} spam/. :0 H * ^Subject: {Possible Spam} spam/. The "/." suffix of the folder names means they are MH-style mail folders. You can also use a plain "/" suffix for Maildir folders, or no suffix at all for plain Unix mbox-style files.