home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2002 March / PCWMAR02.iso / software / windowsxp / ftgateoffice / ftgateoffice.exe / Main / securitysmtp.fts < prev    next >
Encoding:
Text File  |  2001-11-29  |  12.2 KB  |  376 lines

  1. <%
  2. #include </utility/security.fts>
  3. #include </utility/global.fts>
  4. #include </utility/theme.fts>
  5. #include </utility/ftgate.fts>
  6.  
  7. var sys = new server.system
  8. var s = new server.smtp
  9. var id
  10.  
  11. session.system.error=0
  12.  
  13. if (form.config=="1")
  14. {
  15.     id = form.id
  16.  
  17.     s.id = id
  18.  
  19.     s.auth.validatesender = (form.validatesender=="on")
  20.     s.auth.neverrelay = (form.neverrelay=="on")
  21.     s.auth.verifyfrom = (form.verifyfrom=="on")
  22.     s.auth.relaysenderlock= (form.relaysenderlock=="on")
  23.     s.auth.required = form.required
  24.     s.auth.specific = form.specific
  25.     s.auth.name = form.name
  26.  
  27.     if (form.password!="*******")
  28.         s.auth.password = form.password
  29.  
  30.     s.mapsrbl = form.mapsrbl
  31.     s.mapsdul = form.mapsdul
  32.  
  33.     id = form.id
  34.  
  35.     if (form.redirect!="")
  36.     output.redirect(form.redirect+"?id="+id+"&type=smtp")
  37. }
  38. else if (form.config=="2")
  39. {
  40.   if (form.redirect!="")
  41.     output.redirect(form.redirect+"?id="+form.id+"&type=smtp")
  42. }
  43. else
  44. {
  45.     s.id = request.id
  46.     id = request.id
  47. }
  48. %>
  49. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  50. <HTML>
  51. <HEAD>
  52. <LINK REL=STYLESHEET HREF="/utility/main<%=nn4%>.css" TYPE="text/css">
  53. <META name="GENERATOR" content="Microsoft Developer Studio">
  54. <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  55. <TITLE>Services -- SMTP Security</TITLE>
  56.  
  57. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  58. <!--
  59. var dir="<%=buttons%>";
  60. var pro=<%=build()==FTGATE_PRO%>;
  61.  
  62. <%
  63. if (netscape)
  64. {
  65.   %>
  66.   document.captureEvents(Event.KEYPRESS);
  67.   document.onkeypress = keypress;
  68.  
  69.   function keypress(event)
  70.   {
  71.     if (event.which==13)
  72.     {
  73.             onApply();
  74.       return false;
  75.     }
  76.  
  77.     return true;
  78.   }
  79.   <%
  80. }
  81. else
  82. {
  83.   %>
  84.   function keypress()
  85.   {
  86.     if (event.keyCode==13)
  87.     {
  88.       event.returnValue=null;
  89.             onApply();
  90.     }
  91.   }
  92.   <%
  93. }
  94. %>
  95.  
  96. function onLoad()
  97. {
  98.     setPage(5, "SMTP Service");
  99.   document.ftgate.validatesender.focus();
  100. }
  101.  
  102. function isOK(form)
  103. {
  104.   return true;
  105. }
  106.  
  107. //-->
  108. </SCRIPT>
  109. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/cookies.js" TYPE="text/javascript"></SCRIPT>
  110. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/core.js" TYPE="text/javascript"></SCRIPT>
  111. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/time.js" TYPE="text/javascript"></SCRIPT>
  112. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/dialog.js" TYPE="text/javascript"></SCRIPT>
  113. </HEAD>
  114.  
  115. <BODY BGCOLOR="white" onLoad="onLoad()" MARGINHEIGHT="0" MARGINWIDTH="0" onkeypress="keypress()">
  116.  
  117. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="<%=bodywidth%>" HEIGHT="<%=bodyheight%>" CELLPADDING="0" CELLSPACING="0"><TR><TD> </TD><TD VALIGN="TOP">
  118.  
  119. <A HREF="index.fts"><SPAN ID="top">Services</SPAN></A><SPAN ID="top"> /</SPAN>
  120. <SPAN ID="topsel"><%=s.name%></SPAN>
  121.  
  122. <FORM NAME="ftgate" METHOD="POST" onSubmit="return isOK(this)" ACTION="securitysmtp.fts">
  123. <!-- hidden variables -->
  124. <INPUT TYPE="HIDDEN" NAME="config" VALUE="1">
  125. <INPUT TYPE="HIDDEN" NAME="command" VALUE="1">
  126. <INPUT TYPE="HIDDEN" NAME="id" VALUE="<%=id%>">
  127. <INPUT TYPE="HIDDEN" NAME="redirect" VALUE="">
  128.  
  129. <!-- start of the tabs -->
  130. <%
  131. if (build()==FTGATE_PRO)
  132. {
  133. %>
  134. <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  135.   <TR>
  136.         <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/left.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
  137.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('smtp.fts')" CLASS="navoff">General</A></TD>
  138.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  139.         <TD CLASS="navoff" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('attached.fts')" CLASS="navoff">Domains</A></TD>
  140.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  141.         <TD CLASS="navon" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('securitysmtp.fts')" CLASS="navon">Security</A></TD>
  142.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  143.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18"ALIGN="CENTER"><A HREF="javascript:onLaunch('addresssmtp.fts')" CLASS="navoff">Addresses</A></TD>
  144.         <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/right.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
  145.         <TD WIDTH="<%=bodywidth-223%>" HEIGHT="18"> </TD>
  146.   </TR>
  147. </TABLE>
  148. <%
  149. }
  150. else
  151. {
  152. %>
  153. <TABLE BORDER="0" WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
  154.   <TR>
  155.         <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/left.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
  156.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('smtp.fts')" CLASS="navoff">General</A></TD>
  157.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  158.         <TD CLASS="navon" WIDTH="55" HEIGHT="18" ALIGN="CENTER"><A HREF="javascript:onLaunch('securitysmtp.fts')" CLASS="navon">Security</A></TD>
  159.         <TD BGCOLOR="black" WIDTH="1" HEIGHT="18" ALIGN="CENTER"><IMG SRC="/images/1pixel.gif" WIDTH="1" HEIGHT="18"></TD>
  160.         <TD CLASS="navoff" WIDTH="50" HEIGHT="18"ALIGN="CENTER"><A HREF="javascript:onLaunch('addresssmtp.fts')" CLASS="navoff">Addresses</A></TD>
  161.         <TD WIDTH="5" HEIGHT="18"><IMG SRC="/images/right.gif" VSPACE="0" BORDER="0" WIDTH="5" HEIGHT="18"></TD>
  162.         <TD WIDTH="<%=bodywidth-167%>" HEIGHT="18"> </TD>
  163.   </TR>
  164. </TABLE>
  165. <%
  166. }
  167. %>
  168. <!-- end of the tabs -->
  169.  
  170. <!-- start of the tab body -->
  171. <TABLE BORDER="0" BGCOLOR="<%=border%>" WIDTH="100%" CELLPADDING="0" CELLSPACING="0"><TR><TD>
  172. <TABLE <%=table%> CELLPADDING="0" CELLSPACING="0">
  173. <!-- start of block -->
  174. <TR>
  175. <TD VALIGN="TOP">
  176.   <TABLE BORDER="0" WIDTH="100%">
  177.         <!-- sub table goes here -->
  178.          <TR>
  179.             <TD>
  180.                 <TABLE CLASS="box" WIDTH="100%">
  181.                     <TR>
  182.                         <TD>
  183.                             <TABLE WIDTH="100%">
  184.                                 <TR>
  185.                                     <TD>
  186.                                         <TABLE BORDER="0" WIDTH="100%">
  187.                                             <TR>
  188.                                                 <TH>Relay Control</TH>
  189.                                             </TR>
  190.                                             <TR>
  191.                                                 <TD>
  192.                                                     By default <%=sys.serverid%>
  193.                                                     will only relay from machines included in the <A HREF="addresssmtp.fts?id=<%=id%>">Allowed Relay Address List</A>
  194.                                                     or those that have had a valid SMTP AUTH operation
  195.                                                 </TD>
  196.                                             </TR>
  197.                                             <TR>
  198.                                                 <TH>In addition you can:</TH>
  199.                                             </TR>
  200.                                             <TR>
  201.                                                 <TD>
  202.                                                     <INPUT TYPE="CHECKBOX" NAME="validatesender" onChange="setModified(true)"
  203.                                                     <% if (s.auth.validatesender) output.write("CHECKED") %>>Allow relay from POP3 validated machines
  204.                                                 </TD>
  205.                                             <TR>
  206.                                                 <TD>
  207.                                                     <INPUT TYPE="CHECKBOX" NAME="neverrelay" onChange="setModified(true)"
  208.                                                     <% if (s.auth.neverrelay) output.write("CHECKED") %>>Prohibit relay messages from all sources
  209.                                                 </TD>
  210.                                             </TR>
  211.                                             <TR>
  212.                                                 <TD>
  213.                                                     <INPUT TYPE="CHECKBOX" NAME="relaysenderlock" onChange="setModified(true)"
  214.                                                     <% if (s.auth.relaysenderlock) output.write("CHECKED") %>>Only relay if sender's address is hosted by this server (<A HREF="addresssmtp.fts?id=<%=id%>">Address restrictions still apply</A>)
  215.                                                 </TD>
  216.                                             </TR>
  217.                                         </TABLE>
  218.                                     </TD>
  219.                                 </TR>
  220.                             </TABLE>
  221.                         </TD>
  222.                     </TR>
  223.                 </TABLE>
  224.             </TD>
  225.         </TR>
  226.         <!-- sub table ends here -->
  227.         <!-- sub table goes here -->
  228.          <TR>
  229.             <TD>
  230.                 <TABLE CLASS="box" WIDTH="100%">
  231.                     <TR>
  232.                         <TD>
  233.                             <TABLE WIDTH="100%">
  234.                                 <TR>
  235.                                     <TD>
  236.                                         <TABLE BORDER="0" WIDTH="100%">
  237.                                             <TR>
  238.                                                 <TH>Validation</TH>
  239.                                             </TR>
  240.                                             <TR>
  241.                                                 <TD>
  242.                                                     <INPUT TYPE="CHECKBOX" NAME="verifyfrom" onChange="setModified(true)"
  243.                                                     <% if (s.auth.verifyfrom) output.write("CHECKED") %>>Validate that sender's domain exists
  244.                                                 </TD>
  245.                                             </TR>
  246.                                             <TR>
  247.                                                 <TD>
  248.                                                     <INPUT TYPE="CHECKBOX" NAME="mapsdul" onChange="setModified(true)"
  249.                                                     <% if (s.mapsdul) output.write("CHECKED") %>>Validate incoming servers with the MAPS DUL list
  250.                                                 </TD>
  251.                                             </TR>
  252.                                             <TR>
  253.                                                 <TD>
  254.                                                     <INPUT TYPE="CHECKBOX" NAME="mapsrbl" onChange="setModified(true)"
  255.                                                     <% if (s.mapsrbl) output.write("CHECKED") %>>Validate incoming servers with the MAPS RBL list
  256.                                                 </TD>
  257.                                             </TR>
  258.                                         </TABLE>
  259.                                     </TD>
  260.                                 </TR>
  261.                             </TABLE>
  262.                         </TD>
  263.                     </TR>
  264.                 </TABLE>
  265.             </TD>
  266.         </TR>
  267.         <!-- sub table ends here -->
  268.         <!-- sub table goes here -->
  269.          <TR>
  270.             <TD>
  271.                 <TABLE CLASS="box" WIDTH="100%">
  272.                     <TR>
  273.                         <TD>
  274.                             <TABLE WIDTH="100%">
  275.                                 <TR>
  276.                                     <TD>
  277.                                         <TABLE BORDER="0" WIDTH="100%">
  278.                                             <TR>
  279.                                                 <TH>Access Control</TH>
  280.                                             </TR>
  281.                                             <TR>
  282.                                                 <TD COLSPAN="3"><INPUT TYPE="RADIO" NAME="required" onClick="setModified(true)" VALUE="0"
  283.                                                 <% if (s.auth.required==0) output.write("CHECKED") %>>Allow messages from all sources</TD>
  284.                                             </TR>
  285.                                             <TR>
  286.                                                 <TD COLSPAN="3"><INPUT TYPE="RADIO" NAME="required" onClick="setModified(true)" VALUE="1"
  287.                                                 <% if (s.auth.required) output.write("CHECKED") %>>Only allow messages from AUTHenticated sources</TD>
  288.                                             </TR>
  289.                                         </TABLE>
  290.                                     </TD>
  291.                                 </TR>
  292.                             </TABLE>
  293.                         </TD>
  294.                     </TR>
  295.                 </TABLE>
  296.             </TD>
  297.         </TR>
  298.         <!-- sub table ends here -->
  299.         <!-- sub table goes here -->
  300.          <TR>
  301.             <TD>
  302.                 <TABLE CLASS="box" WIDTH="100%">
  303.                     <TR>
  304.                         <TD>
  305.                             <TABLE WIDTH="100%">
  306.                                 <TR>
  307.                                     <TD>
  308.                                         <TABLE BORDER="0" WIDTH="100%">
  309.                                             <TR>
  310.                                                 <TH COLSPAN="3">SMTP AUTH</TH>
  311.                                             </TR>
  312.                                             <TR>
  313.                                                 <TD WIDTH="10"> </TD>
  314.                                                 <TD COLSPAN="2"><INPUT TYPE="RADIO" NAME="specific" onClick="setModified(true)" VALUE="0"
  315.                                                 <% if (s.auth.specific==0) output.write("CHECKED") %>>Allow AUTH logon with mailbox username and password</TD>
  316.                                             </TR>
  317.                                             <TR>
  318.                                                 <TD WIDTH="10"> </TD>
  319.                                                 <TD COLSPAN="2"><INPUT TYPE="RADIO" NAME="specific" onClick="setModified(true)" VALUE="1"
  320.                                                 <% if (s.auth.specific) output.write("CHECKED") %>>Only allow AUTHorization using the following name and password</TD>
  321.                                             </TR>
  322.                                             <TR>
  323.                                                 <TD WIDTH="10"> </TD>
  324.                                                 <TD>Name</TD><TD><INPUT TYPE="TEXT" NAME="name" SIZE="<%=size20%>" VALUE="<%=s.auth.name%>" onChange="setModified(true)"></TD>
  325.                                             </TR>
  326.                                             <TR>
  327.                                                 <TD WIDTH="10"> </TD>
  328.                                                 <TD>Password</TD><TD><INPUT TYPE="PASSWORD" NAME="password" SIZE="<%=size20%>" VALUE="*******"></TD>
  329.                                             </TR>
  330.                                         </TABLE>
  331.                                     </TD>
  332.                                 </TR>
  333.                             </TABLE>
  334.                         </TD>
  335.                     </TR>
  336.                 </TABLE>
  337.             </TD>
  338.         </TR>
  339.         <!-- sub table ends here -->
  340.         <!-- table footer goes here -->
  341.         <TR>
  342.             <TD ALIGN="RIGHT">
  343.                 <A HREF="javascript:onClose()"
  344.                 onMouseDown="change('closeA', 'ok', 1)"
  345.                 onMouseOut="change('closeA', 'ok', 0)"><IMG SRC="<%=buttons%>ok.gif" NAME="closeA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes and close" HSPACE="5"></A>
  346.                 <A HREF="javascript:onCancel()"
  347.                 onMouseDown="change('cancelA', 'cancel', 1)"
  348.                 onMouseOut="change('cancelA', 'cancel', 0)"><IMG SRC="<%=buttons%>cancel.gif" NAME="cancelA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Cancel"></A>
  349.                 <A HREF="javascript:onApply()"
  350.                 onMouseDown="change('applyA', 'apply', 1)"
  351.                 onMouseOut="change('applyA', 'apply', 0)"><IMG SRC="<%=buttons%>apply.gif" NAME="applyA" BORDER="0" WIDTH="50" HEIGHT="20" ALT="Apply changes" HSPACE="5"></A>
  352.             </TD>
  353.         </TR>
  354.         <!-- table footer ends here -->
  355.   </TABLE>
  356. </TD>
  357. </TR>
  358. <!-- end of block -->
  359. </TABLE>
  360. <!-- end of the tab body -->
  361. </TD></TR></TABLE>
  362.  
  363. <!-- footer starts here -->
  364. <SCRIPT LANGUAGE="JavaScript1.2" TYPE="text/javascript">
  365. <!--
  366.     var href="/services/securitysmtp.fts?id=<%=id%>";
  367.     var bodywidth=<%=bodywidth%>;
  368. //-->
  369. </SCRIPT>
  370. <SCRIPT LANGUAGE="JavaScript1.2" SRC="/utility/footer.js" TYPE="text/javascript"></SCRIPT>
  371. <!-- footer ends here -->
  372. </FORM>
  373. </TD><TD WIDTH="10"> </TD></TR></TABLE>
  374. </BODY>
  375. </HTML>
  376.