Bug 920539

Summary: Mail sended by register action doesnt use mail server in zanata.conf
Product: [Retired] Zanata Reporter: Greg henry <ghynxmail>
Component: Component-UIAssignee: Damian Jansen <djansen>
Status: CLOSED WONTFIX QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0CC: camunoz, dchen, djansen, zanata-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-17 06:56:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Greg henry 2013-03-12 10:30:18 UTC
User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22
Build Identifier: 

When a user try to register (more / register) , the register mail is always send using localhost as smtp server . 

Changes in conf/zanata.properties doesn't affect this behaviour .

The only way to change this is to digg into the war , and modify mail-session-host in WEB-INF/classes/META-INF/component.xml
 
Registering process  must use the mail server defined in conf/zanata.properties.

in the current situation , NO NEW USER CAN REGISTER !!

Reproducible: Always

Steps to Reproduce:
1. fresh Install
2. change /conf/zanata.properties to add a smtp server
3. try to register as a new user 
Actual Results:  
Zanata fail by trying to connect to a localhost smtp server
The user is not added to the database

Expected Results:  
Zanata must send the mail using smtp server configured in /conf/zanata.properties 

Changing the internal mail configuration in WEB-INF/classes/META-INF/component.xml
is a workaround .

Comment 1 Greg henry 2013-05-28 16:28:04 UTC
FYI : trying the same with the 2.2.2 version of Zanata .. still the same problem

Greg

Comment 2 Greg henry 2013-05-28 16:32:46 UTC
More information , 
If I only specify the mail server in zanata.conf , it raise an "unknown SMTP host" error but the error message give the name of the good server .

Seems that the error is returned by some part of the application who effectively read zanata.conf but the connection is still made by another part who try to use META-IN/coponent.xml .

Comment 3 Damian Jansen 2014-03-05 01:37:26 UTC
This may be fixed in the current version, but requires a test case and documentation for email server setting.

Comment 4 Ding-Yi Chen 2014-07-17 06:56:57 UTC
As newer Zanata version supports neither zanata.conf  nor zanata.properties.

You can specify the "default-from-address" in standalone.xml  as instructed in:

https://github.com/zanata/zanata-server/wiki/Installation-Guide#233-configure-jndi

Or you can do this in WebUI:
<ZanataServerUrl>/admin/server_configuration

This bug will otherwise be WONTFIX.

However, should you deem necessary, please reopen the bug, and we will be turn it to an Request For Enhancement (RFE).