Ofbiz Inbound email configuration Connection error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Ofbiz Inbound email configuration Connection error

Anchit Jindal
I am trying to enable inbound email settings in my ofbiz. For this i uncomment JavaMail Listener Container in ofbiz-component.xml and do changes as required. After this when i run my ofbiz javamail-container is started and try to connect with my email and give me Connection timed out error when i use imap as my mail.store.protocol and Connect failed when i use pop3 as protocol. Below is my container code

<container name="javamail-container" class="org.ofbiz.service.mail.JavaMailContainer">
    <property name="delegator-name" value="default"/>
    <property name="dispatcher-name" value="JavaMailDispatcher"/>
    <property name="run-as-user" value="system"/>
    <property name="poll-delay" value="300000"/>
    <property name="delete-mail" value="false"/>
    <property name="maxSize" value="100000"/>
    <property name="default-listener" value="store-listener">
    <property name="mail.store.protocol" value="imap"/>
    <property name="mail.host" value="viithiisys.com"/>
    <property name="mail.port" value="995"/>
    <property name="mail.user" value="anchit.jindal"/>
    <property name="mail.pass" value="mypassword"/>
    <property name="mail.debug" value="false"/>
    </property>
</container>

error msg
2014-04-23 11:59:51,555 (main) [  JavaMailContainer.java:196:ERROR] Unable to connect to mail store : pop3://anchitjindal91@gmail.com : Connect failed

Please help me to solve this problem and let me know if any other setting is required.Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Inbound email configuration Connection error

Anchit Jindal
I got its solution just change the following settings help me to solve this
 <property name="mail.store.protocol" value="imaps"/>
 <property name="mail.host" value="imap.gmail.com"/>
 <property name="mail.user" value="anchitjindal91"/>

Thanks
Anchit Jindal