ging / fi-ware-idm-rails

KeyRock (DEPRECATED RELEASE)
GNU Affero General Public License v3.0
10 stars 4 forks source link

Confirmation mail is wrong using a local instance of IDM GE #71

Open anaselli opened 10 years ago

anaselli commented 10 years ago

Installed locally in a VM, i didn't find any information to configure psotfix or sendmail or neither that was required (I maybe wrong)... I thought it was possible to create users inside and not only by their own registration... Anyway i captured the output of the mail (never received of course) that it seems to be worng. VM is installed with a static IP 192.168.56.6 and (commented below):

MLXUDEq5PCqv', NULL, '2014-11-11 09:16:05', NULL, NULL, '$2a$10$X.QaTP8CW5iet80OCPL6JOsbcZcoOZxKrViENgpv0FPxSU.5ue3pG', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, NULL, '2014-11-11 09:16:05') Rendered devise/mailer/confirmation_instructions.html.erb (1.7ms)

Sent mail to angelo.naselli@myaddress.it (79ms) Date: Tue, 11 Nov 2014 10:16:05 +0100 From: no-reply@account.lab.fi-ware.org Reply-To: no-reply@account.lab.fi-ware.org ^^^^^^ Above you can see that addresses are related to account.lab.fi-ware.org

To: angelo.naselli@myaddress.it Message-ID: 5461d3d56933d_cef44c689c27859@debianTSC.mail Subject: Confirmation instructions Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

Hello angelo.naselli@myaddress.it!

^^^^^ Since the name has been added in the form why using the Email to greet?

Welcome to FI-LAB! By clicking on the link "I accept" below, you state that you have read and accepted the FIWARE Lab Terms and Conditions and the creation of your account will be confirmed:

I accept

^^^^^^^ And the confirmation message is referenced to account.lab.fi-ware.org instead of 192.168.56.6, some additional configuration is needed, but where?

(2.6ms) COMMIT Redirected to http://192.168.56.6:3000/ Completed 302 Found in 1189ms (ActiveRecord: 0.0ms)

Started GET "/" for 192.168.56.1 at 2014-11-11 10:16:05 +0100

plopezm commented 9 years ago

I have added this lines to production.rb and development.rb and now it works.

config.action_mailer.delivery_method = :sendmail config.action_mailer.perform_deliveries = true