Greetings

Thought I'd try a second problem.

In our eval we are running the MIMEDefang milter under postfix.

I've now got the milter working and postfix invoking it with all the permissions.

However, when the milter returns "action_bounce" for a failure, it seems that postfix and/or zimbra don't know what to do with it.

In the mail log I see

Aug 23 01:00:46 mail postfix/smtpd[26825]: C024B7A14A: client=mail.example.com[192.168.0.167]
Aug 23 01:00:46 mail postfix/cleanup[26831]: C024B7A14A: message-id=<20110822150046.C024B7A14A@mail.example.com>
Aug 23 01:00:46 mail mimedefang.pl[9836]: filter: C024B7A14A: bounce=1
Aug 23 01:00:46 mail mimedefang[5108]: C024B7A14A: Bouncing because filter instructed us to
Aug 23 01:00:46 mail postfix/cleanup[26831]: C024B7A14A: milter-reject: END-OF-MESSAGE from mail.example.com[192.168.0.167]: 5.7.1 You cannot send email from the plans account. Please select your own email account and try again; from=<zimbra@mail.example.com> to=<admin@example.com> proto=ESMTP helo=<localhost.localdomain>
Aug 23 01:00:46 mail postfix/smtpd[26825]: disconnect from mail.example.com[192.168.0.167]
Whereas in the Zimbra web client I get "Could not send message: mail.SEND_FAILURE"

If I click "Show Details" I get a call back that looks like this:

Could not send message: mail.SEND_FAILURE

--------------------------------------------------------------------------------

msg: SMTP server reported: MESSAGE_NOT_DELIVERED
code: mail.SEND_FAILURE
method: [unknown]
detail: soap:Sender
trace: com.zimbra.cs.mailbox.MailServiceException: SMTP server reported: MESSAGE_NOT_DELIVERED ExceptionId:btpool0-12://mail.example.com/service/soap/SendMsgRequest:1314052682921:b2041d2ba71fc05b Code:mail.SEND_FAILURE at com.zimbra.cs.mailbox.MailServiceException.interna l_SEND_FAILURE(MailServiceException.java:459) at com.zimbra.cs.mailbox.MailServiceException.SEND_FA ILURE(MailServiceException.java:471) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:621) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:425) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:385) at com.zimbra.cs.service.mail.SendMsg.doSendMessage(S endMsg.java:193) at com.zimbra.cs.service.mail.SendMsg.handle(SendMsg. java:154) at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:412) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:287) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:158) at com.zimbra.soap.SoapServlet.doWork(SoapServlet.jav a:294) at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:215) at javax.servlet.http.HttpServlet.service(HttpServlet .java:725) at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet .java:814) at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1166) at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(Set HeaderFilter.java:79) at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157) at org.mortbay.servlet.UserAgentFilter.doFilter(UserA gentFilter.java:81) at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter .java:132) at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.java:218) at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:422) at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152) at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152) at org.mortbay.jetty.handler.DebugHandler.handle(Debu gHandler.java:77) at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:543) at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:946) at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:410) at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:451) Caused by: com.zimbra.cs.mailbox.MailSender$SafeSendFailedExc eption: MESSAGE_NOT_DELIVERED; chained exception is: com.zimbra.cs.mailclient.CommandFailedException: MAIL failed: 451 4.7.1 Service unavailable - try again later at com.zimbra.cs.mailclient.smtp.SmtpTransport.notify (SmtpTransport.java:289) at com.zimbra.cs.mailclient.smtp.SmtpTransport.sendMe ssage(SmtpTransport.java:221) at com.zimbra.cs.mailbox.MailSender.sendMessageToHost (MailSender.java:899) at com.zimbra.cs.mailbox.MailSender.sendMessage(MailS ender.java:831) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:565) ... 39 more
request: Body: { SendMsgRequest: { _jsns: "urn:zimbraMail", m: { e: { 0: { a: "aidan.malley@example.com", p: "Aidan Malley", t: "t" }, 1: { a: "admin@example.com", t: "f" } }, idnt: "f99033f5-94c4-4fe8-b271-1dd71c8abc8e", mp: { 0: { ct: "multipart/alternative", mp: { 0: { content: { _content: " 3 3 3 " }, ct: "text/plain" }, 1: { content: { _content: "<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><P>3</P> <P>3</P> <P>3</P> <P><BR>&nbsp;</P></div></body></html>" }, ct: "text/html" } } } }, su: { _content: "Test Three" } }, suid: 1314052680479 } }, Header: { context: { _jsns: "urn:zimbra", account: { _content: "admin@example.com", by: "name" }, authToken: "(removed)", session: { _content: 13, id: 13 }, userAgent: { name: "ZimbraWebClient - IE8 (Win)", version: "7.1.1_GA_3196" } } }
What I expected to get was the message shown in the mail.log.

In outlook, trying the same thing I get the usual detailed diagnostics:

Error: This message could not be sent.
Subject: Test From Outlook
To: aidan.malley@example.com


Note: Soap Fault. Please recreate and resend the message. Details below:
Error Code: mail.SEND_FAILURE
Error Text: SMTP server reported: MESSAGE_NOT_DELIVERED
How on earth can I get Postfix and/or Zimbra to relay the bounce message back to the mail client?

Any suggestions, short of taxidermy would be gratefully accepted.

Thanks and Regards from Sunny Sydney

Nigel.