OSEC

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

From: Tolga (tolgaozses.net)
Date: Mon Jul 02 2007 - 00:47:51 CDT


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 :)