This is a repost, as I did not receive any responses to this. I am
including a little bit more information, also.
In order to perform delivery -- on a system where ALL users are virtual -- I
need to pass the message back to an agent which will re-inject it into my
mail system for final delivery. Certain information is needed to do so,
specifically the sender and the recipient.
The recipient address I'm using should be the recipient specified in the
recipient header, which is "X-Original-To" (inserted by Postfix on initial
receipt of the message).
In my /etc/tmdarc, I have:
RECIPIENT_HEADER = "X-Original-To"
I want to pass the value from this to a script or program in DELIVERY.
So, what should I use for delivery if I want to do:
DELIVERY = "/some/agent <RECIPIENT> <SENDER>"
?
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?
Any help would be most appreciated.
Mark.
_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users