FR EN

It is possible that the sending of emails on PBXware, using the SMTP protocol, is failing.

If there is an issue sending emails with the SMTP configuration that looks like this:

ERROR: Failed to authenticate on SMTP server with username "test@test.com"

Check the SMTP sending logs with the following command: the latest error messages displayed like this:

less /opt/pbxware/pw/var/log/ssmtp/msmtp.log

The latest SMTP send logs will be displayed like this; here is an example of a failed SMTP send:

Aug 12 10:40:49 host=smtp.office365.com tls=on auth=off from=test@test.com recipients=test2@test2com smtpstatus=530 smtpmsg='530 5.7.57 Client not authenticated to send mail. [956EZZE51X1.CC4745.OUTLOOK.COM]' errormsg='envelope from address test@test.fr not accepted by the server' exitcode=EX_DATAERR

The SMTP configuration using TLS/STARTTLS probably did not save in the user interface (:81, or Wizard). To fix this, you need to check the configuration file msmtprc SMTP /opt/pbxware/pw/etc/msmtprc

In addition to enabling TLS, you must add the following line at the bottom of the SMTP configuration file:

auth on

The configuration file is named msmtprc and is located in the path /opt/pbxware/pw/etc/msmtprc.