Posts tagged "smtp"

LiveCycle7: javax.mail.MessagingException: 554 Mail from [] rejected for policy reasons


 If you are using the mail/notification functionality in LiveCycle 7, you may find that the mails are never received by the intended recipient.  If you look in the adminui you may find the action has stalled with the following error:

"javax.mail.MessagingException: 554 Mail from <> rejected for policy reasons"


 This is caused by a lack of privileges to use the SMTP mail server in your organisation.


Consult your IT department and request permission for the Lc Server to use the SMTP mail server to send email notifications.

reference: (1-28762420)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 10.0/10 (2 votes cast)

LiveCycle ES: javax.mail.MessagingException: Could not connect to SMTP host: <hostname>, port: 25


 If you are trying to send a mail from a process in LiveCycle ES, you may encounter the following exception in the log:

java.lang.RuntimeException: javax.mail.MessagingException: Could not connect to SMTP host: <hostname>, port: 25;
nested exception is: Software caused connection abort: connect


 If you are using Virus Scanner software they often block port 25 to prevent worm-type mass mailings.  In McAfee for example, you can verify this if you bring up the VirusScan Console and look at the Access Protection Task. Check the properties for the port settings.


 You should disable any anti-virus checks on port 25.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 4.0/10 (1 vote cast)

LiveCycle ES: troubleshoot POP/SMTP email servers

Troubleshoot SMTP server

If you are having problems connecting/using an SMTP server with LiveCycle, you should manually check that you can indeed connect and send e-mails by issuing the following set of commands on the server you want to connect from.

In this example, assuming you want to troubleshoot the connection to the SMTP server from a Windows server, you would issue the following from a command prompt:

cmd> telnet 25   
220 ESMTP Sendmail 8.13.3/8.13.3; Fri, 3 Mar 2006 17:22:29 GMT  
250 Hello [<ip address>], pleased to meet you  
mail from:  
250 2.1.0; Sender ok  
rcpt to:  
250 2.1.5; Recipient ok  
354 Enter mail, end with '.' on a line by itself  
Text of the message .  
250 2.0.0 k23HMTO3006628 Message accepted for delivery  
221 2.0.0 closing connection 
Connection to host lost.  

Preferably you should attempt to use the same e-mail addresses for the sender and recipients as the one that are meant to be used by your application.  If any of the operations above fail, it means that the problem is NOT with your application, but with the SMTP server itself.  If it works, then you should try the same from a remote host, to see if your issue might have to do with a firewall or some network issue.

If you don’t get any errors when doing these 2 operations, then it means that your server is properly set to send email, so now you can switch to troubleshooting POP.

Troubleshoot POP server

 The POP3 manual commands are almost as easy as the SMTP commands. To check your mail with POP:

cmd> telnet 110
user <some_valid_user>
pass <user_password>

Each of these commands should return “+OK”.  The “stat” command should also return 2 numbers indicating the number of new messages received, and messages left on the server.

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)