You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Robert Chalmers <ro...@gmail.com> on 2012/06/10 05:26:19 UTC

Trying to get Mail to work. Can't even do Authentication

Hi,
Well, I seem to have this almost working on Windows XP.

However - I can not get the thing to send email to anyone for any reason.
Not even authentication.

The following settings work fine in Moodle... and so I used them in
Openmeetings.

I have the SMTP server set to yes.podzone.net

smtp_server      yes.podzone.net
smtp_port         25

email_username   xxxxxxxxxxxxx
email_userpass    xxxxxxxxxxxxx



In the log file I get this
......
DEBUG 06-10 13:00:07.812 MailThread.java 13754687 89
org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] - Message
sending in progress
DEBUG 06-10 13:00:07.812 MailThread.java 13754687 90
org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   From:
noreply@your-english-success.com
DEBUG 06-10 13:00:07.812 MailThread.java 13754687 91
org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   To:
robert@chalmers.com.au
DEBUG 06-10 13:00:07.812 MailThread.java 13754687 92
org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   Subject:
New private message: test
ERROR 06-10 13:00:07.843 MailThread.java 13754718 150
org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] - [mail send]
javax.mail.AuthenticationFailedException: null
at javax.mail.Service.connect(Service.java:306) ~[mail-1.4.jar:1.4]
at javax.mail.Service.connect(Service.java:156) ~[mail-1.4.jar:1.4]
at javax.mail.Service.connect(Service.java:105) ~[mail-1.4.jar:1.4]
at javax.mail.Transport.send0(Transport.java:168) ~[mail-1.4.jar:1.4]
at javax.mail.Transport.send(Transport.java:98) ~[mail-1.4.jar:1.4]
at
org.openmeetings.utils.mail.MailThread$MailSenderTask.send(MailThread.java:146)
[openmeetings.jar:na]
at
org.openmeetings.utils.mail.MailThread$MailSenderTask.run(MailThread.java:69)
[openmeetings.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
[na:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[na:1.6.0_31]
at java.lang.Thread.run(Unknown Source) [na:1.6.0_31]
DEBUG 06-10 13:01:13.890 Sessionmanagement.java 13820765 453
org.openmeetings.app.data.basic.Sessionmanagement

 I also tried removing the smtp_settings, but that didn't work either.

Is there some secret I should know about this...
thanks

Re: Trying to get Mail to work. Can't even do Authentication

Posted by "seba.wagner@gmail.com" <se...@gmail.com>.
if email_username and email_userpass are both an empty string Openmeetings
will try to connect to the mail server without authentication.
If email_username and/or email_userpass is set, it will use regular smtp
authentication with the provided params.
You should restart the red5 service after changing the auth params as the
properties are written to the System properties by the mail framework and
it requires a restart of the java service to activate them.

Sebastian

2012/6/10 Robert Chalmers <ro...@gmail.com>

> Hi,
> Well, I seem to have this almost working on Windows XP.
>
> However - I can not get the thing to send email to anyone for any reason.
> Not even authentication.
>
> The following settings work fine in Moodle... and so I used them in
> Openmeetings.
>
> I have the SMTP server set to yes.podzone.net
>
> smtp_server      yes.podzone.net
> smtp_port         25
>
> email_username   xxxxxxxxxxxxx
> email_userpass    xxxxxxxxxxxxx
>
>
>
> In the log file I get this
> ......
> DEBUG 06-10 13:00:07.812 MailThread.java 13754687 89
> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] - Message
> sending in progress
> DEBUG 06-10 13:00:07.812 MailThread.java 13754687 90
> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   From:
> noreply@your-english-success.com
> DEBUG 06-10 13:00:07.812 MailThread.java 13754687 91
> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   To:
> robert@chalmers.com.au
> DEBUG 06-10 13:00:07.812 MailThread.java 13754687 92
> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] -   Subject:
> New private message: test
> ERROR 06-10 13:00:07.843 MailThread.java 13754718 150
> org.openmeetings.utils.mail.MailHandler [mailTaskExecutor-5] - [mail send]
> javax.mail.AuthenticationFailedException: null
> at javax.mail.Service.connect(Service.java:306) ~[mail-1.4.jar:1.4]
> at javax.mail.Service.connect(Service.java:156) ~[mail-1.4.jar:1.4]
>  at javax.mail.Service.connect(Service.java:105) ~[mail-1.4.jar:1.4]
> at javax.mail.Transport.send0(Transport.java:168) ~[mail-1.4.jar:1.4]
>  at javax.mail.Transport.send(Transport.java:98) ~[mail-1.4.jar:1.4]
> at
> org.openmeetings.utils.mail.MailThread$MailSenderTask.send(MailThread.java:146)
> [openmeetings.jar:na]
>  at
> org.openmeetings.utils.mail.MailThread$MailSenderTask.run(MailThread.java:69)
> [openmeetings.jar:na]
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
> [na:1.6.0_31]
>  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> [na:1.6.0_31]
> at java.lang.Thread.run(Unknown Source) [na:1.6.0_31]
> DEBUG 06-10 13:01:13.890 Sessionmanagement.java 13820765 453
> org.openmeetings.app.data.basic.Sessionmanagement
>
>  I also tried removing the smtp_settings, but that didn't work either.
>
> Is there some secret I should know about this...
> thanks
>



-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.openmeetings.de
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner@gmail.com