Unable to connect to mail store

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

Unable to connect to mail store

jonwimp
On a machine where I'm able to send emails out using `sendmail', can I do the same with OFBiz? Or
does JavaMailContainer require some special SMTP setup?

I've tried entering into framework/common/config/general.properties values for properties
"mail.smtp.relay.host", "mail.smtp.auth.user" and "mail.smtp.auth.password". I used values that I
know should work (like the credentials of the SMTP server I am currently sending this email out
with). Doesn't work.
Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

cjhowe
did you see the property in general.properties...
mail.notifications.enabled=Y

--- Jonathon -- Improov <[hidden email]> wrote:

> On a machine where I'm able to send emails out using
> `sendmail', can I do the same with OFBiz? Or
> does JavaMailContainer require some special SMTP
> setup?
>
> I've tried entering into
> framework/common/config/general.properties values
> for properties
> "mail.smtp.relay.host", "mail.smtp.auth.user" and
> "mail.smtp.auth.password". I used values that I
> know should work (like the credentials of the SMTP
> server I am currently sending this email out
> with). Doesn't work.
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

jonwimp
Yes, I did. It's on ('Y'). The error message in console.log is "unable to connect to mail store".

Chris Howe wrote:

> did you see the property in general.properties...
> mail.notifications.enabled=Y
>
> --- Jonathon -- Improov <[hidden email]> wrote:
>
>> On a machine where I'm able to send emails out using
>> `sendmail', can I do the same with OFBiz? Or
>> does JavaMailContainer require some special SMTP
>> setup?
>>
>> I've tried entering into
>> framework/common/config/general.properties values
>> for properties
>> "mail.smtp.relay.host", "mail.smtp.auth.user" and
>> "mail.smtp.auth.password". I used values that I
>> know should work (like the credentials of the SMTP
>> server I am currently sending this email out
>> with). Doesn't work.
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

cjhowe
Is it possible your smtp relay host doesn't use port
25? (If I remember correctly, GMail uses 465)
If so, you may need to declare an additional property
mail.smtp.port
Or if there is anything else that is unusual about
your relay host you can find the additional attributes
here:
http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html

--- Jonathon -- Improov <[hidden email]> wrote:

> Yes, I did. It's on ('Y'). The error message in
> console.log is "unable to connect to mail store".
>
> Chris Howe wrote:
> > did you see the property in general.properties...
> > mail.notifications.enabled=Y
> >
> > --- Jonathon -- Improov <[hidden email]> wrote:
> >
> >> On a machine where I'm able to send emails out
> using
> >> `sendmail', can I do the same with OFBiz? Or
> >> does JavaMailContainer require some special SMTP
> >> setup?
> >>
> >> I've tried entering into
> >> framework/common/config/general.properties values
> >> for properties
> >> "mail.smtp.relay.host", "mail.smtp.auth.user" and
> >> "mail.smtp.auth.password". I used values that I
> >> know should work (like the credentials of the
> SMTP
> >> server I am currently sending this email out
> >> with). Doesn't work.
> >>
> >
> >
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

jonwimp
It uses port 25. Actually, the "unable to connect to mail store" error message relates to IMAP.
Sorry about wrong initial problem identification. Where do I disable IMAP in OpenTaps? How is IMAP
used in OpenTaps?

I was getting tons of error logs because of some periodic IMAP access (and failure) that filled up
my whole harddisk. That prompted me to look at this IMAP problem. Yes, I know I should look at
log4j settings at some point, but I'm trying to root out all errors first.

Chris Howe wrote:

> Is it possible your smtp relay host doesn't use port
> 25? (If I remember correctly, GMail uses 465)
> If so, you may need to declare an additional property
> mail.smtp.port
> Or if there is anything else that is unusual about
> your relay host you can find the additional attributes
> here:
> http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html
>
> --- Jonathon -- Improov <[hidden email]> wrote:
>
>> Yes, I did. It's on ('Y'). The error message in
>> console.log is "unable to connect to mail store".
>>
>> Chris Howe wrote:
>>> did you see the property in general.properties...
>>> mail.notifications.enabled=Y
>>>
>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>
>>>> On a machine where I'm able to send emails out
>> using
>>>> `sendmail', can I do the same with OFBiz? Or
>>>> does JavaMailContainer require some special SMTP
>>>> setup?
>>>>
>>>> I've tried entering into
>>>> framework/common/config/general.properties values
>>>> for properties
>>>> "mail.smtp.relay.host", "mail.smtp.auth.user" and
>>>> "mail.smtp.auth.password". I used values that I
>>>> know should work (like the credentials of the
>> SMTP
>>>> server I am currently sending this email out
>>>> with). Doesn't work.
>>>>
>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

Scott Gray
Hi Jonathan

Does your password include capital letters?  There's a bug in the
JavaMailContainer that converts all properties in the config file to
lower case.

Regards
Scott

Jonathon -- Improov wrote:

> It uses port 25. Actually, the "unable to connect to mail store" error
> message relates to IMAP. Sorry about wrong initial problem
> identification. Where do I disable IMAP in OpenTaps? How is IMAP used
> in OpenTaps?
>
> I was getting tons of error logs because of some periodic IMAP access
> (and failure) that filled up my whole harddisk. That prompted me to
> look at this IMAP problem. Yes, I know I should look at log4j settings
> at some point, but I'm trying to root out all errors first.
>
> Chris Howe wrote:
>> Is it possible your smtp relay host doesn't use port
>> 25? (If I remember correctly, GMail uses 465)
>> If so, you may need to declare an additional property
>> mail.smtp.port
>> Or if there is anything else that is unusual about
>> your relay host you can find the additional attributes
>> here:
>> http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html 
>>
>>
>> --- Jonathon -- Improov <[hidden email]> wrote:
>>
>>> Yes, I did. It's on ('Y'). The error message in
>>> console.log is "unable to connect to mail store".
>>>
>>> Chris Howe wrote:
>>>> did you see the property in general.properties...
>>>> mail.notifications.enabled=Y
>>>>
>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>
>>>>> On a machine where I'm able to send emails out
>>> using
>>>>> `sendmail', can I do the same with OFBiz? Or does
>>>>> JavaMailContainer require some special SMTP
>>>>> setup?
>>>>>
>>>>> I've tried entering into
>>>>> framework/common/config/general.properties values
>>>>> for properties "mail.smtp.relay.host", "mail.smtp.auth.user" and
>>>>> "mail.smtp.auth.password". I used values that I know should work
>>>>> (like the credentials of the
>>> SMTP
>>>>> server I am currently sending this email out with). Doesn't work.
>>>>>
>>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

jonwimp
Hi Scott,

Nope, no caps. I'm leaning toward fact that I may not have IMAP (only POP3?). But thanks for tip,
it's going into my research notes.

Scott Gray wrote:

> Hi Jonathan
>
> Does your password include capital letters?  There's a bug in the
> JavaMailContainer that converts all properties in the config file to
> lower case.
>
> Regards
> Scott
>
> Jonathon -- Improov wrote:
>> It uses port 25. Actually, the "unable to connect to mail store" error
>> message relates to IMAP. Sorry about wrong initial problem
>> identification. Where do I disable IMAP in OpenTaps? How is IMAP used
>> in OpenTaps?
>>
>> I was getting tons of error logs because of some periodic IMAP access
>> (and failure) that filled up my whole harddisk. That prompted me to
>> look at this IMAP problem. Yes, I know I should look at log4j settings
>> at some point, but I'm trying to root out all errors first.
>>
>> Chris Howe wrote:
>>> Is it possible your smtp relay host doesn't use port
>>> 25? (If I remember correctly, GMail uses 465)
>>> If so, you may need to declare an additional property
>>> mail.smtp.port
>>> Or if there is anything else that is unusual about
>>> your relay host you can find the additional attributes
>>> here:
>>> http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html 
>>>
>>>
>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>
>>>> Yes, I did. It's on ('Y'). The error message in
>>>> console.log is "unable to connect to mail store".
>>>>
>>>> Chris Howe wrote:
>>>>> did you see the property in general.properties...
>>>>> mail.notifications.enabled=Y
>>>>>
>>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>>
>>>>>> On a machine where I'm able to send emails out
>>>> using
>>>>>> `sendmail', can I do the same with OFBiz? Or does
>>>>>> JavaMailContainer require some special SMTP
>>>>>> setup?
>>>>>>
>>>>>> I've tried entering into
>>>>>> framework/common/config/general.properties values
>>>>>> for properties "mail.smtp.relay.host", "mail.smtp.auth.user" and
>>>>>> "mail.smtp.auth.password". I used values that I know should work
>>>>>> (like the credentials of the
>>>> SMTP
>>>>>> server I am currently sending this email out with). Doesn't work.
>>>>>>
>>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

Scott Gray
I just managed to get mine to connect using pop3, does your pop3 server
require the full email address as login?  If so you need to use a + sign
istead of an @
Here's a copy of my containers.xml:
    <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="30000"/>
        <property name="delete-mail" value="false"/>
        <property name="maxSize" value="100000"/>
        <property name="default-listener" value="store-listener">
            <property name="mail.store.protocol" value="pop3"/>
            <property name="mail.host" value="mail.emcw.co.nz"/>
            <property name="mail.user" value="test+emcw.co.nz"/>
            <property name="mail.pass" value="******"/>
            <property name="mail.debug" value="true"/>
        </property>
    </container>

Regards
Scott

Jonathon -- Improov wrote:

> Hi Scott,
>
> Nope, no caps. I'm leaning toward fact that I may not have IMAP (only
> POP3?). But thanks for tip, it's going into my research notes.
>
> Scott Gray wrote:
>> Hi Jonathan
>>
>> Does your password include capital letters?  There's a bug in the
>> JavaMailContainer that converts all properties in the config file to
>> lower case.
>>
>> Regards
>> Scott
>>
>> Jonathon -- Improov wrote:
>>> It uses port 25. Actually, the "unable to connect to mail store"
>>> error message relates to IMAP. Sorry about wrong initial problem
>>> identification. Where do I disable IMAP in OpenTaps? How is IMAP
>>> used in OpenTaps?
>>>
>>> I was getting tons of error logs because of some periodic IMAP
>>> access (and failure) that filled up my whole harddisk. That prompted
>>> me to look at this IMAP problem. Yes, I know I should look at log4j
>>> settings at some point, but I'm trying to root out all errors first.
>>>
>>> Chris Howe wrote:
>>>> Is it possible your smtp relay host doesn't use port
>>>> 25? (If I remember correctly, GMail uses 465)
>>>> If so, you may need to declare an additional property
>>>> mail.smtp.port
>>>> Or if there is anything else that is unusual about
>>>> your relay host you can find the additional attributes
>>>> here:
>>>> http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html 
>>>>
>>>>
>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>
>>>>> Yes, I did. It's on ('Y'). The error message in
>>>>> console.log is "unable to connect to mail store".
>>>>>
>>>>> Chris Howe wrote:
>>>>>> did you see the property in general.properties...
>>>>>> mail.notifications.enabled=Y
>>>>>>
>>>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>>>
>>>>>>> On a machine where I'm able to send emails out
>>>>> using
>>>>>>> `sendmail', can I do the same with OFBiz? Or does
>>>>>>> JavaMailContainer require some special SMTP
>>>>>>> setup?
>>>>>>>
>>>>>>> I've tried entering into
>>>>>>> framework/common/config/general.properties values
>>>>>>> for properties "mail.smtp.relay.host", "mail.smtp.auth.user" and
>>>>>>> "mail.smtp.auth.password". I used values that I know should work
>>>>>>> (like the credentials of the
>>>>> SMTP
>>>>>>> server I am currently sending this email out with). Doesn't work.
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

jonwimp
Your tip works! Problem now is I need to disable the polling because I don't want my test instance
of OpenTaps to be connected to any real email mailbox. How do I do that?

Setting those properties ("mail.store.protocol", "mail.host", etc) in
framework/common/config/general.properties doesn't work. I think the OFBizBasicProductionSetup.pdf
document needs to be updated; there's no mention of your fix in there.

Jonathon

Scott Gray wrote:

> I just managed to get mine to connect using pop3, does your pop3 server
> require the full email address as login?  If so you need to use a + sign
> istead of an @
> Here's a copy of my containers.xml:
>    <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="30000"/>
>        <property name="delete-mail" value="false"/>
>        <property name="maxSize" value="100000"/>
>        <property name="default-listener" value="store-listener">
>            <property name="mail.store.protocol" value="pop3"/>
>            <property name="mail.host" value="mail.emcw.co.nz"/>
>            <property name="mail.user" value="test+emcw.co.nz"/>
>            <property name="mail.pass" value="******"/>
>            <property name="mail.debug" value="true"/>
>        </property>
>    </container>
>
> Regards
> Scott
>
> Jonathon -- Improov wrote:
>> Hi Scott,
>>
>> Nope, no caps. I'm leaning toward fact that I may not have IMAP (only
>> POP3?). But thanks for tip, it's going into my research notes.
>>
>> Scott Gray wrote:
>>> Hi Jonathan
>>>
>>> Does your password include capital letters?  There's a bug in the
>>> JavaMailContainer that converts all properties in the config file to
>>> lower case.
>>>
>>> Regards
>>> Scott
>>>
>>> Jonathon -- Improov wrote:
>>>> It uses port 25. Actually, the "unable to connect to mail store"
>>>> error message relates to IMAP. Sorry about wrong initial problem
>>>> identification. Where do I disable IMAP in OpenTaps? How is IMAP
>>>> used in OpenTaps?
>>>>
>>>> I was getting tons of error logs because of some periodic IMAP
>>>> access (and failure) that filled up my whole harddisk. That prompted
>>>> me to look at this IMAP problem. Yes, I know I should look at log4j
>>>> settings at some point, but I'm trying to root out all errors first.
>>>>
>>>> Chris Howe wrote:
>>>>> Is it possible your smtp relay host doesn't use port
>>>>> 25? (If I remember correctly, GMail uses 465)
>>>>> If so, you may need to declare an additional property
>>>>> mail.smtp.port
>>>>> Or if there is anything else that is unusual about
>>>>> your relay host you can find the additional attributes
>>>>> here:
>>>>> http://java.sun.com/products/javamail/javadocs/com/sun/mail/smtp/package-summary.html 
>>>>>
>>>>>
>>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>>
>>>>>> Yes, I did. It's on ('Y'). The error message in
>>>>>> console.log is "unable to connect to mail store".
>>>>>>
>>>>>> Chris Howe wrote:
>>>>>>> did you see the property in general.properties...
>>>>>>> mail.notifications.enabled=Y
>>>>>>>
>>>>>>> --- Jonathon -- Improov <[hidden email]> wrote:
>>>>>>>
>>>>>>>> On a machine where I'm able to send emails out
>>>>>> using
>>>>>>>> `sendmail', can I do the same with OFBiz? Or does
>>>>>>>> JavaMailContainer require some special SMTP
>>>>>>>> setup?
>>>>>>>>
>>>>>>>> I've tried entering into
>>>>>>>> framework/common/config/general.properties values
>>>>>>>> for properties "mail.smtp.relay.host", "mail.smtp.auth.user" and
>>>>>>>> "mail.smtp.auth.password". I used values that I know should work
>>>>>>>> (like the credentials of the
>>>>>> SMTP
>>>>>>>> server I am currently sending this email out with). Doesn't work.
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

David E Jones-2

On Nov 29, 2006, at 9:47 PM, Jonathon -- Improov wrote:

> Setting those properties ("mail.store.protocol", "mail.host", etc)  
> in framework/common/config/general.properties doesn't work. I think  
> the OFBizBasicProductionSetup.pdf document needs to be updated;  
> there's no mention of your fix in there.

The general.properties file is for setting up the outgoing email  
server, not the incoming email account as the javamail-container is for.

-David
Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

jonwimp
How do I:

1. Remove the periodic polling/accessing of the mailbox, OR

2. Change the frequency of of the polling?

David E Jones wrote:

>
> On Nov 29, 2006, at 9:47 PM, Jonathon -- Improov wrote:
>
>> Setting those properties ("mail.store.protocol", "mail.host", etc) in
>> framework/common/config/general.properties doesn't work. I think the
>> OFBizBasicProductionSetup.pdf document needs to be updated; there's no
>> mention of your fix in there.
>
> The general.properties file is for setting up the outgoing email server,
> not the incoming email account as the javamail-container is for.
>
> -David
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.430 / Virus Database: 268.14.19/556 - Release Date:
> 11/28/2006 3:22 PM
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Unable to connect to mail store

Scott Gray
Use the polling-delay property in ofbiz-containers.xml

Regards
Scott

Jonathon -- Improov wrote:

> How do I:
>
> 1. Remove the periodic polling/accessing of the mailbox, OR
>
> 2. Change the frequency of of the polling?
>
> David E Jones wrote:
>>
>> On Nov 29, 2006, at 9:47 PM, Jonathon -- Improov wrote:
>>
>>> Setting those properties ("mail.store.protocol", "mail.host", etc)
>>> in framework/common/config/general.properties doesn't work. I think
>>> the OFBizBasicProductionSetup.pdf document needs to be updated;
>>> there's no mention of your fix in there.
>>
>> The general.properties file is for setting up the outgoing email
>> server, not the incoming email account as the javamail-container is for.
>>
>> -David
>>
>>
>> --No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.430 / Virus Database: 268.14.19/556 - Release Date:
>> 11/28/2006 3:22 PM
>>
>>
>
>