To enable the internal mailing capabilities, you have to declare the account configuration and credentials in file naggregator.ear/nag-system-service-VERSION.sar/META-INF/jboss-service.xml. It contains the following block that has to be customized:
<mbean code="org.jboss.mail.MailService" name="jboss:service=NagMail"> <attribute name="JNDIName">java:/NagMail</attribute> <attribute name="User">smtp_user</attribute> <attribute name="Password">the_password</attribute> <attribute name="Configuration"> <configuration> <property name="mail.store.protocol" value="pop3"/> <property name="mail.transport.protocol" value="smtp"/> <property name="mail.smtp.auth" value="TRUE_OR_FALSE"/> <!-- true, if your smtp server requires authentication --> <property name="mail.user" value="smtp_user"/> <property name="mail.pop3.host" value="pop3.yourdomain.example"/> <property name="mail.smtp.host" value="smtp.yourdomain.example"/> <property name="mail.from" value="no-reply@yourdomain.example"/> <property name="mail.debug" value="false"/> </configuration> <depends>jboss:service=Naming</depends> </attribute> <!--<depends>jboss.j2ee:service=EARDeployment,url='naggregator-1.3.0-SNAPSHOT.ear'</depends>--> <depends>jboss.j2ee:module=nag-system-common-1.3.0-SNAPSHOT.jar,service=EjbModule</depends> </mbean>
In the same file, the actual mailing is enabled in this block:
<mbean code="org.tastybug.bugwerk.naggregator.system.mbean.CommonConfiguration" name="tastybug.bugwerk.naggregator:system.config=CommonConfigurationMBean"> <attribute name="WebLoginEnabledString">true</attribute> <attribute name="MailingEnabledString">false</attribute> <!-- set true here --> <attribute name="WebContextUrl">https://localhost:8443/nag-web-jsp</attribute> <attribute name="ProjectVersion">1.X.Y</attribute> </mbean>