Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-14-2009, 10:21 AM
Junior Member
 
Posts: 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?
Reply With Quote
  #2 (permalink)  
Old 07-14-2009, 10:55 AM
Moderator
 
Posts: 1,554
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?
Reply With Quote
  #3 (permalink)  
Old 07-14-2009, 11:08 AM
Junior Member
 
Posts: 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
Reply With Quote
  #4 (permalink)  
Old 07-14-2009, 12:32 PM
Moderator
 
Posts: 1,554
Default

have you checked the logs on the relay smtp server to see if it is ever being contacted to send the e-mail?
Reply With Quote
  #5 (permalink)  
Old 07-14-2009, 01:43 PM
Elite Member
 
Posts: 281
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
Reply With Quote
  #6 (permalink)  
Old 07-14-2009, 01:50 PM
Junior Member
 
Posts: 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.
Reply With Quote
  #7 (permalink)  
Old 07-14-2009, 02:23 PM
Elite Member
 
Posts: 281
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
Reply With Quote
  #8 (permalink)  
Old 07-14-2009, 05:27 PM
Junior Member
 
Posts: 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.
Reply With Quote
  #9 (permalink)  
Old 07-15-2009, 06:14 AM
Outstanding Member
 
Posts: 594
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 ?
Reply With Quote
  #10 (permalink)  
Old 08-01-2009, 09:41 PM
Junior Member
 
Posts: 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.