Re: [Dspace-tech] SMTP Authentication failed

2013-05-26 Thread Alan Orth

Bram,

Sorry, I meant to say that Maven filtering broke our setup with regards 
to SMTP only.  I migrated our configs to *.properties based on the 
default build.properties and we've had no other problems. :)


Alan

On 05/26/2013 05:35 PM, Bram Luyten wrote:

Hi Alan,

did you trace back the origin of why it broke?

I had an older setup with maven profiles that also didn't immediately 
build dspace 3.x, because a new property, dspace.install.dir, was not 
present in my maven profiles. Info about this in particular: 
https://github.com/DSpace/DSpace/pull/126


Did you experience any other incompatibilities?

rgds

Bram


--
logo
*Bram Luyten*/@mire/
/2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010/
/Esperantolaan 4, Heverlee 3001, Belgium/
www.atmire.com 
 





On Sun, May 26, 2013 at 3:40 PM, Alan Orth > wrote:


Helix,

I hear you about changing past behavior, but something to
consider: The
move to build.properties and Maven filtering broke the setup we've
been
using since DSpace 1.5!  This may merit a special case.

Of course we'll have to see how the wider DSpace community feels about
this, and if we can unearth any corner cases and or side effects.

Cheers,

Alan

On 05/26/2013 04:26 PM, helix84 wrote:
> On Sun, May 26, 2013 at 3:17 PM, Alan Orth mailto:alan.o...@gmail.com>> wrote:
>> I will comment on the Jira bug.  I'm not sure how DSpace
releases go, but is
>> this type of fix a candidate for 3.1.x or 3.2?
> Glad to hear that.
>
> I'm actually on the fence with this one - in a certain aspect it
is a
> fix, but it changes the past behaviour, which also brings
potential to
> break a corner case. There is still the possibility that sending
empty
> username and password serves a purpose, I just don't know about it.
>
> Since DSpace 3 the release numbering actually changed and 3.2
would be
> the next bugfix release and 4.0 will be the next major release.
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Alan Orth
alan.o...@gmail.com 
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my
telephone; my wish has come true because I can no longer figure
out how to use my telephone." -Bjarne Stroustrup, inventor of C++



--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance
monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette:
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




--
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my wish 
has come true because I can no longer figure out how to use my telephone." -Bjarne 
Stroustrup, inventor of C++

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] SMTP Authentication failed

2013-05-26 Thread Bram Luyten
Hi Alan,

did you trace back the origin of why it broke?

I had an older setup with maven profiles that also didn't immediately build
dspace 3.x, because a new property, dspace.install.dir, was not present in
my maven profiles. Info about this in particular:
https://github.com/DSpace/DSpace/pull/126

Did you experience any other incompatibilities?

rgds

Bram


-- 
[image: logo]
*Bram Luyten* *@mire*
*2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010*
*Esperantolaan 4, Heverlee 3001, Belgium*
www.atmire.com


On Sun, May 26, 2013 at 3:40 PM, Alan Orth  wrote:

> Helix,
>
> I hear you about changing past behavior, but something to consider: The
> move to build.properties and Maven filtering broke the setup we've been
> using since DSpace 1.5!  This may merit a special case.
>
> Of course we'll have to see how the wider DSpace community feels about
> this, and if we can unearth any corner cases and or side effects.
>
> Cheers,
>
> Alan
>
> On 05/26/2013 04:26 PM, helix84 wrote:
> > On Sun, May 26, 2013 at 3:17 PM, Alan Orth  wrote:
> >> I will comment on the Jira bug.  I'm not sure how DSpace releases go,
> but is
> >> this type of fix a candidate for 3.1.x or 3.2?
> > Glad to hear that.
> >
> > I'm actually on the fence with this one - in a certain aspect it is a
> > fix, but it changes the past behaviour, which also brings potential to
> > break a corner case. There is still the possibility that sending empty
> > username and password serves a purpose, I just don't know about it.
> >
> > Since DSpace 3 the release numbering actually changed and 3.2 would be
> > the next bugfix release and 4.0 will be the next major release.
> >
> > Regards,
> > ~~helix84
> >
> > Compulsory reading: DSpace Mailing List Etiquette
> > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
> --
> Alan Orth
> alan.o...@gmail.com
> http://alaninkenya.org
> http://mjanja.co.ke
> "I have always wished for my computer to be as easy to use as my
> telephone; my wish has come true because I can no longer figure out how to
> use my telephone." -Bjarne Stroustrup, inventor of C++
>
>
>
> --
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> ___
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette:
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] SMTP Authentication failed

2013-05-26 Thread Alan Orth
Helix,

I hear you about changing past behavior, but something to consider: The 
move to build.properties and Maven filtering broke the setup we've been 
using since DSpace 1.5!  This may merit a special case.

Of course we'll have to see how the wider DSpace community feels about 
this, and if we can unearth any corner cases and or side effects.

Cheers,

Alan

On 05/26/2013 04:26 PM, helix84 wrote:
> On Sun, May 26, 2013 at 3:17 PM, Alan Orth  wrote:
>> I will comment on the Jira bug.  I'm not sure how DSpace releases go, but is
>> this type of fix a candidate for 3.1.x or 3.2?
> Glad to hear that.
>
> I'm actually on the fence with this one - in a certain aspect it is a
> fix, but it changes the past behaviour, which also brings potential to
> break a corner case. There is still the possibility that sending empty
> username and password serves a purpose, I just don't know about it.
>
> Since DSpace 3 the release numbering actually changed and 3.2 would be
> the next bugfix release and 4.0 will be the next major release.
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-26 Thread helix84
On Sun, May 26, 2013 at 3:17 PM, Alan Orth  wrote:
> I will comment on the Jira bug.  I'm not sure how DSpace releases go, but is
> this type of fix a candidate for 3.1.x or 3.2?

Glad to hear that.

I'm actually on the fence with this one - in a certain aspect it is a
fix, but it changes the past behaviour, which also brings potential to
break a corner case. There is still the possibility that sending empty
username and password serves a purpose, I just don't know about it.

Since DSpace 3 the release numbering actually changed and 3.2 would be
the next bugfix release and 4.0 will be the next major release.

Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-26 Thread Alan Orth
Hey, helix.

I just had a go at solving this... :)

https://gist.github.com/alanorth/5652740

This works, both for `dspace test-email` as well as "Forgot password" 
functions.

I will comment on the Jira bug.  I'm not sure how DSpace releases go, 
but is this type of fix a candidate for 3.1.x or 3.2?

Cheers,

Alan

On 05/25/2013 01:58 PM, helix84 wrote:
> On Sat, May 25, 2013 at 12:54 PM, Alan Orth  wrote:
>> Thanks for doing that for me.  I'll make sure to keep an eye on DS-1561.
> I maked you as the reporter and added the issue to your watchlist, so
> you will receive any updates to that issue.
>
> I'll try to prepare a fix when I can get to it.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-25 Thread helix84
On Sat, May 25, 2013 at 12:54 PM, Alan Orth  wrote:
> Thanks for doing that for me.  I'll make sure to keep an eye on DS-1561.

I maked you as the reporter and added the issue to your watchlist, so
you will receive any updates to that issue.

I'll try to prepare a fix when I can get to it.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-25 Thread Alan Orth
Helix,

Thanks for doing that for me.  I'll make sure to keep an eye on DS-1561.

Cheers,

Alan

On 05/25/2013 01:37 PM, helix84 wrote:
> https://jira.duraspace.org/browse/DS-1561
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-25 Thread helix84
https://jira.duraspace.org/browse/DS-1561


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-25 Thread Alan Orth
Yes, I've verified again that commenting out the mail.server.username 
and mail.server.password in dspace.cfg and then restarting Tomcat fixes 
it.  For some reason reloading the context via Tomcat admin didn't work...

For now I'll have to remember to comment that line out after deployment, 
or look into using authenticated SMTP.

Alan

On 05/23/2013 12:54 PM, Alan Orth wrote:
> Helix,
>
> Correct; if I comment out the mail.server.username and 
> mail.server.password in the generated / "final" dspace.cfg sending 
> email works.  Also, I was mistaken before regarding `dspace 
> test-email`, it behaves the same way as the emails from the "Forgot 
> Password" etc; I had previously stated that these were working 
> regardless, but I was wrong.
>
> This is probably a corner case for people using un-authenticated SMTP 
> I guess... Ironically, I've been yelling at our ISP to enable 
> authentication for years ;)
>
> Alan
>
> On 05/23/2013 12:34 PM, helix84 wrote:
>> OK, here's how I understood it: if you comment out
>> mail.server.username and mail.server.password, it works, but if you
>> leave them empty, it doesn't work (presumably because it sends empty
>> values).
>>
>> On Thu, May 23, 2013 at 11:20 AM, Alan Orth  wrote:
>>> If I comment out the mail.* settings in my production.properties 
>>> file I get
>>> an error about circular definitions:
>> Yes, unfortunately, this is a known limitation of the Maven filtering
>> process as documented here:
>> https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile
>>  
>>
>>
>>
>> I guess the the only solution we can provide in DSpace is not to send
>> username and password if they're both empty.
>>
>>
>> The relevant code is here:
>> https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/core/Email.java#L265
>>  
>>
>>
>> It seems to me the code should behave the same (username == null)
>> regardless of whether mail.server.username is commented out or has an
>> empty value. But I would need to verify this.
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>


-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread Alan Orth
Helix,

Correct; if I comment out the mail.server.username and 
mail.server.password in the generated / "final" dspace.cfg sending email 
works.  Also, I was mistaken before regarding `dspace test-email`, it 
behaves the same way as the emails from the "Forgot Password" etc; I had 
previously stated that these were working regardless, but I was wrong.

This is probably a corner case for people using un-authenticated SMTP I 
guess... Ironically, I've been yelling at our ISP to enable 
authentication for years ;)

Alan

On 05/23/2013 12:34 PM, helix84 wrote:
> OK, here's how I understood it: if you comment out
> mail.server.username and mail.server.password, it works, but if you
> leave them empty, it doesn't work (presumably because it sends empty
> values).
>
> On Thu, May 23, 2013 at 11:20 AM, Alan Orth  wrote:
>> If I comment out the mail.* settings in my production.properties file I get
>> an error about circular definitions:
> Yes, unfortunately, this is a known limitation of the Maven filtering
> process as documented here:
> https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile
>
>
> I guess the the only solution we can provide in DSpace is not to send
> username and password if they're both empty.
>
>
> The relevant code is here:
> https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/core/Email.java#L265
>
> It seems to me the code should behave the same (username == null)
> regardless of whether mail.server.username is commented out or has an
> empty value. But I would need to verify this.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread helix84
OK, here's how I understood it: if you comment out
mail.server.username and mail.server.password, it works, but if you
leave them empty, it doesn't work (presumably because it sends empty
values).

On Thu, May 23, 2013 at 11:20 AM, Alan Orth  wrote:
> If I comment out the mail.* settings in my production.properties file I get
> an error about circular definitions:

Yes, unfortunately, this is a known limitation of the Maven filtering
process as documented here:
https://wiki.duraspace.org/display/DSDOC3x/Configuration#Configuration-Thebuild.propertiesConfigurationPropertiesFile


I guess the the only solution we can provide in DSpace is not to send
username and password if they're both empty.


The relevant code is here:
https://github.com/DSpace/DSpace/blob/dspace-3.1/dspace-api/src/main/java/org/dspace/core/Email.java#L265

It seems to me the code should behave the same (username == null)
regardless of whether mail.server.username is commented out or has an
empty value. But I would need to verify this.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-23 Thread Alan Orth

Ok,

I've done some more tests...

When I specify my mail settings in a custom config -- 
[dspace-src]/dspace/config/production.cfg -- and then install with `ant 
update -Dconfig=../../config/production.cfg`, sending mail via DSpace 
works fine.  The [dspace]/config/dspace.cfg generated by the build/ant 
process has these SMTP settings:


   # SMTP mail server
   mail.server = my.smtp.com

   # SMTP mail server authentication username and password (if required)
   # mail.server.username =
   # mail.server.password =

   # SMTP mail server alternate port (defaults to 25)
   # mail.server.port =

When I use a stock DSpace config -- 
[dspace-src]/dspace/config/dspace.cfg -- with a custom build.properties 
-- [dspace-src]/production.properties -- and then build with 
-Denv=production and install with `ant update`, sending mail via DSpace 
errors with javax.mail.AuthenticationFailedException.  The 
[dspace]/config/dspace.cfg generated by the build/ant process has these 
SMTP settings:


   # SMTP mail server
   mail.server = smtp.serv.cgnet.com

   # SMTP mail server authentication username and password (if required)
   mail.server.username =
   mail.server.password =

   # SMTP mail server alternate port (defaults to 25)
   mail.server.port = 25

If I comment out the mail.* settings in my production.properties file I 
get an error about circular definitions:


   BUILD FAILED
   /home/aorth/src/git/DSpace/dspace/target/dspace-3.1-build/build.xml:88:
   Property mail.server.password was circularly defined.

I think the build.properties way of doing things is a step forward, as 
it allows for management of multiple DSpace instances from one code 
base, but it's a bit confusing!  Also, we're using unauthenticated SMTP, 
so these username/password settings are really not useful to us.


Thanks,

Alan

On 05/21/2013 04:45 PM, Alan Orth wrote:

Ok,

I've just reverted to our "all in one" dspace.cfg and emails work 
fine.  Sounds like there are some issues with my build.properties 
(dev.properties and production.properties)...


Alan

On 05/21/2013 03:32 PM, helix84 wrote:

On Tue, May 21, 2013 at 2:08 PM, Alan Orth  wrote:

Here's the full stack trace, including the "Caused by":
https://gist.github.com/alanorth/4e942aa252764a3d87aa/raw/2c4a9ad30f537386cc3bb1c9a885204e949038e2/gistfile1.txt 


OK, in this case that didn't tell me anything new.



My mail.* properties from dspace.cfg:

Looks good.



 mail.allowed.referrers = cgspace.cgiar.org

I have localhost here, so try this:
mail.allowed.referrers = localhost, cgspace.cgiar.org

But I don't think this is the issue (the error would be different).



We did switch to using build.properties (one for
dev and production) with a common dspace.cfg, though... I will try to
use our old config file maybe...

This sounds like a likely culprit to me. Make sure you didn't comment
out any properties present in the default build.properties. You have
to leave the value empty instead of commenting it out.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette




--
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my wish 
has come true because I can no longer figure out how to use my telephone." -Bjarne 
Stroustrup, inventor of C++

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Re: [Dspace-tech] SMTP Authentication failed

2013-05-21 Thread Alan Orth
Ok,

I've just reverted to our "all in one" dspace.cfg and emails work fine.  
Sounds like there are some issues with my build.properties 
(dev.properties and production.properties)...

Alan

On 05/21/2013 03:32 PM, helix84 wrote:
> On Tue, May 21, 2013 at 2:08 PM, Alan Orth  wrote:
>> Here's the full stack trace, including the "Caused by":
>> https://gist.github.com/alanorth/4e942aa252764a3d87aa/raw/2c4a9ad30f537386cc3bb1c9a885204e949038e2/gistfile1.txt
> OK, in this case that didn't tell me anything new.
>
>
>> My mail.* properties from dspace.cfg:
> Looks good.
>
>
>>  mail.allowed.referrers = cgspace.cgiar.org
> I have localhost here, so try this:
> mail.allowed.referrers = localhost, cgspace.cgiar.org
>
> But I don't think this is the issue (the error would be different).
>
>
>> We did switch to using build.properties (one for
>> dev and production) with a common dspace.cfg, though... I will try to
>> use our old config file maybe...
> This sounds like a likely culprit to me. Make sure you didn't comment
> out any properties present in the default build.properties. You have
> to leave the value empty instead of commenting it out.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-21 Thread helix84
On Tue, May 21, 2013 at 2:08 PM, Alan Orth  wrote:
> Here's the full stack trace, including the "Caused by":
> https://gist.github.com/alanorth/4e942aa252764a3d87aa/raw/2c4a9ad30f537386cc3bb1c9a885204e949038e2/gistfile1.txt

OK, in this case that didn't tell me anything new.


> My mail.* properties from dspace.cfg:

Looks good.


> mail.allowed.referrers = cgspace.cgiar.org

I have localhost here, so try this:
mail.allowed.referrers = localhost, cgspace.cgiar.org

But I don't think this is the issue (the error would be different).


> We did switch to using build.properties (one for
> dev and production) with a common dspace.cfg, though... I will try to
> use our old config file maybe...

This sounds like a likely culprit to me. Make sure you didn't comment
out any properties present in the default build.properties. You have
to leave the value empty instead of commenting it out.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-21 Thread Alan Orth
Hey, Helix.

Here's the full stack trace, including the "Caused by": 
https://gist.github.com/alanorth/4e942aa252764a3d87aa/raw/2c4a9ad30f537386cc3bb1c9a885204e949038e2/gistfile1.txt

My mail.* properties from dspace.cfg:

# SMTP mail server
mail.server = smtp.serv.cgnet.com
# SMTP mail server authentication username and password (if required)
mail.server.username =
mail.server.password =
# SMTP mail server alternate port (defaults to 25)
mail.server.port = 25
mail.from.address = cgspace-supp...@cgiar.org
mail.admin = a.o...@cgiar.org
# Recipient for new user registration emails
# Set the default mail character set. This may be overridden by
providing a line
# inside the email template "charset: ", otherwise this
default is used.
mail.charset = UTF-8
# A comma-separated list of hostnames that are allowed to refer
browsers to email forms.
mail.allowed.referrers = cgspace.cgiar.org
# Pass extra settings to the Java mail library. Comma-separated,
equals sign between
#mail.extraproperties = mail.smtp.socketFactory.port=465, \
# mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
#   mail.smtp.socketFactory.fallback=false
# An option is added to disable the mailserver. By default, this
property is set to false
# By setting mail.server.disabled = true, DSpace will not send out
emails.
# It will instead log the subject of the email which should have
been sent
#mail.server.disabled = false
# By default RSS feeds, OAI-PMH and subscription emails will include
ALL items
# For backwards compatibility, the subscription emails by default
include any modified items
# uncomment the following entry for only new items to be emailed
# since that usually contains email addresses which ought to be kept

If I recall correctly we upgraded from DSpace 1.8 -> 3.1 in March, but 
one user reported that emails were working last month (April).  On the 
server side, I can't think of anything (it's Debian 6.0, so not much new 
packages these days).  We did switch to using build.properties (one for 
dev and production) with a common dspace.cfg, though... I will try to 
use our old config file maybe...

Cheers,

Alan

On 05/21/2013 02:45 PM, helix84 wrote:
> Isn't there a "Caused by" line just after the snippet you sent?
>
> I'm baffled why sending email from DSpace wouldn't work when using
> test-email works - both use the same send() method of the
> org.dspace.core.Email class. The only difference is that one is
> launched from command line, the other one from Tomcat.
>
> Can you think of any changes you made between when the email last
> worked and now?
>
> Also attach your mail.* properties from dspace.cfg. We're looking for
> an inconspicuous problem here.
>
>
> Regards,
> ~~helix84
>
> Compulsory reading: DSpace Mailing List Etiquette
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


Re: [Dspace-tech] SMTP Authentication failed

2013-05-21 Thread helix84
Isn't there a "Caused by" line just after the snippet you sent?

I'm baffled why sending email from DSpace wouldn't work when using
test-email works - both use the same send() method of the
org.dspace.core.Email class. The only difference is that one is
launched from command line, the other one from Tomcat.

Can you think of any changes you made between when the email last
worked and now?

Also attach your mail.* properties from dspace.cfg. We're looking for
an inconspicuous problem here.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


[Dspace-tech] SMTP Authentication failed

2013-05-21 Thread Alan Orth
All,

I'm getting a javax.mail.AuthenticationFailedException[0] when trying to 
send emails from DSpace, such as the "Forgot Password" function.  Other 
things like workflow alerts simply fail silently (users don't receive 
alerts).  I've tested the following:

1. SMTP server is working (send mail manually via port 25, HELO, etc)
2. `dspace test-email` is working.

We are using unauthenticated SMTP mail and our dspace.cfg configuration 
has not changed.  We're running DSpace 3.1 on Linux with Tomcat 6.

Thanks!

[0] 
https://gist.github.com/alanorth/5618260/raw/89e508170e4878ec4f88f43a01b5ebf86a7b82de/gistfile1.txt

-- 
Alan Orth
alan.o...@gmail.com
http://alaninkenya.org
http://mjanja.co.ke
"I have always wished for my computer to be as easy to use as my telephone; my 
wish has come true because I can no longer figure out how to use my telephone." 
-Bjarne Stroustrup, inventor of C++


--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette