Bug 920539 - Mail sended by register action doesnt use mail server in zanata.conf
Summary: Mail sended by register action doesnt use mail server in zanata.conf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Zanata
Classification: Retired
Component: Component-UI
Version: 2.0
Hardware: x86_64
OS: Windows
unspecified
high
Target Milestone: ---
: ---
Assignee: Damian Jansen
QA Contact: Zanata-QA Mailling List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-12 10:30 UTC by Greg henry
Modified: 2014-07-17 06:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-07-17 06:56:57 UTC
Embargoed:


Attachments (Terms of Use)

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).


Note You need to log in before you can comment on or make changes to this bug.