ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatz_5.4.0.1/51/admin/appsvrmail.htm

107 lines
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Administer mail resources</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h3><a name="appsvrmail"></a>Administer mail resources</h3>
<p>JavaMail provides general mail facilities for reading and sending mail. WebSphere Application Server - Express supplies a built-in mail provider that supports three protocol providers: Simple Mail Transfer Protocol (SMTP), Internet Message Access Protocol (IMAP) and Post Office Protocol (POP3). For more information on JavaMail and mail providers, see <a href="../program/jmail.htm">JavaMail</a>.</p>
<p>You can use the administrative console and wsadmin to administer mail resources.</p>
<ul>
<li><a href="#acmail">Administer mail resources with the administrative console</a></li>
<li><a href="#wsamail">Use wsadmin to configure a new mail provider</a></li>
</ul>
<p><a name="acmail">Administer mail resources with the administrative console</a></p>
<p>For information on configuring, modifying, and removing mail providers, see these sections:</p>
<ul>
<li><a href="#config">Configure mail providers</a></li>
<li><a href="#modify">Modify mail providers</a></li>
<li><a href="#remove">Remove mail providers</a></li>
</ul>
<p><strong><a name="config"></a>Configure mail providers</strong></p>
<p>To configure a new mail provider, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Resources</strong> and click <strong>Mail Providers</strong>.</li>
<li>On the <strong>Mail Providers</strong> page, click <strong>New</strong>.</li>
<li>Specify a name for the mail provider.</li>
<li>Click <strong>Apply</strong>.</li>
<li>You can configure these additional properties for the mail provider:
<ul>
<li><strong>Protocol Providers</strong></li>
<li><strong>Mail Sessions</strong></li>
</ul></li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="modify"></a>Modify mail resources</strong></p>
<p>To modify a mail provider, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Resources</strong> and click <strong>Mail Providers</strong>.</li>
<li>On the <strong>Mail Providers</strong> page, click the name of the provider that you want to modify.</li>
<li>Make your changes.</li>
<li>Click <strong>OK</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="remove"></a>Remove mail providers</strong></p>
<p>To remove a mail provider, follow these steps:</p>
<ol>
<li><a href="acstart.htm">Start the WebSphere administrative console</a>.</li>
<li>In the topology tree, expand <strong>Resources</strong> and click <strong>Mail Providers</strong>.</li>
<li>On the <strong>Mail Providers</strong> page, select the checkbox for the name of the provider that you want to remove.</li>
<li>Click <strong>Delete</strong>.</li>
<li><a href="acsave.htm">Save the configuration</a>.</li>
</ol>
<p><strong><a name="wsamail">Use wsadmin to configure a new mail provider</a></strong></p>
<ol>
<li><p>On the CL command line, run the STRQSH (Start Qshell) command.</p></li>
<li><p>Run the cd command to change to the directory that contains the wsadmin tool:</p>
<pre>cd /QIBM/ProdData/WebASE51/ASE/bin</pre></li>
<li><p><a href="wsarun.htm#start">Start wsadmin</a>.</p></li>
<li><p>At the wsadmin prompt, run this command to identify the parent ID:</p>
<pre>set server [$AdminConfig getid /Cell:<em>myCell</em>/Node:<em>myNode</em>/Server:<em>myAppSvr</em>/]</pre>
<p>where <em>myCell</em> is the name of the cell that contains your application server, <em>myNode</em> is the name of the node that contains your application server, and <em>myAppSvr</em> is the name of your application server.</p></li>
<li><p>Run this command to get the required attributes for a mail provider:</p>
<pre>$AdminConfig required MailProvider</pre></li>
<li><p>Run this command to set the required attributes:</p>
<pre>set name [list name <em>mpname</em>]
set mpAttrs [list $name]</pre>
where <em>mpname</em> is the name of the mail provider that you want to create.</li>
<li><p>Run this command to create the mail provider:</p>
<pre>set newmp [$AdminConfig create MailProvider $server $mpAttrs]</pre></li>
<li><p>Run this command to save your changes:</p>
<pre>$AdminConfig save</pre></li>
</ol>
</body>
</html>