CasperSecurity

Current Path : /home/uiet/iRedMail-1.5.0/samples/postgresql/sql/
Upload File :
Current File : //home/uiet/iRedMail-1.5.0/samples/postgresql/sql/add_first_domain_and_user.sql

-- Connect as vmailadmin
-- \c PH_VMAIL_DB_NAME PH_VMAIL_DB_ADMIN_USER;
\c 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());

-- Add your first normal user
INSERT INTO mailbox (username,
                     password,
                     name,
                     maildir,
                     quota,
                     domain,
                     isadmin,
                     isglobaladmin,
                     created)
             VALUES ('PH_DOMAIN_ADMIN_EMAIL',
                     'PH_DOMAIN_ADMIN_PASSWD_HASH',
                     'PH_DOMAIN_ADMIN_NAME',
                     'PH_DOMAIN_ADMIN_MAILDIR_HASH_PART',
                     1024,
                     'PH_FIRST_DOMAIN',
                     1,
                     1,
                     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());
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY