Configuring Email for Alfresco
From AlfrescoWiki
They are written in the context of an standard Alfresco/Tomcat installation (version 1.4 and beyond). Make any appropriate adjustments for J-Boss or other application servers.
When Alfresco starts up, it loads all of its configuration settings from the set of XML files located in its web application. It then looks for additional settings that you may have tweaked or customized for your particular installation.
These settings are located here:
/<alf_dir>/tomcat/shared/classes/alfresco/extension
In particular, you will see two sample files that are provided:
custom-repository-context.xml.sample custom-repository.properties.sample
Rename these files so that they do not have the .sample at the end. The custom-repository-context.xml file then tells the Spring framework within Alfresco to load the custom-repository.properties settings.
custom-repository-context.xml.sample custom-repository.properties.sample
Finally, within the custom-repository.properties file, add the following keys:
mail.host=<the name of your SMTP host> mail.port=<the port that your SMTP service runs on (the default is 25)> mail.username=<the username of the account you want e-mail to be sent from> mail.password=<the password>
You will then need to restart Alfresco.
Greater detail is provided under E-mail_Configuration but for a better understanding, please read through the full entry on Repository Configuration. It covers exactly how these xml and properties files are bootstrapped into the repository configuration at startup.

