# Vexib Mail Admin Install Notes

1. Copy PHP files into the Vexib project root.
2. Copy `inc/vx_vm_config.example.php` to `inc/vx_vm_config.php`.
3. Edit DB credentials and admin password hash.
4. Generate admin password hash:

```bash
php -r "echo password_hash('Vmwarent1', PASSWORD_DEFAULT), PHP_EOL;"
```

5. Open:

```text
https://vexib.co.uk/vx_vm_login.php
```


6. After adding or changing mailboxes, test with:

```bash
sudo doveadm auth test mailbox@example.com
sudo postmap -q mailbox@example.com mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
```
