×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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!
  • Students Click Here

*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

Jobs

General e-Business discussion FAQ

Tomcat and Apache

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

            COFIGURING MAIL FOR TOMCAT
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"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>smtp-server.host</value>
             </parameter>
            <parameter><name>mail.smtp.user</name>
              <value>username</value>
            </parameter>
            <parameter><name>mail.from</name>
                <value>username@host.com</value>
             </parameter>

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