Morten Trab wrote:

----- Original Message ----- From: "Nils Vogels" <[EMAIL PROTECTED]>
To: "Morten Trab" <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 10:09 PM
Subject: Re: What should I write in the DELIVERY?





You can setup SMTP delivery from TMDA using the SMTPHOST commands, but
in that case you will need to use postfix's virtual(5) or aliases(5) to
control the destination of the message within cyrus..



An example?? I don't think I quite understand you there :(

I've allready got Anomy and Spamassassin delivering back to Postfix via
sendmail and in postfix' main.cf I've set that mail from localhost isn't
being filtered...

I've thought about replacing the Anomy/Spamassassin solution with TMDA
instead...


Been thinking about this a bit, and hopefully this is a working solution for you:

The path is Sender > Postfix > Anomy/SA > Postfix > TMDA > Procmail > Postfix > Cyrus

And now here's hoping I get this right without testing it out myself ;)

1) Sender delivers to postfix, which is set up to forward messages to Anomy/SA as a content_filter (basically the same way aMaViS does)
2) Anomy/SA delivers the traffic back via SMTP to Postfix, which listens on a different port, and only has 127.0.0.1 in mynetworks, so that all other traffic is blocked from entering postfix via this backdoor
Note that envelope information has not changed during steps 1 and 2
3) Postfix hands the message over to TMDA, with the envelope information intact, TMDA does its thing
4) TMDA uses procmail as LDA (DELIVERY=| /path/to/procmail) with envelope information intact (you will probably need to set some variables within TMDA, and call procmail with the -p option)
5) Procmail rewrites all the domain-part of your message, so that it now becomes absolutely clear to postfix it needs to hand this message over to cyrus. I did this in my setup by rewriting the domain part from @yuckfou.org to @cyrus.yuckfou.org and reinserts using the sendmail-compatibility binary (aka pickup)
6) Using alias, virtual or transports, you set the next hop to lmtp, and specifically to the socket Cyrus listens on


If *anyone* has a simpler idea of doing this, please ... tell me, since this is close to helll to setup, and i can imagine you wouldn't be too happy maintaining such a setup in a professional way ;-)

Gr,

Nils.

--
Simple guidelines to happiness:
Work like you don't need the money,
love like your heart has never been broken and dance like no one can see you.


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

Reply via email to