[zanata-users] Mail sending problem from Zanata

Alex Eng aeng at redhat.com
Wed Feb 11 21:23:32 UTC 2015


Hi Paweł, 

In order to get email works, 
goto http://{your host name}/admin/server_configuration

check if "Email domain name" has configured. 
If you're using localhost, make sure you've got smtp service running in your machine. (eg. postfix or sendmail).
Or you can try external smtp service like gmail.
 




Regards, 

Alex Eng 
Senior Software Engineer 
DID: +61 3514 8262 
Mobile: +614 2335 3457 
Email: aeng at redhat.com 

Red Hat, Asia-Pacific Pty Ltd 
Level 1, 193 North Quay 
Brisbane 4000 
Office: +61 7 3514 8100 
Fax: +61 7 3514 8199 
Website: www.redhat.com 

----- Original Message -----
From: "Paweł Woźniak" <pwozniak at man.poznan.pl>
To: "Patrick Huang" <pahuang at redhat.com>
Cc: zanata-users at redhat.com
Sent: Wednesday, 11 February, 2015 7:07:48 PM
Subject: Re: [zanata-users] Mail sending problem from Zanata

Hi, thank You for Your replay.

I configured email session in standalone.xml file earlier. Here is my 
configuration:

             <mail-session jndi-name="java:jboss/mail/Default" 
from="sample at sample.sample">
                 <smtp-server outbound-socket-binding-ref="mail-smtp">
                     <login name="sample at sample.sample" password="sample"/>
                 </smtp-server>
             </mail-session>


         <outbound-socket-binding name="mail-smtp">
             <remote-destination host="sample.sample" port="25"/>
         </outbound-socket-binding>

And it still does not work.

Here is what I did after that.

1. I removed all JNDI bindings from standalone.xml related to zanata 
mail session configuration. So i removed these lines:

                 <simple 
name="java:global/zanata/email/default-from-address" 
value="sample at sample.sample"/>
                 <simple name="java:global/zanata/smtp/host" 
value="sample.sample"/>
                 <simple name="java:global/zanata/smtp/port" value="25"/>
                 <simple name="java:global/zanata/smtp/username" 
value="sample at sample.sample"/>
                 <simple name="java:global/zanata/smtp/password" 
value="sample"/>
                 <simple name="java:global/zanata/smtp/tls" value="false"/>
                 <simple name="java:global/zanata/smtp/ssl" value="false"/>

and during registration process I received error:

     Caused by: javax.faces.el.EvaluationException: 
java.lang.RuntimeException: 'From' email address has not been defined in 
either zanata.properties or Zanata setup

2. Than I added this line to the JNDI bindings (in standalone.xml):

     <simple name="java:global/zanata/email/default-from-address" 
value="sample at sample.sample"/>

but now user registration finished with error:

java.lang.RuntimeException: javax.mail.MessagingException: Could not 
connect to SMTP host: localhost, port: 25;

3. Than I added this lines to the JNDI bindings (in standalone.xml)

                 <simple name="java:global/zanata/smtp/host" 
value="sample.sample"/>
                 <simple name="java:global/zanata/smtp/port" value="25"/>
                 <simple name="java:global/zanata/smtp/username" 
value="sample at sample.sample"/>
                 <simple name="java:global/zanata/smtp/password" 
value="sample"/>
                 <simple name="java:global/zanata/smtp/tls" value="false"/>
                 <simple name="java:global/zanata/smtp/ssl" value="false"/>
and i got an error:
     java.lang.RuntimeException: javax.mail.NoSuchProviderException: No 
provider for smtp

the same like at the begging.

I also created small applications which sends email using configured 
java:jboss/mail/Default mail session. And it works (mails are sent).
I'm using zanata 3.5.1

Regards,
Pawel




W dniu 2015-02-11 o 00:07, Patrick Huang pisze:
> Hi Pawel,
>
> Please refer to https://github.com/zanata/zanata-server/wiki/Email for you email session configuration. By default you JBoss server should have it configured (search for "java:jboss/mail/Default" in your standalone.xml). If not you need to configure it as the per the link provided on that wiki page.
>
> Regards,
> Patrick Huang
> Senior Software Engineer
> Engineering - Internationalisation
> Red Hat
>
> ----- Original Message -----
>> From: "Paweł Woźniak" <pwozniak at man.poznan.pl>
>> To: zanata-users at redhat.com
>> Sent: Wednesday, February 11, 2015 1:21:21 AM
>> Subject: [zanata-users] Mail sending problem from Zanata
>>
>> Hi!
>>
>> I have my local installation of Zanata application. The problem is that
>> this application can not send emails to the application's users.
>> For example when I try to create use account I receive exception:
>>
>>    javax.mail.NoSuchProviderException: No provider for smtp
>>
>> How can I solve this problem?
>>
>>
>> Pawel
>>
>> _______________________________________________
>> zanata-users mailing list
>> zanata-users at redhat.com
>> https://www.redhat.com/mailman/listinfo/zanata-users
>>

_______________________________________________
zanata-users mailing list
zanata-users at redhat.com
https://www.redhat.com/mailman/listinfo/zanata-users




More information about the zanata-users mailing list