04 66 72 51 22

Backup alert or report emails are not being delivered

This page is intended for administrators of a BeBackup server who are not receiving backup reports or alerts by email. It describes the server's SMTP (Simple Mail Transfer Protocol) settings, how to test them, and the common causes of failure. It applies to BeBackup server 7.

Symptom

Backups run, but no report arrives by email. Or server alerts do not arrive. The test button may display a message beginning with Error sending an email:.

Cause

The BeBackup server sends its emails through an SMTP server that you specify. An email fails to arrive for one of the following reasons:

  • the SMTP settings are incomplete or incorrect;
  • the SMTP server rejects the authentication, the encryption, the sender or the recipient;
  • no report-sending rule is defined for the media;
  • a firewall is blocking the connection from the BeBackup server to the SMTP server.

Checks

Check the SMTP settings

In the server configuration, Email tab, check these fields:

  • SMTP server name;
  • SMTP server port. If left empty, it defaults to 25;
  • Authentication required, then User name and Password;
  • SSL/TLS encrypted connection;
  • Email sender name and Email sender address.

The Password field always appears empty. An empty field means the saved password is retained.

If the SMTP server name contains the word disabled, the server sends no emails at all, without displaying an error.

Test sending

Click Test email sending. The server sends a test email to the addresses in the Recipient email addresses field, and to those alone. If sending succeeds, the message Test email sent successfully. is displayed.

This message also appears when nothing has been sent: if the Recipient email addresses field is empty, or if the SMTP server name contains disabled. Before drawing any conclusions, check that the field is filled in and that the test email has actually arrived.

If sending fails, the message indicates the stage at fault:

  • SMTP/Host parameter not defined. Unable to send email.: the SMTP server name is empty. The same message exists for the sender name and address, and for the recipient.
  • Error sending an email: Authentication error: "…": the connection or the authentication failed. The text in quotation marks is the SMTP server's response.
  • Sender "…" invalid:: the SMTP server rejects the sender address.
  • Recipient "…" invalid:: the SMTP server rejects the recipient address.

Check the report-sending rules

A backup report is only sent if a rule provides for it. In the backup settings of the media, the company or the provider, check the Send reports by email block:

  • Recipient: this email address, or Recipient: the user who started the job;
  • Send only if the job ends with errors: if this box is ticked, a report is only sent if it contains errors. A report for a successful backup is not sent, nor is a report containing warnings only.

Resolution

Choosing the encryption

The SSL/TLS encrypted connection field offers four values:

  • Unencrypted;
  • TLS required: the connection is encrypted from the outset;
  • StartTLS required: the connection starts in clear text, then switches to encrypted before the credentials are sent. If the SMTP server does not offer this switch, sending is refused;
  • Automatic StartTLS: the connection switches to encrypted only if the SMTP server offers it.

Choose TLS required or StartTLS required, according to what your email provider specifies for the port used. With either of these values, the credentials never travel in clear text. Only use Unencrypted or Automatic StartTLS on a trusted network.

With StartTLS required, if the SMTP server does not offer encryption, the test displays:

The SMTP server does not offer STARTTLS, although encryption is required. Credentials not sent.

This text appears within the message Error sending an email: Authentication error: "…". A variant ends with (no ESMTP): the SMTP server offers no extensions at all, and therefore no STARTTLS.

In that case, check the port and the value recommended by your email provider.

The sender is rejected

Many SMTP servers only accept sender addresses from their own domain. A report template may define its own sender address, different from the server's. In that case, tick:

  • Do not use the sender address defined in the report template;
  • Do not use the sender name defined in the report template.

Reports are then sent with the sender defined in the Email tab.

The test succeeds but the reports do not arrive

  • Check the sending rules for the media concerned.
  • Check the recipient's junk mail folder.
  • Check the recipient address. An invalid address is discarded without any error being displayed.
  • Consult the @MainServer-sendMail.log log, in the server's logs folder. Each send is traced there by a Sending the email… line; a discarded recipient is noted there as information, and a send failure in the form Error sending the email to …, followed by the reason.

Alerts are only sent for the message levels ticked under Send an email for all messages of type:, in the Email tab.

The same alert is not re-sent to the same recipient on every occurrence. By default, the server waits 8 hours before re-sending it. Backup reports, for their part, are sent according to their own sending rules.

If the problem persists

Contact BeBackup support. Include the exact message from the send test, the value of SSL/TLS encrypted connection, the port used, and the name of your email provider. Never send your SMTP password.

BeBackup is backup built for IT service providers

Backup and restore of workstations, servers, virtual machines and Microsoft 365, encrypted at source with a key we do not hold, on the hosting of your choice.