Test email errors
George King <[email protected]> Wed, 3 Jun 2026 20:05:52 +0100
| Newsgroups | gmane.comp.sysutils.backup.backuppc.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============0632684364887762645== Content-Type: multipart/alternative; boundary="------------X0dA8JipN5m3ZvZnQLtykGmj" Content-Language: en-GB This is a multi-part message in MIME format. --------------X0dA8JipN5m3ZvZnQLtykGmj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hello, I've recently rebuilt and reconfigured my instance of Backuppc following=20 a move to new hardware.=C2=A0 All is well except I cannot get the email to=20 work, which is very frustrating as I did get it working before, albeit=20 10 years ago... I have Backuppc 4.4.0 running on Ubuntu 24.04.4 LTS.=C2=A0 From previous=20 experience, I've installed msmtp as the MTA as I've found the=20 configuration easier than Sendmail.=C2=A0 msmtp works fine when I'm sending= =20 it from my normal account.=C2=A0 It picks up details from the system config= =20 file /etc/msmtprc and my user config file in ~/.msmtprc. However, when I do |su backuppc /usr/share/backuppc/bin/BackupPC_sendEmail -u=20 [email protected]| as per the documentation, and substituting my email address, I get the erro= r ||Sending test email using /usr/sbin/sendmail -t -f backuppc sendmail: account default not found: no configuration file available And no email is sent or received.=C2=A0 N.B. backuppc is set as ServerHost=20 and BackupPCUser in the BackupPC config.=C2=A0 I suppose that is why it is = in=20 line 1 of the error message, but I'm not sure why it's saying "account=20 default not found" because it does. I have accounts in the /home/george/.msmtprc file for my Ubuntu user=20 account "george", "backuppc" and "default" to cover the bases but no=20 joy.=C2=A0 They all have the same host, from and user details. I think the permissions are correct: =C2=A0 =C2=A0root:msmtp for /etc/msmtprc =C2=A0 =C2=A0george:msmtp for /home/george/.msmtprc and chmod 600 for both. On BackupPC my SendmailPath is the default /usr/sbin/sendmail and that is symlinked to /bin/msmtp so that's OK. I don't think Apparmor is a problem: this file exists -=20 /etc/apparmor.d/local/usr.bin.msmtp and it's not listed in the status. Is there anything I'm missing?=C2=A0 Anything that BackupPC is looking for = in=20 the msmtp or backuppc config files that I haven't already included? Thanks for any help - I feel I'm missing something obvious... George --------------X0dA8JipN5m3ZvZnQLtykGmj Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html> <html> <head> <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8= "> </head> <body> <p>Hello,</p> <p>I've recently rebuilt and reconfigured my instance of Backuppc following a move to new hardware.=C2=A0 All is well except I cannot g= et the email to work, which is very frustrating as I did get it working before, albeit 10 years ago...</p> <p>I have Backuppc 4.4.0 running on Ubuntu 24.04.4 LTS.=C2=A0 From previous experience, I've installed msmtp as the MTA as I've found the configuration easier than Sendmail.=C2=A0 msmtp works fine when I= 'm sending it from my normal account.=C2=A0 It picks up details from the system config file /etc/msmtprc and my user config file in ~/.msmtprc.</p> <p>However, when I do=C2=A0</p> <pre style=3D"white-space: pre-wrap; overflow-wrap: break-word; font-size: 10pt;= color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; f= ont-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans= : 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(25= 5, 255, 255); text-decoration-thickness: initial; text-decoration-style: in= itial; text-decoration-color: initial;"><code>su backuppc /usr/share/backuppc/bin/BackupPC_sendEmail -u <a class=3D"moz-txt-link-abbreviated moz-txt-link-freetext" href=3D"mailto:[email protected]">[email protected]</a></code></pre= > <p>as per the documentation, and substituting my email address, I get the error</p> <p><code style=3D"white-space: pre-wrap;"> </code>Sending test email using /usr/sbin/sendmail -t -f backuppc<br> sendmail: account default not found: no configuration file available</p> <p>And no email is sent or received.=C2=A0 N.B. backuppc is set as ServerHost and BackupPCUser in the BackupPC config.=C2=A0 I suppose that is why it is in line 1 of the error message, but I'm not sure why it's saying "account default not found" because it does.=C2=A0 =C2= =A0</p> <p>I have accounts in the /home/george/.msmtprc file for my Ubuntu user account "george", "backuppc" and "default" to cover the bases but no joy.=C2=A0 They all have the same host, from and user details.= </p> <p>I think the permissions are correct:<br> =C2=A0 =C2=A0root:msmtp for /etc/msmtprc<br> =C2=A0 =C2=A0george:msmtp for /home/george/.msmtprc<br> and chmod 600 for both.</p> <p>On BackupPC my SendmailPath is the default /usr/sbin/sendmail=C2=A0<= br> and that is symlinked to /bin/msmtp so that's OK.</p> <p>I don't think Apparmor is a problem: this file exists - /etc/apparmor.d/local/usr.bin.msmtp and it's not listed in the status.=C2=A0 =C2=A0</p> <p>Is there anything I'm missing?=C2=A0 Anything that BackupPC is looki= ng for in the msmtp or backuppc config files that I haven't already included?=C2=A0=C2=A0</p> <p>Thanks for any help - I feel I'm missing something obvious...</p> <p>George</p> <p><br> </p> <pre style=3D"white-space: pre-wrap; overflow-wrap: break-word; font-size: 10pt;= color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; f= ont-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans= : 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(25= 5, 255, 255); text-decoration-thickness: initial; text-decoration-style: in= itial; text-decoration-color: initial;"> </pre> <p><br> </p> <p><br> </p> <p><br> </p> <p><br> </p> </body> </html> --------------X0dA8JipN5m3ZvZnQLtykGmj-- --===============0632684364887762645== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============0632684364887762645== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ BackupPC-users mailing list [email protected] List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: https://github.com/backuppc/backuppc/wiki Project: https://backuppc.github.io/backuppc/ --===============0632684364887762645==--