OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[Fwd: Re: Procmail]

From: Tolga (tolgaozses.net)
Date: Mon Jul 02 2007 - 14:39:02 CDT


If anybody replied to this e-mail, I couldn't catch it because of a
misconfiguration. So could you repeat it? All I want to do is
server-side filtering without having to use the .forward file.

Regards,

-------- Orijinal Mesaj --------
Return-Path: <owner-postfix-userspostfix.org>
X-Original-To: tolgaozses.net
Delivered-To: tolgaozses.net
Received: by ozses.net (Postfix, from userid 1009) id 9B8F127BFD; Mon,
2 Jul 2007 08:55:31 +0300 (EEST)
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on ozses.net
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.1.7
Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3])
by ozses.net (Postfix) with ESMTP id 45F73151BA for <tolgaozses.net>;
Mon, 2 Jul 2007 08:55:28 +0300 (EEST)
Received: by camomile.cloud9.net (Postfix) id 070C0102F06; Mon, 2 Jul
2007 01:46:43 -0400 (EDT)
Delivered-To: postfix-users-outgoingcloud9.net
Received: from localhost (localhost [127.0.0.1]) by camomile.cloud9.net
(Postfix) with ESMTP id DC29E102F02 for
<postfix-users-outgoingcloud9.net>; Mon, 2 Jul 2007 01:46:42 -0400 (EDT)
X-Virus-Scanned: amavisd-new at cloud9.net
Received: from camomile.cloud9.net ([127.0.0.1]) by localhost
(camomile.cloud9.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
id MDhuYoXGfJjs for <postfix-users-outgoingcloud9.net>; Mon, 2 Jul 2007
01:46:42 -0400 (EDT)
Received: by camomile.cloud9.net (Postfix, from userid 54) id
B3A6F102F01; Mon, 2 Jul 2007 01:46:42 -0400 (EDT)
Delivered-To: postfix-userscloud9.net
Received: from localhost (localhost [127.0.0.1]) by camomile.cloud9.net
(Postfix) with ESMTP id 48A6D102EC3 for <postfix-userscloud9.net>; Mon,
2 Jul 2007 01:46:42 -0400 (EDT)
X-Virus-Scanned: amavisd-new at cloud9.net
Received: from camomile.cloud9.net ([127.0.0.1]) by localhost
(camomile.cloud9.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
id DhZ7hLMW1Jwh for <postfix-userscloud9.net>; Mon, 2 Jul 2007 01:46:42
-0400 (EDT)
Received: from smtp.sabanciuniv.edu (smtp.sabanciuniv.edu
[193.255.135.56]) by camomile.cloud9.net (Postfix) with ESMTP id
CCBA9102EFD for <postfix-userspostfix.org>; Mon, 2 Jul 2007 01:46:39
-0400 (EDT)
Received: from [10.11.2.84] (mtozses.sabanciuniv.edu [10.11.2.84])
(authenticated as mtozses bits=0) by smtp.sabanciuniv.edu with ESMTP id
l625kY0a019396; Mon, 2 Jul 2007 08:46:34 +0300
Message-ID: <46889187.4030103ozses.net>
Date: Mon, 02 Jul 2007 08:47:51 +0300
From: Tolga <tolgaozses.net>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: mouss <no.spam.herefree.fr>
CC: Postfix ML <postfix-userspostfix.org>
Subject: Re: Procmail
References: <20070701202644.GA26373ozses.net> <468816EC.80309free.fr>
In-Reply-To: <468816EC.80309free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-postfix-userspostfix.org
Precedence: bulk
List-Post: <mailto:postfix-userspostfix.org>
List-Help: <http://www.postfix.org/lists.html>
List-Unsubscribe: <mailto:majordomopostfix.org>
List-Subscribe: <mailto:majordomopostfix.org>

mouss wrote:
> Tolga wrote:
>> Hi,
>>
>> Following belgeler.org (a compilation of FAQs in my language, I put
>> lines local_transport = procmail,
>> procmail_destination_concurrency_limit = 10 and
>> procmail_destination_recipient_limit = 300 in my main.cf and
>> procmail unix - n n - - pipe flags=R user=dovecot
>> argv=/usr/bin/procmail -p -t -m /etc/procmailrc $sender $recipient
>> in master.cf and restarted postfix. I created a recipe and I got the
>> following in log. How can I solve it?
>>
>> Jul 1 23:17:18 ozses postfix/pipe[26367]:
>> 849B0132D51:to=<tolgaozses.net>, relay=procmail, delay=302,
>> delays=302/0.02/0/0.02,dsn=4.3.0, status=deferred (temporary failure.
>> Command output: procmail:Couldn't chdir to "/dev/null" procmail:
>> Couldn't chdir to "/dev/null" procmail: Skipped "*
>> ^From.mtozseshotmail.com" procmail: Skipped "!
>> mtozsessabanciuniv.edu" )
>>
>
>
> The problem is probably in your procmail config file. nobody can chdir
> to /dev/null, because the latter is generally a file, not a directory.
> you probably mistyped some procmail rule.
DEFAULT=/var/mail/$u
:0 c
* ^From.mtozseshotmail.com
! mtozsessabanciuniv.edu

is my rule. The first two lines were commented out before, but when I
uncommented them, I got the following:

Jul 2 08:51:11 ozses postfix/pipe[32329]: 39AEA2588A:
to=<tolgaozses.net>, relay=procmail, delay=1.7, delays=1.4/0.03/0/0.27,
dsn=4.3.0, status=deferred (temporary failure. Command output: procmail:
Couldn't chdir to "/dev/null" procmail: Couldn't chdir to "/dev/null"
procmail: Unable to treat as directory "/var/mail/new" procmail: Skipped
"/var/mail" )
>
>
>

--
Stay with *nix :)

--
Il calcio e' un elemento importante della nostra vita.
Piu' importante e' pero' il fosforo.
                -- Alberto Morisetti <almoristin.it>