<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Requests
    PUBLIC "-//iPlanet//iDSAME 5.0 Admin CLI DTD//EN"
    "file:%IDSAME_BASEDIR%/%IDSAME_PRODUCT_DIR%/dtd/amAdmin.dtd"
>
<Requests>
  <OrganizationRequests DN="%ORG_DN%">
    <RegisterServices>
      <Service_Name>SunPortalNetMailService</Service_Name>
    </RegisterServices>
  </OrganizationRequests>

  <OrganizationRequests DN="%ORG_DN%">
    <CreateServiceTemplate>
      <Service_Name>SunPortalNetMailService</Service_Name>
    </CreateServiceTemplate>
  </OrganizationRequests>

  <OrganizationRequests DN="%ORG_DN%">
    <CreatePolicy createDN="%ORG_DN%">
      <Policy name="Ability to execute Portal Server Netmail" referralPolicy="false">
        <Rule name="ExecuteNetmail">
          <ServiceName name="SunPortalNetMailService" />
          <AttributeValuePair>
            <Attribute name="sunPortalNetmailExecutable" />
            <Value>true</Value>
          </AttributeValuePair>
        </Rule>
        <Subjects name="OrgExecNetmail" description="">
          <Subject name="OrgExecuteNetmail" type="Organization">
            <AttributeValuePair>
              <Attribute name="Values"/>
              <Value>%ORG_DN%</Value>
            </AttributeValuePair>
          </Subject>
        </Subjects>
      </Policy>
    </CreatePolicy>
  </OrganizationRequests>

  <OrganizationRequests DN="%ORG_DN%">
    <AddServiceTemplateAttributeValues  serviceName="iPlanetAMAdminConsoleService" schemaType="Organization">
      <AttributeValuePair>
        <Attribute name="iplanet-am-required-services"/>
        <Value>SunPortalNetmailService</Value>
      </AttributeValuePair>
    </AddServiceTemplateAttributeValues>
  </OrganizationRequests>
</Requests>
