From owner-freebsd-questions@FreeBSD.ORG Thu Feb 19 15:13:28 2009 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 C6DD01065675 for ; Thu, 19 Feb 2009 15:13:28 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq4.tb.mail.iss.as9143.net (smtpq4.tb.mail.iss.as9143.net [212.54.42.167]) by mx1.freebsd.org (Postfix) with ESMTP id 7E3538FC18 for ; Thu, 19 Feb 2009 15:13:28 +0000 (UTC) (envelope-from peter@boosten.org) Received: from [212.54.42.146] (helo=smtp15.tb.mail.iss.as9143.net) by smtpq4.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LaAad-0003hR-0v; Thu, 19 Feb 2009 16:13:27 +0100 Received: from [84.25.72.219] (helo=ra.egypt.nl) by smtp15.tb.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1LaAac-000435-6o; Thu, 19 Feb 2009 16:13:26 +0100 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id C7FF73983C; Thu, 19 Feb 2009 16:13:15 +0100 (CET) Message-ID: <499D770B.3000404@boosten.org> Date: Thu, 19 Feb 2009 16:13:15 +0100 From: Peter Boosten User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Valentin Bud References: <139b44430902190226y1800bf1dhd06c09233f476635@mail.gmail.com> <139b44430902190250n3a044c48xc7188002c776e93a@mail.gmail.com> In-Reply-To: <139b44430902190250n3a044c48xc7188002c776e93a@mail.gmail.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1LaAac-000435-6o X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.913, required 5, BAYES_00 -2.60, SPF_NEUTRAL 0.69) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Cc: freebsd-questions Subject: Re: mail question 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: Thu, 19 Feb 2009 15:13:29 -0000 Valentin Bud wrote: > On Thu, Feb 19, 2009 at 12:26 PM, Valentin Bud wrote: > >> Hello community, >> >> I have a "special" question. >> >> If a client sends an email through my server how can i stop the mail for >> being delivered so >> i can process the mail and change some things and afterward deliver it. >> >> I have postfix + dovecot installed. Some suggestions ... >> >> thanks, >> v > > > Hello again, > > I guess i have found what i want. Postfix MILTER > http://www.postfix.org/MILTER_README.html. > > So basically i create a filter in C, perl or something, I use it via STMP or > non-STMP. That > "filter" makes the necessary changes and afterwards i reinject the mail into > postfix. > > If anybody has the time/chance to verify if I am right please let me know. > Depending upon your wishes can MimeDefang (http://www.mimedefang.org/) do a lot for you (without you having to code anything). Peter -- http://www.boosten.org