You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Alex Sviridov <oo...@mail.ru.INVALID> on 2016/09/16 19:02:09 UTC

Messages don't reach external smtp servers

Hi all

I use v3-beta5 version andI have the following problem. I have james server and two users on it userA and userB. Messages from userA goest to userB and from userB goes to userA without any problems and each user gets its messages. 

However, when I want to send to some external smtp server (for example gmail.com and others) I have different problems like
"Error issuing SMTP 'DATA' command: CODE = 550 : MSG = Your HELO string is incorrect"
or 
"Error issuing SMTP 'DATA' command: CODE = 550 : MSG = Server is busy, please try later".

All are with code 550 but MSG is different. As a result no one message reached any external smtp server. In log I see only the exception below.
Please, help me to solve this problem.

javax.persistence.NoResultException: Query "SELECT domain FROM JamesDomain domain WHERE domain.name=:name" selected no result, but expected unique result.
    at org.apache.openjpa.persistence.QueryImpl.getSingleResult(QueryImpl.java:332)
    at org.apache.james.domainlist.jpa.JPADomainList.containsDomain(JPADomainList.java:94)
    at org.apache.james.mailetcontainer.impl.JamesMailetContext.configure(JamesMailetContext.java:478)
    at org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:44)
    at org.apache.james.container.spring.lifecycle.ConfigurableBeanPostProcessor.executeLifecycleMethodBeforeInit(ConfigurableBeanPostProcessor.java:28)
    at org.apache.james.container.spring.lifecycle.AbstractLifecycleBeanPostProcessor.postProcessBeforeInitialization(AbstractLifecycleBeanPostProcessor.java:59)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:921)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:864)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:779)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByType(AbstractAutowireCapableBeanFactory.java:1226)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1133)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
    at org.apache.james.container.spring.context.JamesServerApplicationContext.<init>(JamesServerApplicationContext.java:39)
    at org.apache.james.app.spring.JamesAppSpringMain.init(JamesAppSpringMain.java:61)
    at org.apache.james.app.spring.JamesAppSpringMain.main(JamesAppSpringMain.java:42)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
    at java.lang.Thread.run(Thread.java:745)