8 Replies Latest reply on May 31, 2006 9:38 PM by acoliver

    Can't send mail to remote mailserver (like yahoo),Why?

    shi97

      Error like this:
      [SMTPSender] Delivering to: <macxiaoshu97@163.com>
      08:59:17,906 ERROR [SMTPSender] Unble to send email.
      org.columba.ristretto.smtp.SMTPException: Wrong state!
      at org.columba.ristretto.smtp.SMTPProtocol.ensureState(SMTPProtocol.java:768)
      at org.columba.ristretto.smtp.SMTPProtocol.data(SMTPProtocol.java:506)
      at org.jboss.mail.smtp.sender.SMTPSender.sendForDomain(SMTPSender.java:478)
      at org.jboss.mail.smtp.sender.SMTPSender.send(SMTPSender.java:364)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy62.send(Unknown Source)
      at org.jboss.mail.mailhandler.remote.RemoteDelivery.deliver(RemoteDelivery.java:107)
      at org.jboss.mail.mailhandler.remote.RemoteDelivery.send(RemoteDelivery.java:54)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
      at $Proxy57.send(Unknown Source)
      at org.jboss.mail.MailListenerChainService.processMail(MailListenerChainService.java:166)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
      at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:201)
      at $Proxy96.processMail(Unknown Source)
      at org.jboss.mail.delivery.DeliveryMDB.onMessage(DeliveryMDB.java:72)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
      at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:475)
      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:149)
      at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:101)
      at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
      at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:94)
      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
      at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
      at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:389)
      at org.jboss.ejb.Container.invoke(Container.java:873)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1077)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1379)
      at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
      at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:904)
      at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:160)
      at org.jboss.mq.SpySession.run(SpySession.java:333)
      at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
      at java.lang.Thread.run(Thread.java:595)

        • 1. Re: Can't send mail to remote mailserver (like yahoo),Why?
          acoliver

          Probably it sent a response like "no". Possibly due to you not having a DNS MX record that a lot of frequently spammed servers require.

          • 2. Re: Can't send mail to remote mailserver (like yahoo),Why?
            shi97

            Thanks!

            • 3. Re: Can't send mail to remote mailserver (like yahoo),Why?
              gohip

              okay, this is slightly in relation...

              Andrew, I can send mail to both a yahoo and hotmail mail acct, both these accounts, were freshly created for specifically testing ability to send to a non relayed domain

              they both had default settings(i.e. regarding spam)

              went mail is sent to either, it goes to their bulk or spam folders

              any idea as to why this is? Could you possibly list some things to check, and I'll post what I can get?

              I.e. email headers and body, do an nslookup ffor the MX record, etc

              I'd appreciate any input you or others might have.

              Note: If in Yahoo's acct you add a contact, and I send to the yahoo acct as a contact, it doesnt go to bulk folder.

              In hotmail, i didnt get to check the above, but if you mark it as not spam, then it quits putting it in the spam folder

              • 4. Re: Can't send mail to remote mailserver (like yahoo),Why?
                acoliver

                if the server that you have doesn't have an MX record and a reverse IP record then it is likely that Yahoo and others will auto-mark mails from it as spam.

                host -t MX mydomain.com on Linux (and probably Cygwin) returns info about MX records

                Note that Yahoo has already begun to implement something called SPF. Another bizzare scheme to add more stuff to DNS in TXT records. They may require these in addition.

                • 5. Re: Can't send mail to remote mailserver (like yahoo),Why?
                  gohip

                  for those wanting more information on SPF...
                  http://www.openspf.org/

                  • 6. Re: Can't send mail to remote mailserver (like yahoo),Why?
                    gohip

                    Andrew.....

                    My boss swears our DNS records are straight, but when I send an email to hotmail or yahoo accts, it is still going in spam folders.

                    I've traced it down, I thing to
                    X-Originating-IP:

                    I tried changing servers name, to exact what resolves to the MX records IP address, it didnt help

                    I tried changing mail servers name to that exact IP address, it didnt help

                    So, how is the X-Originating-IP deduced?

                    It sounds like, it is deduced by either the IP address, if servers name is by IP, or deduced by name, if servers name is not IP address

                    But yahoo, says the X-Originating-IP, is one of our "other" ip addresses

                    I searched the Mail Server config files, for this other address, thinking maybe when I installed, it was originally pointing to this addy, but cant find a trace

                    Any hints on where to look, in mail server, or what I can do to verify the DNS records are right or wrong? Everything seems straight up.

                    • 7. Re: Can't send mail to remote mailserver (like yahoo),Why?
                      gohip

                      jboss for some reason, when mking an outgoing connection, to internet, is using a different IP that the one in it's config files, or the one it is instructed to use using run -b <ip address>

                      anyone know of a way to fix this?

                      • 8. Re: Can't send mail to remote mailserver (like yahoo),Why?
                        acoliver

                        JBMS doesn't by default use the -b address. However you're spot on that we need to look at the SMTPSender. Presently it does not allow you to set a particular ip. Not sure how it is "picking" them.