Results 1 to 10 of 10

Thread: Everything is perfect -- except sending through web interface

  1. #1
    jchammons is offline Junior Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    6

    Default Everything is perfect -- except sending through web interface

    So, here is the status:

    jchamm@cogtext:~$ uname -a
    Linux cogtext 2.6.24-23-xen #1 SMP Wed Apr 1 23:47:10 UTC 2009 x86_64 GNU/Linux

    root@cogtext:~# cat /etc/issue
    Ubuntu 8.04.3 LTS \n \l

    VERSION: zcs-5.0.18_GA_3011.UBUNTU8_64.20090708005928

    I have upgraded from many other versions without problems. Things were working fine until I started playing with a little backup script I had. The backup script did not do anything to Zimbra itself, so I am perplexed as to why this started happening. It's likely unrelated.

    THE PROBLEM: Everything works great EXCEPT for sending mail through the web interface. This is the error that appears:

    A network service error has occurred.
    method: SendMsgRequest
    msg: system failure: java.lang.NullPointerException
    code: service.FAILURE
    detail: soap:Receiver
    trace: btpool0-0:1247591800165:ef2ef58824ee9254
    request:

    Body: {
    SendMsgRequest: {
    _jsns: "urn:zimbraMail",
    m: {
    e: [
    0: {
    a: "MemberService@USEcu.org",
    add: 1,
    t: "t"
    },
    1: {
    a: "he@jasonhammons.org",
    p: "Jason C. Hammons",
    t: "f"
    }
    ],
    idnt: "0b7bf751-2924-49d8-af58-dede225f6dad",
    irt: {
    _content: "<1246570313801@edocprocessing.com>"
    },
    mp: [
    0: {
    ct: "multipart/alternative",
    mp: [
    0: {
    content: {
    _content: "Thanks! "
    },
    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'>Thanks!</div></body></html>"
    },
    ct: "text/html"
    }
    ]
    }
    ],
    origid: "2260",
    rt: "r",
    su: {
    _content: "Re: USE CU Statement Now Available"
    }
    },
    suid: 1247591800100
    }
    },
    Header: {
    context: {
    _jsns: "urn:zimbra",
    account: {
    _content: "he@jasonhammons.org",
    by: "name"
    },
    authToken: "(removed)",
    format: {
    type: "js"
    },
    sessionId: {
    _content: 19,
    id: 19
    },
    userAgent: {
    name: "ZimbraWebClient - FF3.0 (Linux)",
    version: "5.0.18_GA_3011.UBUNTU8_64"
    }
    }
    }

    This is what shows up in the log...

    /opt/zimbra/log/mailbox.log:

    2009-07-14 10:16:33,657 INFO [btpool0-3] [name=he@jasonhammons.org;mid=18;ip=12
    7.0.0.1;ua=ZimbraWebClient - FF3.0 (Linux)/5.0.18_GA_3011.UBUNTU8_64;] soap - Se
    archConvRequest
    2009-07-14 10:16:33,887 INFO [btpool0-1] [ip=127.0.0.1;] soap - GetDomainInfoRe
    quest
    2009-07-14 10:16:36,594 INFO [btpool0-1] [ip=127.0.0.1;] soap - GetDomainInfoRe
    quest
    2009-07-14 10:16:40,161 INFO [btpool0-0] [name=he@jasonhammons.org;mid=18;ip=12
    7.0.0.1;ua=ZimbraWebClient - FF3.0 (Linux)/5.0.18_GA_3011.UBUNTU8_64;] soap - Se
    ndMsgRequest
    2009-07-14 10:16:40,162 INFO [btpool0-0] [name=he@jasonhammons.org;mid=18;ip=12
    7.0.0.1;ua=ZimbraWebClient - FF3.0 (Linux)/5.0.18_GA_3011.UBUNTU8_64;] SendMsg -
    <SendMsg> LC(mbox=0b7bf751-2924-49d8-af58-dede225f6dad, sessions=19)
    2009-07-14 10:16:40,165 WARN [btpool0-0] [name=he@jasonhammons.org;mid=18;ip=12
    7.0.0.1;ua=ZimbraWebClient - FF3.0 (Linux)/5.0.18_GA_3011.UBUNTU8_64;] SoapEngin
    e - handler exception
    java.lang.NullPointerException
    at com.zimbra.cs.mailbox.MailSender.getSmtpHost(MailS ender.java:455)
    at com.zimbra.cs.mailbox.MailSender.logMessage(MailSe nder.java:435)
    at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:175)
    at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(M ailSender.java:120)
    at com.zimbra.cs.service.mail.SendMsg.doSendMessage(S endMsg.java:196)
    at com.zimbra.cs.service.mail.SendMsg.handle(SendMsg. java:156)
    at com.zimbra.soap.SoapEngine.dispatchRequest(SoapEng ine.java:429)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:286)
    at com.zimbra.soap.SoapEngine.dispatch(SoapEngine.jav a:160)
    at com.zimbra.soap.SoapServlet.doPost(SoapServlet.jav a:275)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:727)
    at com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:187)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
    at org.mortbay.jetty.servlet.ServletHolder.handle(Ser vletHolder.java:487
    )
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(Servlet
    Handler.java:1093)
    at org.mortbay.servlet.UserAgentFilter.doFilter(UserA gentFilter.java:81)
    at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter .java:129)
    at org.mortbay.jetty.servlet.ServletHandler$CachedCha in.doFilter(Servlet
    Handler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(Se rvletHandler.java:3
    60)
    at org.mortbay.jetty.security.SecurityHandler.handle( SecurityHandler.jav
    a:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(Se ssionHandler.java:1
    81)
    at org.mortbay.jetty.handler.ContextHandler.handle(Co ntextHandler.java:7
    16)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebA ppContext.java:406)
    at org.mortbay.jetty.handler.ContextHandlerCollection .handle(ContextHandlerCollection.java:211)
    at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.handler.rewrite.RewriteHandler.h andle(RewriteHandler.java:350)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(Ha ndlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(Htt pConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.co ntent(HttpConnection.java:844)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser. java:644)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpPa rser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnec tion.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(Selec tChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.ru n(BoundedThreadPool.java:442)

    I have tried many things and read many other posts but I do not see a problem exactly like this.

    Any advice?

  2. #2
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

    Default

    seems like its related to the smtp relay host. are you in a multiserver environment? do you have a different server set to relay outside e-mail in the mta tab under the server config?

  3. #3
    jchammons is offline Junior Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    6

    Default

    Quote Originally Posted by bdial View Post
    seems like its related to the smtp relay host. are you in a multiserver environment? do you have a different server set to relay outside e-mail in the mta tab under the server config?
    Hi bdial,

    Thanks for the quick reply. This is a single-server Zimbra install, using a relay SMTP server nearby.

    I have that SMTP server under the MTA tab in the server configuration in the Administration Console. I also have DNS lookups enabled.

    However, I should mention that SMTP through my Zimbra server works fine from other e-mail clients. It's only through the web interface that I encounter trouble.

    Cheers,
    Jason

  4. #4
    bdial's Avatar
    bdial is offline Moderator
    Join Date
    Jul 2007
    Location
    Baltimore
    Posts
    1,649
    Rep Power
    10

    Default

    have you checked the logs on the relay smtp server to see if it is ever being contacted to send the e-mail?

  5. #5
    fcash is offline Elite Member
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    7

    Default

    Double-check the TO and FROM e-mail addresses in the e-mail. It looks like it's splitting it incorrectly. The FROM address appears to be something like "t"he@jasonhammons.org.

    At least, that's what I pick out of that garbled debug output.
    Freddie

  6. #6
    jchammons is offline Junior Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    6

    Default

    Hi Freddie,

    I'm not sure where you got the "t" from, but the actual e-mail address is supposed to be he@jason... and it appears to be that everywhere I can look.

  7. #7
    fcash is offline Elite Member
    Join Date
    Jun 2007
    Location
    BC, Canada
    Posts
    281
    Rep Power
    7

    Default

    From here:

    Body: {
    SendMsgRequest: {
    _jsns: "urn:zimbraMail",
    m: {
    e: [
    0: {
    a: "MemberService@USEcu.org",
    add: 1,
    t: "t"
    },
    1: {
    a: "he@jasonhammons.org",
    p: "Jason C. Hammons",
    t: "f"
    }
    ],

    It was a wild guess, though. Figured the t: meant TO and the "t" was part of the address. Guess the second t meant TO.
    Freddie

  8. #8
    jchammons is offline Junior Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    6

    Default

    Quote Originally Posted by bdial View Post
    have you checked the logs on the relay smtp server to see if it is ever being contacted to send the e-mail?
    I just checked and it does not connect to the SMTP relay.

  9. #9
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    7

    Default

    You say other email clients can send mail using smtp relay server but webmail cant.
    > java.lang.NullPointerException
    at com.zimbra.cs.mailbox.MailSender.getSmtpHost(MailS ender.java:455)
    at com.zimbra.cs.mailbox.MailSender.logMessage(MailSe nder.java:435)

    Somehow i am not convinced how other clients allow you to send mail through this relay host. Can you paste logs of any successful sending of a message from other mail client which you mention ?

  10. #10
    jchammons is offline Junior Member
    Join Date
    Mar 2009
    Posts
    6
    Rep Power
    6

    Default

    Update: I still do not know what caused or would have fixed this. However, upgrading to the version 6 release candidate 1 works now and I'm not going to look back.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 10-05-2007, 11:49 AM
  2. Error with sending email from web interface
    By Max Ma in forum Administrators
    Replies: 3
    Last Post: 07-26-2007, 10:44 PM
  3. Replies: 3
    Last Post: 07-19-2007, 02:00 AM
  4. Contacts missing in web interface
    By ddoyley in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 07-17-2007, 10:59 AM

Posting Permissions

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