Re: [exim] Using exim -Mvc in ACLs

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marcin Krol
Ημερομηνία:  
Προς: exim users
Αντικείμενο: Re: [exim] Using exim -Mvc in ACLs
Phil Pennock pisze:
> On 2007-09-07 at 22:22 +0200, admin@??? wrote:
>
>> So I have this in ACL DATA:
>>
>>   warn  set acl_m_sa = ${run {/etc/domeny/testme $message_exim_id $acl_m_user} {$value} }
>>         log_message = acl_m_user: $acl_m_user

>>
>>   warn  continue = {true}
>>         log_message = Testme result for message $message_id: $acl_m_sa

>>
>
>
>> "Spool read error for 1IU60k-0006EN-MK-H: No such file or directory"
>>
>> That would obviously mean that while ${run ... } executed the script,
>> exim -Mvc couldn't deliver the message.
>>
>> Anybody knows the reason why and/or how to make this work?
>>
>
> Because the spool file (-H) isn't written out until the message is
> finally accepted, after all the ACLs. It's what keeps on local disk the
> state associated with this system being responsible for the mail. Until
> it exists, this system isn't responsible, the reply hasn't been sent to
> the sender. Once the -H file exists, a queue runner may attempt to
> deliver the mail.
>
> The -Mvc option is effectively generating the message via a fake
> delivery, so needs the -H file around.
>


Hmm.. Thanks for answer, that's plausible, I wonder how this dlfunc is
able to deliver the headers, however???

warn continue = ${dlfunc{/usr/sbin/exim-ext.so}{pipe_message}
{/etc/domeny/savestdin}}

( taken from http://www.ols.es/exim/dlext/ )

I placed the above verb in the same ACL as the one before, though
Envelope-To: gets mangled for some reason:

da7 (87.204.147.157) /etc % cat /tmp/mailstdin.tmp

Return-path: <admin@???>
Envelope-To: @
Delivery-date: Mon, 10 Sep 2007 13:35:36 +0200
Received: from domeny.pl ([87.204.147.140]:57540 helo=da2.domeny.com)
        by da7.domeny.com with esmtps (TLSv1:AES256-SHA:256)
        (Exim 4.68)
        (envelope-from <admin@???>)
        id 1IUhYG-0005GZ-Gm
        for tda7@???; Mon, 10 Sep 2007 13:35:36 +0200
Received: from mail by da2.domeny.com with filtered (Exim 4.67)
        (envelope-from <admin@???>)
        id 1IUhjS-000MZz-FI
        for tda7@???; Mon, 10 Sep 2007 13:47:10 +0200
Received: from ip-83-238-175-215.netia.com.pl ([83.238.175.215]:2288
helo=[192.168.1.30])
        by da2.domeny.com with esmtpa (Exim 4.67)
        (envelope-from <admin@???>)
        id 1IUhjS-000MZQ-7J
        for tda7@???; Mon, 10 Sep 2007 13:47:10 +0200
Message-ID: <46E52F04.3010900@???>
Date: Mon, 10 Sep 2007 13:48:20 +0200
From: Marcin Krol <admin@???>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.6)
Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: "tda7@???" <tda7@???>
Subject: test dlfunc
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable



--=20
Marcin Kr=F3l





--
Marcin Król