From owner-freebsd-questions@FreeBSD.ORG Fri Jan 25 08:16:51 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ABC416A4D8 for ; Fri, 25 Jan 2008 08:16:51 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id 14E7713C45D for ; Fri, 25 Jan 2008 08:16:50 +0000 (UTC) (envelope-from ws@au.dyndns.ws) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAJ4omUeWZWdv/2dsb2JhbAAIrn4 X-IronPort-AV: E=Sophos;i="4.25,249,1199626200"; d="scan'208";a="42137972" Received: from ppp103-111.static.internode.on.net (HELO [192.168.1.131]) ([150.101.103.111]) by ipmail05.adl2.internode.on.net with ESMTP; 25 Jan 2008 18:46:49 +1030 From: Wayne Sierke To: Dantavious In-Reply-To: <200801250022.03364.dantavious@comcast.net> References: <200801250022.03364.dantavious@comcast.net> Content-Type: text/plain Date: Fri, 25 Jan 2008 18:46:46 +1030 Message-Id: <1201249006.3408.44.camel@predator-ii.buffyverse> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Maildrop filtering issues 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, 25 Jan 2008 08:16:51 -0000 Derrick, On Fri, 2008-01-25 at 00:22 -0500, Dantavious wrote: > Hi all, > I have a working Postfix Mailserver with maildrop installed. This mailserver > is setup for virtual accounts. I would like to filter incoming mail using > maildrop at the server. I followed all the docs that I could find out on the > net concerning this setup. What I have done so far is. > > Created a .mailfilter in the /home/vmail file that points to the .mailfilters > file. > > less .mailfilter > xfilter "/usr/local/bin/spamc" > # Check for user defined filter file > exception { > logfile $HOME/.maildrop.log > include "$HOME/mailfilters/$LOGNAME" > > } > > > In my "$HOME/mailfilters//$LOGNAME"/ , I have a user@domain.net mailfilter > file that looks like this. > > if (/^From:.*dantavious@comcast\.net/) > { > > exception { > to "$DEFAULT/.Comcast/" > } > > } > > > All messages sent here does not go into the .Comcast folder but in my inbox. I > also do not get any entires in the maildrop.log that i setup. Does anyone > have this setup and working. Any help would be greatly appreciated. > "include" specifies a filename, according to the maildropfilter(7) page I've got here. It's not clear how these match each other: include "$HOME/mailfilters/$LOGNAME" In my "$HOME/mailfilters//$LOGNAME"/ , I have a user@domain.net mailfilter > file that looks like this. I had always found logging to be somewhat temperamental when I was setting up maildrop some years ago. I haven't messed with my .mailfilter settings much lately apart from adding filters for new mailing lists, but I just un-commented my old logfile line and it started working immediately: logfile "${HOME}/maillog.log" Check directory/file permissions/ownership? If you can't resolve it you'd do better taking this to the maildrop mailing list I'd wager. Wayne