5.7. Mail Dispatcher Service

BELTS needs to be able to send emails to users to notify them of events, such as content being downloaded, etc. To do this, open BELTS_HOME/server/default/deploy/belts-services.sar/META-INF/jboss-service.xml, and find the lines describing the SMTPMailDispatcherService. Adjust these lines to your settings. For example, the BELTS demo site at Jacus uses the following:

<mbean name="belts:service=SMTPMailDispatcherService"
    code="au.edu.educationau.belts.management.mail.SMTPMailDispatcherService">
<attribute name="Sender">jacus-belts@jacus.com.au</attribute>
<attribute name="Prefix">Belts</attribute>
<attribute name="ServerName">localhost</attribute>
</mbean>

In this configuration, mail is sent by localhost and comes from jacus-belts@jacus.com.au. Mail sent by this host is prefixed with “Belts” so it is obvious where the mail came from.