Я пытаюсь автоматически настроить учетные записи электронной почты Thunderbird, которые находятся в моем домене и его поддоменах (например, user1@my.example.com, user2@sub1.my.example.com). Почтовый клиент не имеет доступа к Интернету, и из-за необходимого дополнения мне приходится использовать Thunderbird 2.0.0.6.

Ниже приведены мои файлы конфигурации:
1. rdf (на основе https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Thunderbird/Thunderbird_ISP_hooks) - добавляет тип учетной записи для выбора в настройках учетной записи, но только для одного домена
2. xml (https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration) - не работает (как это, вероятно, должно быть - его рекламируют для включения в Thunderbird 3 и новее)

Мои вопросы:
- Есть ли способ определить поддоменов в файле .rdf
- возможно ли заставить xml автоконфигурирование работать с Thunderbird 2?


Это пример rdf::

  <RDF:Description about="NC:ispinfo">
    <NC:providers>
      <NC:nsIMsgAccount about="domain:my.example.com">

        <NC:incomingServer>
          <NC:nsIMsgIncomingServer>
            <NC:hostName>mail.example.com</NC:hostName>

            <NC:type>imap</NC:type>
            <NC:ServerType-imap>
                <NC:nsIImapIncomingServer>
                    <NC:cleanupInboxOnExit>true</NC:cleanupInboxOnExit>
                </NC:nsIImapIncomingServer>
            </NC:ServerType-imap>
            <NC:loginAtStartUp>true</NC:loginAtStartUp>
            <NC:downloadOnBiff>true</NC:downloadOnBiff>
            <NC:rememberPassword>false</NC:rememberPassword>
            <NC:port>993</NC:port>
            <NC:socketType>3</NC:socketType>
          </NC:nsIMsgIncomingServer>
        </NC:incomingServer>

        <NC:smtp>
          <NC:nsISmtpServer>
            <NC:hostname>mail.example.com</NC:hostname>
            <NC:port>465</NC:port>
            <NC:trySSL>2</NC:trySSL>
            <NC:description>MyMail</NC:description>
          </NC:nsISmtpServer>
        </NC:smtp>
        <NC:smtpRequiresUsername>true</NC:smtpRequiresUsername>
        <NC:smtpCreateNewServer>true</NC:smtpCreateNewServer>
        <NC:smtpUsePreferredServer>true</NC:smtpUsePreferredServer>

        <NC:identity>
          <NC:nsIMsgIdentity>
          </NC:nsIMsgIdentity>
        </NC:identity>

        <NC:wizardSkipPanels>true</NC:wizardSkipPanels>
        <NC:wizardShortName>MyMail</NC:wizardShortName>
        <NC:wizardLongName>MyMailExample</NC:wizardLongName>
        <NC:wizardShow>true</NC:wizardShow>
        <NC:wizardPromote>true</NC:wizardPromote>
        <NC:emailProviderName>MyMail</NC:emailProviderName>
        <NC:showServerDetailsOnWizardSummary>true</NC:showServerDetailsOnWizardSummary>
      </NC:nsIMsgAccount>
    </NC:providers>
  </RDF:Description>
</RDF:RDF>

И это мой XML:

      <domain>my.example.com</domain>
      <domain>sub1.my.example.com</domain>
      <domain>sub2.my.example.com</domain>

      <displayName>MyMailExample</displayName>
      <displayShortName>MyMail</displayShortName>

      <incomingServer type="imap">
         <hostname>mail.example.com</hostname>
         <port>993</port>
         <socketType>SSL</socketType>
         <username>%EMAILADDRESS%</username>
         <authentication>password-cleartext</authentication>
      </incomingServer>

      <outgoingServer type="smtp">
         <hostname>mail.example.com</hostname>
         <port>465</port>
         <socketType>SSL</socketType>
         <username>%EMAILADDRESS%</username>
         <authentication>password-cleartext</authentication>
      </outgoingServer>

    </emailProvider>
</clientConfig>

0