Results 1 to 8 of 8

Thread: Unable to send message: Did not receive greeting from server

  1. #1
    Join Date
    Sep 2011
    Posts
    6
    Rep Power
    4

    Default Unable to send message: Did not receive greeting from server

    Hello!

    Since quite a time now we run our server on version 7.
    Right after our migration the user experienced problems sending mails from the web frontend.
    It occurs quite frequently - but I could not find any special pattern or trigger for its occurance. Often the mails get sent immediatly, without problems - often following error message appears (sometimes even over and over again).

    I've check a lot of things over the time but just can't find a real trace related to this problem.
    In my eyes it's nothing related to postfix but to the java webapp.

    Does anybody have seen such errors too?
    Does anybody see some starting point for me to debug?

    Code:
    method:	[unknown]
    msg:	system failure: Unable to send message
    code:	service.FAILURE
    detail:	soap:Receiver
    trace:	com.zimbra.common.service.ServiceException:
    system failure: Unable to send message ExceptionId:btpool0-430://my.server.com/service/soap/SendMsgRequest:1327932053294:f491678b0637d1f6 Code:service.FAILURE at 
    com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:248) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:630) at 
    com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:425) at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:385) at 
    com.zimbra.cs.service.mail.SendMsg.doSendMessage(SendMsg.java:193) at com.zimbra.cs.service.mail.SendMsg.handle(SendMsg.java:154) at 
    com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:412) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:287) at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:158) at 
    com.zimbra.soap.SoapServlet.doWork(SoapServlet.java:294) at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:215) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) at 
    com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:208) at javax.servlet.http.HttpServlet.service(HttpServlet.java:814) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at 
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79) at 
    org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81) at 
    org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at 
    org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218) at 
    org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at 
    org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.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(HandlerWrapper.java:152) at 
    org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at 
    org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at 
    org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:583) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:986) at 
    org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:414) at 
    org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451) Caused by: 
    com.zimbra.cs.mailbox.MailSender$SafeMessagingException: Did not receive greeting from server; chained exception is: com.zimbra.cs.mailclient.MailException: Did not receive greeting from server at 
    com.zimbra.cs.mailclient.smtp.SmtpTransport.protocolConnect(SmtpTransport.java:183) at javax.mail.Service.connect(Service.java:291) at javax.mail.Service.connect(Service.java:172) at 
    javax.mail.Service.connect(Service.java:121) at com.zimbra.cs.mailbox.MailSender.sendMessageToHost(MailSender.java:898) at com.zimbra.cs.mailbox.MailSender.sendMessage(MailSender.java:831) at 
    com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:565) ... 39 more
    
    request:	
    
    Body: {
      SendMsgRequest: {
        _jsns: "urn:zimbraMail",
        m: {
    --- snip snap ---
         },
        userAgent: {
          name: "ZimbraWebClient - FF3.0 (Linux)",
          version: "7.1.3_GA_3346"
         }
       }
     }

  2. #2
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    89
    Rep Power
    9

    Default

    Same here -any solution?

    When one tries to send a mail out of zwc you get the message:

    msg: system failure: Unable to send message
    code: service.FAILURE
    method: [unknown]
    detail: soap:Receiver
    trace: btpool0-...

    The strange thing is shortly after zmcontrol restart it works!

    Strange!!!
    Last edited by friedmar; 04-23-2012 at 02:27 PM.
    ---
    Ubuntu 12.04 - Release 8.0.2.GA.5569.UBUNTU12.64 UBUNTU12_64 FOSS edition. - z-push

  3. #3
    Join Date
    Nov 2008
    Location
    Grand Rapids, MI
    Posts
    123
    Rep Power
    7

    Default

    There is a per-server setting for the MTA host to use from the webmail client. It's in the Network section on the MTA tab on each server in your admin panel. Make sure that's set to point at a server that has the zimbra-mta running on it.

    Also, if it works after a zmcontrol restart, but then doesn't after a while, try a zmcontrol status and see if it says the mta isn't running. The log entries for the MTA will be in /var/log/zimbra.log, so if your MTA is dying after a while, check that log to see if it's logging any errors that might help debug it.

  4. #4
    Join Date
    Sep 2011
    Posts
    6
    Rep Power
    4

    Default Guess it's not Postfix

    As I wrote in the orginal post: I don't see any relation to postfix.
    I ran postfix in a highly verbose level while this error occurred. Postfix didn't even record an attempt to open a connection via SMTP.

    I strongly suspect some magic in the webapp to go wrong.
    But since I didn't have enough time to checkout zimbras sources and bring zimbras webapp into some java-debugging mode I couldn't follow this any further...


    Another note: This is only related to the webapp. Sending through desktop applications doesn't raise any errors.

    Thanks for your replies.

  5. #5
    Join Date
    Nov 2008
    Location
    Grand Rapids, MI
    Posts
    123
    Rep Power
    7

    Default

    Are there any errors in /opt/zimbra/log/mailbox.log when this happens? It's getting an error with a SOAP request, and those would go back to the mailboxd server.

  6. #6
    Join Date
    Sep 2011
    Posts
    6
    Rep Power
    4

    Default A Stacktrace

    Actually the same what the browser shows:

    Code:
    2012-04-24 09:16:51,703 INFO  [btpool0-1807://my.server.com/service/soap/SendMsgRequest] [name=my@mail.address.com;mid=3;ip=1.2.3.4;ua=ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346;] soap - SendMsgRequest
    2012-04-24 09:16:51,754 INFO  [btpool0-1807://my.server.com/service/soap/SendMsgRequest] [name=my@mail.address.com;mid=3;ip=1.2.3.4;ua=ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346;] mailop - Adding Message: id=97860, Message-ID=<e24ecc4a-2081-47e1-9167-18eb5751288b@lex>, parentId=-1, folderId=5, folderName=Sent.
    2012-04-24 09:16:51,757 INFO  [btpool0-1807://my.server.com/service/soap/SendMsgRequest] [name=my@mail.address.com;mid=3;ip=1.2.3.4;ua=ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346;] smtp - Sending message to MTA at server.com: Message-ID=<e24ecc4a-2081-47e1-9167-18eb5751288b@lex>, replyType=r
    2012-04-24 09:16:52,827 INFO  [btpool0-1807://my.server.com/service/soap/SendMsgRequest] [name=my@mail.address.com;mid=3;ip=1.2.3.4;ua=ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346;] mailop - Deleting Message (id=97860).
    2012-04-24 09:16:52,836 INFO  [btpool0-1807://my.server.com/service/soap/SendMsgRequest] [name=my@mail.address.com;mid=3;ip=1.2.3.4;ua=ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346;] SoapEngine - handler exception
    com.zimbra.common.service.ServiceException: system failure: Unable to send message
    ExceptionId:btpool0-1807://my.server.com/service/soap/SendMsgRequest:1335251812836:be641802d9585476
    Code:service.FAILURE
            at com.zimbra.common.service.ServiceException.FAILURE(ServiceException.java:248)
            at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:630)
            at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:425)
            at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:385)
            at com.zimbra.cs.service.mail.SendMsg.doSendMessage(SendMsg.java:193)
            at com.zimbra.cs.service.mail.SendMsg.handle(SendMsg.java:154)
            at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEngine.java:412)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:287)
            at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.java:158)
            at com.zimbra.soap.SoapServlet.doWork(SoapServlet.java:294)
            at com.zimbra.soap.SoapServlet.doPost(SoapServlet.java:215)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
            at com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:208)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:814)
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
            at com.zimbra.cs.servlet.SetHeaderFilter.doFilter(SetHeaderFilter.java:79)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
            at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)
            at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:132)
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218)
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.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(HandlerWrapper.java:152)
            at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.handler.DebugHandler.handle(DebugHandler.java:77)
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
            at org.mortbay.jetty.Server.handle(Server.java:326)
            at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:583)
            at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:986)
            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:414)
            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429)
            at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    Caused by: com.zimbra.cs.mailbox.MailSender$SafeMessagingException: Did not receive greeting from server; chained exception is:
            com.zimbra.cs.mailclient.MailException: Did not receive greeting from server
            at com.zimbra.cs.mailclient.smtp.SmtpTransport.protocolConnect(SmtpTransport.java:183)
            at javax.mail.Service.connect(Service.java:291)
            at javax.mail.Service.connect(Service.java:172)
            at javax.mail.Service.connect(Service.java:121)
            at com.zimbra.cs.mailbox.MailSender.sendMessageToHost(MailSender.java:898)
            at com.zimbra.cs.mailbox.MailSender.sendMessage(MailSender.java:831)
            at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:565)
            ... 39 more
    Last edited by guedressel; 04-24-2012 at 01:27 AM.

  7. #7
    Join Date
    Nov 2005
    Location
    Germany
    Posts
    89
    Rep Power
    9

    Default

    @justdave

    Thank you! After changing MTA to localhost it did work!
    ---
    Ubuntu 12.04 - Release 8.0.2.GA.5569.UBUNTU12.64 UBUNTU12_64 FOSS edition. - z-push

  8. #8
    Join Date
    Sep 2011
    Posts
    6
    Rep Power
    4

    Default Works!

    Indeed it was an issue in the MTA Settings. Thanks for your hint, zimbra is now fun to use again...

Similar Threads

  1. "Did not receive greeting from server"
    By guedressel in forum Administrators
    Replies: 1
    Last Post: 11-30-2011, 06:39 AM
  2. Replies: 1
    Last Post: 10-11-2011, 05:07 AM
  3. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  4. Replies: 4
    Last Post: 02-13-2008, 05:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •