Glad to hear it is working!
(1) The localhost:8080 in lams.properties: you should change that to use your "real" server name ie hilbert.mat.uc.pt
The lams.properties file is only used by the install - it isn't used while LAMS is running. So changing it in the lams.properties file now won't change how LAMS behaves. But you should change it so that you have a lams.properties files that is correct, should you ever have to re-install LAMS.
As you have already discovered, the configuration details used when LAMS is running is kept in the lams_configuration table in the database and can be updated via the sysadmin menu. You need to make sure that the setting there for the ServerURL is correct. This will need to be the same address that you put into the Moodle module to integrate the two systems, so you are right - localhost:8080 won't work!
The instructions for changing the serverURL setting are on the page Changing Server Ports for LAMS. I wrote this page yesterday to summarise all the advice we have been giving about changing the port that LAMS runs on - given the number of postings on this subject!
(2) The setting in the SMTPServer field should be your own smtpserver, or blank. We don't actually use it at the moment but we have plans to use it in the future.
(3) The instructions for linking LAMS and Moodle are available on LAMS v2.0 Integration Setup Step-by-Step Guide. The screendumps on this page say localhost, but that is only because they were done on my laptop and no one ever accesses that from another machine! In your case, it would be hilbert.mat.uc.pt and whatever servername you use for Moodle.
Fiona
Posted by Fiona Malikoff