Skip to content

NethVoice: voicemail smarthost takes default freepbx "From:" leading to email being refused #7771

@Stell0

Description

@Stell0

When smarthost for sending voicemails is configured, the "From:" field is setted to "asterisk@hostname" this usually leads to email being refused

Steps to reproduce

  • configure smarthost
  • configure voicemail
  • send a voicemail using smarthost
  • check the "From:" field (or the journal log if the email is refused)

Expected behavior

  • "From:" should be environment SMTP_FROM_ADDRESS if configured
  • "From:" should be taken from send_email command line parameter -f
  • if SMTP_FROM_ADDRESS isn't configured, it should be BRAND_NAME@from_domain where
    • from domain is the domain of username if it contains a @
    • from domain should be the NETHVOICE_HOST if it is a valid host
    • from domain should be the smarthost domain

Actual behavior

  • SMTP_FROM_ADDRESS is ignored
  • default "From:" is used

See also

https://mattermost.nethesis.it/nethesis/pl/w658zsa6utduuje3mah1etmzca

Metadata

Metadata

Assignees

Labels

nethvoiceBug or features releted to the NethVoice projecttestingPackages are available from testing repositories

Type

Projects

Status

Testing

Relationships

None yet

Development

No branches or pull requests

Issue actions