We can use a small utility developed by BMC Support to test the Remedy Mailbox configuration outside the Remedy application and E-mail Engine. Please check the following article to get this utility and how to use it: Remedy - Email Engine - How can I test my Mailbox Configuration outside of the Email Engine? There is also the option to run this utility in Debug mode in order to get more information which may help. |
This knowledge article may contain information that does not apply to version 21.05 or later which runs in a container environment. Please refer to Article Number 000385088 for more information about troubleshooting BMC products in containers. Due to limitations of the EWS protocol, Debug mode is not applicable for EWS. When the Test Email Utility is configured to use EWS, Debug mode is not available. To enable the "eMailTestUtility" in Debug mode check the following steps: 1- Once the utility has been downloaded and uncompressed it check the scripts: testemail.bat (Windows) testemail.sh (Unix/Linux) 2- Set the Debug mode to true. Unix/Linux script - testemail.sh Original: JAVA_OPTS="-Dmail.debug=false -Dmail.smtp.starttls.enable=false" With Debug enabled: JAVA_OPTS="-Dmail.debug=true -Dmail.smtp.starttls.enable=false" Windows script - testemail.bat Original: set JAVA_OPTS="-Dmail.debug=false -Dmail.smtp.starttls.enable=false" With Debug enabled: set JAVA_OPTS="-Dmail.debug=true -Dmail.smtp.starttls.enable=false" Note if you want to use TLS then: Change the mail.smtp.starttls.enable=true from false. 3- Save the script file and launch the utility. The activity performed when processing the request will be captured in the CommandLine / Shell session. Example of a Windows scenario sending a message with success: .................. C:\eMailTestUtility>testemail.bat Using java C:\Program Files\Java\jre1.8.0_92\\bin This utility will test the mail server connectivity by sending or receiving email as per input parameters. Please provide following input. Mailbox function Incoming / Outgoing(0 - 1) : 1 Email Server Type [SMTP / MAPI (0 - 1)] : 0 Email Server Name/IP : {Email Server's IP or Name} Email Server Port: 26 Email Server User : admin Email Server Password : admin Email Server Requires SSL [No/Yes (0-1)]: 0 From Email Address : EE To Email Address : user1@123.com ================================================== Testing email with following parameters: Mailbox Function : Outgoing Email Server Type : SMTP Email Server Name/IP : {Email Server's IP or Name Email Server User : admin Email Server Password : admin Email Server Port : 26 Email Server Requires SSL : No fromEmailAddress : EE toEmailAddress : user1@123.com ================================================== DEBUG: JavaMail version 1.5.2 DEBUG: URL jar:file:/C:/eMailTestUtility/emailTestUtility.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: jar:file:/C:/eMailTestUtility/emailTestUtility.jar!/META-INF/javamail.providers DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps, com.sun.mail.imap.IMAPSSLStore,Oracle],gnu.mail.providers.mbox.MboxStore=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,support@bmc.com], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.bmc.mail.mapi.MAPITransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,support@bmc.com], com.bmc.mail.mapi.MAPIStore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore,support@bmc.com], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: Providers Listed By Protocol: {mbox=javax.mail.Provider[STORE,mbox,gnu.mail.providers.mbox.MboxStore,support@bmc.com], mapitransport=javax.mail.Provider[TRANSPORT,mapitransport,com.bmc.mail.mapi.MAPITransport,support@bmc.com], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], mapistore=javax.mail.Provider[STORE,mapistore,com.bmc.mail.mapi.MAPIStore, support@bmc.com], imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle] DEBUG SMTP: useEhlo true, useAuth true DEBUG SMTP: trying to connect to host "{Email Server IP or Name}", port 26, isSSL false 220 {Email Server IP or Name} ArGoSoft Mail Server Freeware, Version 1.8 (1.8.9.1) DEBUG SMTP: connected to host "{Email Server IP or Name}", port: 26 EHLO {AR Server} 250-Welcome [{AR Server}], pleased to meet you 250-SIZE 5242880 250 HELP DEBUG SMTP: Found extension "SIZE", arg "5242880" DEBUG SMTP: Found extension "HELP", arg "" DEBUG SMTP: use8bit false MAIL FROM:<EE> 250 Sender "EE" OK... DEBUG SMTP: sendPartial set RCPT TO:<user1@123.com> 250 Recipient "user1@123.com" OK... DEBUG SMTP: Verified Addresses DEBUG SMTP: user1@123.com DATA 354 Enter mail, end with "." on a line by itself From: EE To: user1@123.com Message-ID: <728890494.0.1534423179252.JavaMail.Administrator@{AR Server}> Subject: This is simple text from test utility.Thu Aug 16 13:39:37 BST 2018 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Priority: 2 This is simple text from test utility.Thu Aug 16 13:39:37 BST 2018 . 250 Message accepted for delivery. ****************** Sent simple message !! ****************** QUIT C:\eMailTestUtility> .................. Related information: Remedy - Email Engine - How to enable Email Engine Logs in 9.x (also DEBUG) |