Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2006 07:00:59 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        "Chris T." <cdtelting-ml@comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sendiing mail triggers fetchmail...
Message-ID:  <44CDE2EB.5070007@mac.com>
In-Reply-To: <44CD931B.3030504@comcast.net>
References:  <44CD931B.3030504@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44CDE2EB.5070007>