# Vexib Virtual Mailbox Testing Results

## Test Date

```text
2026-06-24
```

## Test Mailbox

```text
noreply@photosite.vexib.co.uk
```

## Summary

The virtual mailbox infrastructure has been tested successfully for database lookup, Dovecot authentication, inbound delivery, IMAP client access and outbound SMTP delivery through SMTP2GO.

Overall result:

```text
PASS
```

## Tests Completed

### 1. Postfix Virtual Domain Lookup

Command:

```bash
sudo postmap -q photosite.vexib.co.uk mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
```

Result:

```text
1
```

Status:

```text
PASS
```

---

### 2. Postfix Virtual Mailbox Lookup

Command:

```bash
sudo postmap -q noreply@photosite.vexib.co.uk mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
```

Result:

```text
photosite.vexib.co.uk/noreply/
```

Status:

```text
PASS
```

---

### 3. Postfix Virtual Alias Lookup

Command:

```bash
sudo postmap -q info@photosite.vexib.co.uk mysql:/etc/postfix/mysql-virtual-alias-maps.cf
```

Result:

```text
blank
```

Explanation:

No alias had been created at the time of testing.

Status:

```text
PASS - no alias expected
```

---

### 4. Dovecot SQL Authentication

Command:

```bash
sudo doveadm auth test noreply@photosite.vexib.co.uk
```

Result:

```text
passdb: noreply@photosite.vexib.co.uk auth succeeded
extra fields:
  user=noreply@photosite.vexib.co.uk
```

Status:

```text
PASS
```

---

### 5. Inbound Mail Delivery

External test message sent to:

```text
noreply@photosite.vexib.co.uk
```

Mail log result:

```text
dovecot: lmtp(noreply@photosite.vexib.co.uk): saved mail to INBOX
postfix/lmtp: to=<noreply@photosite.vexib.co.uk>, relay=mail.vexib.co.uk[private/dovecot-lmtp], dsn=2.0.0, status=sent
```

Status:

```text
PASS
```

---

### 6. IMAP Network Test

From client machine:

```bash
openssl s_client -connect 192.168.0.39:993
```

Result included:

```text
Verify return code: 0 (ok)
* OK [CAPABILITY IMAP4rev1 ... AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
```

Additional test:

```bash
nc -vz 192.168.0.39 993
```

Result:

```text
Connection to 192.168.0.39 993 port [tcp/imaps] succeeded!
```

Status:

```text
PASS
```

---

### 7. Thunderbird IMAP Login

Thunderbird was configured with:

```text
Incoming server: mail.vexib.co.uk
Port: 993
Security: SSL/TLS
Username: noreply@photosite.vexib.co.uk
```

Internal LAN hosts override used:

```text
192.168.0.39    mail.vexib.co.uk
```

Mail log result:

```text
dovecot: imap-login: Login: user=<noreply@photosite.vexib.co.uk>, method=PLAIN, rip=192.168.0.43, lip=192.168.0.39, TLS
```

Thunderbird opened the account and displayed the received test email.

Status:

```text
PASS
```

---

### 8. Outbound SMTP Delivery

A message was sent from:

```text
noreply@photosite.vexib.co.uk
```

to:

```text
philip.burness@sky.com
```

Result:

```text
Message delivered successfully.
```

Status:

```text
PASS
```

## Overall Result

```text
Virtual mailbox infrastructure is production-ready for initial Vexib-controlled use.
```

## Remaining Tests / Future Work

The following tests remain useful before wider rollout:

```text
Test alias creation and delivery
Test albumdb.vexib.co.uk mailbox
Test external IMAP login from mobile network / non-LAN network
Test mailbox disable behaviour
Test domain disable behaviour
Test quota behaviour
```

## Known Issue

Internal LAN clients using public DNS for `mail.vexib.co.uk` may fail because of router NAT loopback behaviour.

Current workaround:

```text
/etc/hosts entry on LAN clients
```

Recommended long-term fix:

```text
split DNS / local DNS override
```

