From owner-freebsd-questions@FreeBSD.ORG Mon Jul 31 11:01:11 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 AF0B316A4DA for ; Mon, 31 Jul 2006 11:01:11 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCBF843D53 for ; Mon, 31 Jul 2006 11:01:09 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id B84455D49; Mon, 31 Jul 2006 07:01:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jlx4j5AnSHAU; Mon, 31 Jul 2006 07:01:07 -0400 (EDT) Received: from [192.168.1.251] (pool-68-161-117-245.ny325.east.verizon.net [68.161.117.245]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 2A5AD5D19; Mon, 31 Jul 2006 07:01:07 -0400 (EDT) Message-ID: <44CDE2EB.5070007@mac.com> Date: Mon, 31 Jul 2006 07:00:59 -0400 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: "Chris T." References: <44CD931B.3030504@comcast.net> In-Reply-To: <44CD931B.3030504@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Sendiing mail triggers fetchmail... 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: Mon, 31 Jul 2006 11:01:11 -0000 Chris T. wrote: > I'm going to set a cron job to get mail repeatedly. > > I was just wondering if anyone know if it's possible to get postfix to > execute a script before or after it sends mail. I'd like to schedule a > special fetchmail cron job for say 5 seconds after mail is sent on an > account. I'm doing a search on the subject but I obviously don't know > the proper search terms yet. > > And similarly can Cyrus-Imap trigger a script before and or after mail > retrieval? People normally configure their .forward file to run scripts, but if you want it fired off by the MTA like Postfix, look into integrating procmail with Postfix. -- -Chuck