Create a mailbox
cx1-add-mailbox.sh hello@acme.co.uk # You will be prompted for a password (not stored in shell history)
Create a mail alias
cx1-add-alias.sh info@acme.co.uk hello@acme.co.uk
DKIM signing (required for deliverability)
cx1-add-dkim.sh acme.co.uk # Outputs a DNS TXT record — add it to your DNS provider # Verify after propagation: rspamadm dkim_verify -s mail -d acme.co.uk < /dev/null
Required DNS records
A acme.co.uk → SERVER_IP A mail.acme.co.uk → SERVER_IP MX acme.co.uk → mail.acme.co.uk priority 10 TXT acme.co.uk → "v=spf1 mx ~all" TXT _dmarc.acme.co.uk → "v=DMARC1; p=none; rua=mailto:postmaster@acme.co.uk" TXT mail._domainkey.acme.co.uk → (value from cx1-add-dkim.sh output)
✅ Once verified working, tighten SPF to
-all and DMARC to p=quarantine.Webmail
https://mail.acme.co.uk/webmail # or http://SERVER_IP/webmail before SSL is set up
Client mail settings
IMAP : mail.acme.co.uk port 993 SSL/TLS SMTP : mail.acme.co.uk port 587 STARTTLS (or 465 SSL) Username: full email address (hello@acme.co.uk) Password: as set in cx1-add-mailbox.sh
View mail queue
postqueue -p # show queue postqueue -f # flush/retry all postsuper -d ALL # delete all queued mail (use with care)