USE PH_VMAIL_DB_NAME;

-- Add your first domain
INSERT INTO domain (domain, transport, settings, created)
            VALUES ('PH_FIRST_DOMAIN', 'PH_TRANSPORT', 'default_user_quota:1024;', NOW());

INSERT INTO forwardings (address, forwarding, domain, dest_domain, is_forwarding)
           VALUES ('PH_DOMAIN_ADMIN_EMAIL', 'PH_DOMAIN_ADMIN_EMAIL', 'PH_FIRST_DOMAIN', 'PH_FIRST_DOMAIN', 1);

-- Mark first mail user as global admin
INSERT INTO domain_admins (username, domain, created)
                   VALUES ('PH_DOMAIN_ADMIN_EMAIL', 'ALL', NOW());
