> From: Stephen Warren <[EMAIL PROTECTED]>
> Reply-To: Stephen Warren <[EMAIL PROTECTED]>
> Date: Tue, 18 Jan 2005 12:58:39 -0700
> To: m <[EMAIL PROTECTED]>
> Cc: "[email protected]" <[email protected]>
> Subject: Re: variables in /etc/tmdarc for recipient
> 
> m wrote:
>> I thought it should be:
>> 
>> DELIVERY = "/some/agent %s %s" %os.environ["RECIPIENT"],
>>     %os.environ["SENDER"]
>> (all on one line).
>> 
>> But that results in errors instead (bad syntax?) and does not pass the
>> substitution through.
>> 
>> I believe the problem is twofold: 1) bad python syntax? and 2.) wrong
>> variables?
> 
> I haven't evaluated what you're trying to achieve,

I'm trying to achieve a TMDA setup with ALL virtual users under Postfix with
Cyrus.  My research has indicated that noone has successfully implemented
TMDA in such a configuration -- where TMDA has been used with Cyrus (so far
as I could tell from reading through this list and the Cyrus list), the
cyrus users were real system users.

So, the bigger picture is that Postfix delivers initially to TMDA by
invoking TMDA as a delivery service.  Then, TMDA does its thing (under its
own account, so no system privileges/setuid/etc is needed), and when the
confirmation is received by TMDA, the original message is re-submitted to
postfix via an agent which submits to a different SMTP listener (different
port on localhost), and uses cyrus to perform final mailbox delivery.


> but I can certainly
> help with your Python syntax problems. You want this:
> 
> DELIVERY = "/some/agent %s %s" %
>      (os.environ["RECIPIENT"], os.environ["SENDER"])

Are these variables available to TMDA at all times?

> 
> again, all on one line. When you substitute more than one variable, you
> must past the entire list of substitution values as a single tuple (i.e.
> the round brackets and comma-delimited list of values).
> 
> 

Thanks for the help thus far.  I'll test this later and post my results.


_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to