apache - Error sending mail via local JamesServer -
i have problems sending email using james 3.0-beta4:
i'm writing in scala. when transport.send @ moment occurred error.
transport.send(message, externalrcpts.toarray(new address[externalrcpts.size()]));
error
james.domainlist - no domain found javax.persistence.noresultexception: query "select domain jamesdomain domain domain.name=:name" selected no result, expected unique result. @ org.apache.openjpa.persistence.queryimpl.getsingleresult(queryimpl.java:345) ~[openjpa-2.1.0.jar:2.1.0] @ org.apache.james.domainlist.jpa.jpadomainlist.containsdomain(jpadomainlist.java:100) ~[james-server-data-jpa-3.0-beta4.jar:3.0-beta4] @ org.apache.james.mailetcontainer.impl.jamesmailetcontext.islocalserver(jamesmailetcontext.java:341) [james-server-mailetcontainer-camel-3.0-beta4.jar:3.0-beta4] @ org.apache.james.transport.matchers.hostislocal.matchrecipient(hostislocal.java:38) [apache-standard-mailets-1.1.jar:1.1] @ org.apache.mailet.base.genericrecipientmatcher.match(genericrecipientmatcher.java:54) [apache-mailet-base-1.1.jar:1.1] @ org.apache.james.mailetcontainer.impl.camel.matchersplitter.split(matchersplitter.java:87) [james-server-mailetcontainer-camel-3.0-beta4.jar:3.0-beta4] @ sun.reflect.generatedmethodaccessor111.invoke(unknown source) ~[na:na] @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source) ~[na:1.6.0_26]
the error says james cannot resolve destination domain. may occur if send @localhost or other unknown domain. try this: ./james-cli.sh -h localhost -p 9999 adddomain domain_name.com
anyway remember error not blocking - message still goes destination. if blocking in case try find config option make not blocking (i'm not sure option located, should have quite intuitive name ;-) ).
good luck!
Comments
Post a Comment