Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

General e-Business discussion FAQ

Tomcat and Apache

How do I configure mail for tomcat? by libaax
Posted: 16 Aug 03

1. paste the following line at the bottom, or below similar entry in <installdir>\conf\catalina.policy file: and modify the smtp server with your own.

// Permission to send email via SMTP - (permission to connect to mail server).
permission java.net.SocketPermission "smtp.host:25", "connect,resolve" ;

2. modify your <installdir>\conf\server.xml as shown blow with your relevant info...(change only "value" and not the parameters.

<Resource name="mail/Session" auth="Container"
          <ResourceParams name="mail/Session">

3. enter the <value>smtp.host</value> line. Change the value to the name of your SMTP mailhost.

4.enter the <value>userid</value> line. Change the value to the userid you use for  receiving or sending mail.

5.enter the <value>username@mail.host</value> line. Change the value to the return email address usually same as your main email.
You should now be all set to go.

Back to General e-Business discussion FAQ Index
Back to General e-Business discussion Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close