MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: //php-8.2.0/appveyor/setup_hmailserver.php
<?php

require __DIR__ . "/../ext/imap/tests/setup/imap_include.inc";

$hmail = new COM("hMailServer.Application");
$hmail->authenticate("Administrator", "");

$domain = $hmail->Domains->Add();
$domain->Name = IMAP_MAIL_DOMAIN;
$domain->Active = true;
$domain->Save();

$accounts = $domain->accounts();

foreach (IMAP_USERS as $user) {
    $account = $accounts->Add();
    $account->Address = "$user@" . IMAP_MAIL_DOMAIN;
    $account->Password = IMAP_MAILBOX_PASSWORD;
    $account->Active = true;
    $account->Save();
}