Voicemail-to-Email Not Arriving¶
Symptom: voicemail itself works (user hears messages via *97), but emails with the .wav attachment never arrive.
Most Likely Causes¶
- SMTP relay not configured — Postfix is trying to deliver direct, getting bounced by recipient mail servers (no SPF/DKIM).
- SMTP credentials wrong — auth fails at the relay.
- Email address blank or wrong on the extension.
- Attachment too large — recipient mail server rejects > 10MB.
- Recipient mail server rate-limiting / spam-filtering the PBX's IP.
- Postfix queue stuck — ran out of disk, permission issue.
Diagnose¶
# Check if mail leaves the box:
echo "test body" | mail -s "test from PBX" you@example.com
# Watch what Postfix does:
tail -f /var/log/maillog
# Look for the test mail's status: "status=sent" / "deferred" / "bounced".
# Check the queue:
mailq
# Verify the extension's email is set:
mysql -u root asterisk -e "SELECT extension,name,email FROM users WHERE extension='<ext>';"
Fix¶
- No SMTP relay configured: System Admin → Sysadmin → Email Setup → set up a relay (Gmail with app password, SendGrid, etc.). See Configure Email and DNS (Sysadmin).
- Auth failing at relay: double-check username, password (Gmail requires App Password, not the account password), TLS port (587 typically).
- Wrong email on extension: User Attributes → Extensions →
→ Voicemail → Email Address — fix it. - Attachment too large: in voicemail global settings, lower Max Message Length to ~3 minutes.
- Spam-filtered: check the recipient's spam folder. Set up SPF and DKIM for the sending domain. Ask recipient to whitelist.
- Stuck queue:
postqueue -plists stuck items;postsuper -d ALLclears (only if you don't need them).
When to Escalate¶
maillog shows status=sent consistently but emails never arrive — relay is delivering somewhere they don't want them. Recipient mail provider has them in spam or has blocked the relay. Contact recipient's IT.