OK, so it turns out, test mails from the Sysadmin Debug page work fine (but the FROM is still nothing more than an email address), but emails from the Voicemail system are NOT working. In any case, the “Email From String” was already set to a friendly name. The “Server Email” is blank.
This is from Debug test:
Jan 4 12:46:36 trc-pbx postfix/pickup[1641]: 60A0F8281: uid=995 from=<asterisk>
Jan 4 12:46:36 trc-pbx postfix/cleanup[1962]: 60A0F8281: message-id=<20220104174636.60A0F8281@trcpbx>
Jan 4 12:46:36 trc-pbx postfix/qmgr[1642]: 60A0F8281: from=<[email protected]>, size=405, nrcpt=1 (queue active)
Jan 4 12:46:36 trc-pbx postfix/smtp[1964]: 60A0F8281: to=<[email protected]>, relay=smtp.sendgrid.net[54.146.218.5]:587, delay=0.42, delays=0.04/0.04/0.3/0.05, dsn=2.0.0, status=sent (250 Ok: queued as gXp3y9YLQ9eFFRGUXbjjIg)
Jan 4 12:46:36 trc-pbx postfix/qmgr[1642]: 60A0F8281: removed
This is from the Voicemail system:
Jan 4 12:48:26 trc-pbx postfix/pickup[1641]: C7F928281: uid=995 from=<asterisk>
Jan 4 12:48:26 trc-pbx postfix/cleanup[2215]: C7F928281: message-id=<Asterisk-1-664384873-399-2508@trc-pbx>
Jan 4 12:48:26 trc-pbx postfix/qmgr[1642]: C7F928281: from=<[email protected]>, size=78338, nrcpt=1 (queue active)
Jan 4 12:48:27 trc-pbx postfix/smtp[2218]: C7F928281: to=<[email protected]>, relay=smtp.sendgrid.net[167.89.115.116]:587, delay=0.33, delays=0.04/0.02/0.18/0.08, dsn=5.0.0, status=bounced (host smtp.sendgrid.net[167.89.115.116] said: 550 The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit https://sendgrid.com/docs/for-developers/sending-email/sender-identity/ to see the Sender Identity requirements (in reply to end of DATA command))
First of all, do I need to worry about getting that [email protected] changed to the actual email I want to appear (which would be [email protected])? I’m not sure if that’s the culprit. Should the log be showing the replacements performed by the postfix generics?
This is my generics file:
root [email protected]
root@localhost [email protected]
root@freepbx [email protected]
[email protected] [email protected]
asterisk trcadmin
asterisk [email protected]
asterisk@localhost [email protected]
asterisk@freepbx [email protected]
[email protected] [email protected]
[email protected] [email protected]
This is the custom portion of the main.cf:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_security_level = encrypt
header_size_limit = 4096000
relayhost = [smtp.sendgrid.net]:587
smtp_generic_maps = hash:/etc/postfix/generic