Zhou, Yan: > Hi there, > > I am using a script to process each incoming message into Postfix. > > In master.cf, I have something like this. The python script calls > another Java program do the heavy-lifting message processing. > > connector unix - n n - - pipe > flags= user=hubdirect argv=python /usr/local/bin/messageprocessor.py > > It works great. Now, as I process message, I want to generate a MDN > message to the sender (so that he knows I got it). I added code in the > heavy-lifting Java program to send a message back to SMTP server. I got > an error:"you must issue STARTTLS first".
That is not a Postfix error message. You are either connecting to the wrong mail system, or you are inaccurate in your problem description. > I have no idea why Postfix asks for that, because it is not configured > to use SMTP authentication. Anyway, my question is: can this be > supported: during processing a message, send another message back to > Postfix. (It almost sounds like an re-entrance in programming terms). It is a terrible mistake to reply to every email message. At the very least be sure to follow the guidelines in RFC 3834 or people will come after you. http://tools.ietf.org/html/rfc3834 And whatever you send back, NEVER NEVER NEVER USE the address in the FROM and TO message header. Instead, use the envelope sender, which are supplied with the pipe(8) ${sender} and ${recipient} macros. Again, if you respond to the FROM and TO message header address, you will send mail to the wrong place. Wietse