Adding Permissions

To add permissions to connect to the SMTP server:

  1. Log on to Parallels Pro Control Panel as the root user.
  2. Change directory to /var/tomcat4/conf/sites.policy.d.
  3. Create a new file site1.policy.custom.
  4. In the file site1.policy.custom, include the following lines to add permissions to connect to the SMTP server.

    Permission java.net.SocketPermission "127.0.0.1:25", connect, resolve";
    Permission java.net.SocketPermission "localhost:25", connect, resolve";

  5. Save the file site1.policy.custom.
  6. Regenerate the file /var/tomcat4/conf/catalina.policy using the following command.

    m4 /var/tomcat4/conf/catalina.policy.template > /var/tomcat4/conf/catalina.policy

  7. To restart Tomcat, type the following command.

    /etc/rc.d/init.d/tomcat4 restart

In this section:

Adding Additional Context