"Morten Trab" <[EMAIL PROTECTED]> writes: > ----- Original Message ----- > From: "Tim Legant" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, January 22, 2004 8:59 PM > Subject: Re: Sender>Postfix>TMDA>Postfix>Cyrus ?? > > >> > I've tried with MAIL_TRANSPORT = "smtp" and SMTPHOST = "localhost", >> > but still it complains that it need a DELIVERY set...What to write >> > in this?? > >> DELIVERY is whatever command you use to implement the TMDA>Postfix >> step. In other words, how do you expect to get mail from TMDA back >> into Postfix? That's the command you should use for DELIVERY. > > Try reading above again ;) SMTP...
I read it carefully. SMTP isn't a command, it's a protocol. TMDA is a delivery agent, like procmail. It expects to deliver a message to some destination. It uses SMTP or sendmail to send its challenges. Therefore, if you want to send messages back to Postfix through SMTP you must set up a means of DELIVERY that uses SMTP. The only native form of delivery that can (potentially, depending on your configuration) use SMTP is forwarding. You can forward in your incoming filter file or you can forward via DELIVERY. The problem with using DELIVERY is, to whom do you want to forward the message? If you set DELIVERY in /etc/tmdarc, it has to work for every user. If you set up DELIVERY uniquely for each user in their own config file, say to forward to a unique address at the second instance of Postfix, you'll be using SMTP (or sendmail) to accomplish that delivery. One way to avoid the annoyance of maintaining a config file/DELIVERY configuration for each user would be to /dynamically/ set DELIVERY to the correct forwarding address in /etc/tmdarc. This would require writing a little Python. You could do this if you have a means of identifying a user's forwarding address when tmda-filter runs, perhaps based on environment variables. DELIVERY = "&[EMAIL PROTECTED]" % os.environ.get('USER', 'failure') Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users