Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/JS1-523

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: JS1-523
    Summary: mail.server setting in JetspeedResources.properties is ignored
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Jetspeed
 Components: 
             Turbine
   Versions:
             1.6-dev

   Assignee: 
   Reporter: Jaq Marit

    Created: Thu, 7 Oct 2004 8:40 PM
    Updated: Thu, 7 Oct 2004 8:40 PM
Environment: J2SDK 1.4.2, Tomcat 5.0.27, Linux Redhat/Windows 2000

Description:
The key "mail.server" setting in JetspeedResources.properties is ignored by Turbine 
when sending confirmation emails to users.  This is caused by the following code in 
SendConfirmationEmail.java (among others):

Properties props = System.getProperties();
String mailServerMachine = JetspeedResources.getString( "mail.server" );
props.put ( "mail.host", mailServerMachine );
props.put("mail.smtp.host", mailServerMachine);

se.send();

Jetspeed uses the key "mail.host" whereas Turbine actually uses "mail.server" as the 
key when sending mails.  As a result, the smtp server used when sending mails is 
always "localhost" (the default in Turbine) and not the smtp server set in 
JetspeedResources.properties.

To reproduce:
  1. Run Jetspeed in a box with no SMTP server (or a server behind a firewall).
  2. Set the key "mail.server" in JetspeedResources.properties to your SMTP server 
(which is different from the server running Jetspeed)
  3. Set newuser.confirm.enable=true, [EMAIL PROTECTED]
  4. Try creating a new account via the top navigation bar.  Set the email of the new 
user to an address outside your network.  Use the admin account to enable the new user.

Wait for sometime, either the confirmation email bounces back to [EMAIL PROTECTED] or 
the user never receives the confirmation email at all.

To resolve:
Change "mail.host" to "mail.server" in the following files: JLoginUser.java, 
SendConfirmationEmail.java, SendNewUserNotificationEmail.java, UserUpdateAction.java


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to