I have (finally) got TMDA working and accepting messages/sending challenges.

However, my final delivery is still a problem.

I am running Postfix -> TMDA -> Postfix -> Cyrus on FreeBSD 5.2.1

A better explanation of my setup is:

<MESSAGE> is received by Postfix via SMTP on port 25.

Postfix processes the message and passes it to TMDA as a delivery service
(thanks to Craig Forbes for the /etc/postfix/master.cf changes/etcetera!).

TMDA handles the quarantine & challenge/response.

Then, TMDA, to release the message for final delivery, re-injects the
message to Postfix on port 10026, which is set to only use cyrus for its
final delivery (bypassing TMDA).



Up to the challenge-response, it works just fine.

But the final delivery does not quite work right.

For TMDA to re-inject the message to Postfix, I've installed mini_sendmail.

So, my DELIVERY line in /etc/tmdarc is:

DELIVERY = "|/usr/local/sbin/mini_sendmail -p10026 %s"
    %os.environ["RECIPIENT"]

(this is actually on one line)


I'm sure the problem is with the "%os.environ["RECIPIENT"] part.

How do I substitute the original message recipient in the DELIVER line such
that 

In /etc/tmdarc, I have:

RECIPIENT_HEADER = "X-Original-To"

which is the header inserted by Postfix to indicate the original recipient
of the message (before alias/virtual substitution, etc.).

So, obviously, what I need to do is set DELIVERY to use the value obtained
from that as the recipient of the message when re-injected into Postfix.

Not being a Python programmer, and not completely understanding the code,
I'm not quite sure what I need to use in the DELIVERY line to accomplish
this.

All help is appreciated.

My apologies for having so many difficulties with this installation.  But,
for sure, when I'm done, I will be writing a full HOW-TO for someone else
(including myself) to use in the future!.

Thanks.

Mark J. Nernberg


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

Reply via email to