Usage Note 49769: Enabling SMTP logging in a JBoss web application server to debug problems with e-mail notification
Sometimes, in order to discover whether e-mail notifications are being sent, it helps to enable SMTP logging in your JBoss web application server. To enable this logging, edit the configuration file:
Jboss-home/server/your-server/deploy/mail-service.xml
The JBoss server is frequently SASServer1:
$ vim Jboss-home/server/SASServer1/deploy/sas-mail-service.xml
When you open the file for editing, it will look similar to the following:
<mbean code="org.jboss.mail.MailService" name="jboss:service=OpenKM">
<attribute name="JNDIName">java:/mail/OpenKM</attribute>
<attribute name="User">nobody</attribute>
<attribute name="Password">password</attribute>
<attribute name="Configuration">
<!–– A test configuration ––>
<configuration>
<!–– Change to your mail server prototocol ––>
<property name="mail.store.protocol" value="pop3"/>
<property name="mail.transport.protocol" value="smtp"/>
<!–– Change to the user who will receive mail ––>
<property name="mail.user" value="nobody"/>
<!–– Change to the mail server ––>
<property name="mail.pop3.host" value="pop3.your–domain.com "/>
<!–– Change to the SMTP gateway server ––>
<property name="mail.smtp.host" value="smtp.your–domain.com "/>
<!–– The mail server port ––>
<property name="mail.smtp.port" value="25"/>
<!–– Change to the address mail will be from ––>
<property name="mail.from" value="noreply@your–domain.com"/>
<!–– Enable debugging output from the javamail classes ––>
<property name="mail.debug" value="false"/>
</configuration>
</attribute>
<depends>jboss:service=Naming</depends>
</mbean>
To set SMTP debugging, change the mail.debug property:
<property name="mail.debug" value="false"/>
The new value should be set to true:
<property name="mail.debug" value="true"/>
After you make this change and save the file, restart the JBoss web application server. The SMTP details will be written to the JBoss web application server log.
Operating System and Release Information
SAS System | JBoss Application Server | Solaris for x64 | | |
Linux for x64 | | |
HP-UX IPF | | |
64-bit Enabled Solaris | | |
64-bit Enabled AIX | | |
Windows Vista | | |
Windows Vista for x64 | | |
Windows Millennium Edition (Me) | | |
Windows 7 Ultimate x64 | | |
Windows 7 Ultimate 32 bit | | |
Windows 7 Professional x64 | | |
Windows 7 Home Premium x64 | | |
Windows 7 Professional 32 bit | | |
Windows 7 Home Premium 32 bit | | |
Windows 7 Enterprise x64 | | |
Windows 7 Enterprise 32 bit | | |
Microsoft Windows XP Professional | | |
Microsoft Windows Server 2012 Std | | |
Microsoft Windows Server 2012 R2 Std | | |
Microsoft Windows Server 2012 R2 Datacenter | | |
Microsoft Windows Server 2012 Datacenter | | |
Microsoft Windows Server 2008 for x64 | | |
Microsoft Windows Server 2008 R2 | | |
Microsoft Windows Server 2008 | | |
Microsoft Windows Server 2003 for x64 | | |
Microsoft Windows Server 2003 Standard Edition | | |
Microsoft Windows Server 2003 Enterprise Edition | | |
Microsoft Windows Server 2003 Datacenter Edition | | |
Microsoft Windows NT Workstation | | |
Microsoft Windows 2000 Professional | | |
Microsoft Windows 2000 Server | | |
Microsoft Windows 2000 Datacenter Server | | |
Microsoft Windows 2000 Advanced Server | | |
Microsoft Windows 8.1 Pro 32-bit | | |
Microsoft Windows 95/98 | | |
Microsoft Windows 8.1 Pro | | |
Microsoft Windows 8.1 Enterprise x64 | | |
Microsoft Windows 8.1 Enterprise 32-bit | | |
Microsoft Windows 8 Pro x64 | | |
Microsoft Windows 8 Pro 32-bit | | |
Microsoft Windows 8 Enterprise x64 | | |
Microsoft Windows 8 Enterprise 32-bit | | |
Microsoft® Windows® for x64 | | |
Microsoft Windows XP 64-bit Edition | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2014-03-31 12:27:25 |
Date Created: | 2013-04-26 14:44:27 |