Re: Test email errors

George King <[email protected]> Thu, 4 Jun 2026 12:50:56 +0100
Newsgroups gmane.comp.sysutils.backup.backuppc.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5385333934226018471==
Content-Type: multipart/alternative;
 boundary="------------8qur8k3ohvd7aMXTJk0tKp0m"
Content-Language: en-GB

This is a multi-part message in MIME format.
--------------8qur8k3ohvd7aMXTJk0tKp0m
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Thanks Mike,

Good point!=C2=A0 However, I've tried that this morning and replicated=20
~/.msmtprc to /home/backuppc/.msmtprc but unfortunately I'm getting the=20
same error message.=C2=A0 Permissions are backuppc:msmtp and chmod 600.=C2=A0=
 Not=20
sure what to try next, or instead but suggestions would be welcomed.

George

On 03/06/2026 20:33, Mike Hughes wrote:
> Hi George. I think you're missing a tiny important thing. You mention=20
> when you send a test email as george that msmtp reads your local=20
> ~/.msmtprc. Wouldn't you need to also create one of those dot files=20
> for the backuppc user that is calling the BackupPC_sendEmail routine?
>
> ------------------------------------------------------------------------
> *From:*=C2=A0George King <[email protected]>
> *Sent:*=C2=A0Wednesday, June 3, 2026 2:05 PM
> *To:* [email protected]=20
> <[email protected]>
> *Subject:*=C2=A0[BackupPC-users] Test email errors
>
> Hello,
>
> I've recently rebuilt and reconfigured my instance of Backuppc=20
> following a move to new hardware.=C2=A0 All is well except I cannot get t=
he=20
> email to work, which is very frustrating as I did get it working=20
> before, albeit 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 sendi=
ng=20
> it from my normal account.=C2=A0 It picks up details from the system conf=
ig=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] <mailto:[email protected]>|
>
> as per the documentation, and substituting my email address, I get the=20
> error
>
> 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 ServerHos=
t=20
> and BackupPCUser in the BackupPC config.=C2=A0 I suppose that is why it i=
s=20
> in line 1 of the error message, but I'm not sure why it's saying=20
> "account 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 fo=
r=20
> in the msmtp or backuppc config files that I haven't already included?
>
> Thanks for any help - I feel I'm missing something obvious...
>
> George
>
>
>
>
>
>=

--------------8qur8k3ohvd7aMXTJk0tKp0m
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>Thanks Mike,</p>
    <p>Good point!=C2=A0 However, I've tried that this morning and replicat=
ed
      ~/.msmtprc to /home/backuppc/.msmtprc but unfortunately I'm
      getting the same error message.=C2=A0 Permissions are backuppc:msmtp
      and chmod 600.=C2=A0 Not sure what to try next, or instead but
      suggestions would be welcomed.</p>
    <p>George</p>
    <div class=3D"moz-cite-prefix">On 03/06/2026 20:33, Mike Hughes wrote:<=
br>
    </div>
    <blockquote type=3D"cite"
cite=3D"mid:[email protected]=
rod.outlook.com">
      <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
      <style type=3D"text/css" style=3D"display:none;">@scope { P {margin-t=
op:0;margin-bottom:0;} }</style>
      <div class=3D"elementToProof"
style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calib=
ri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
        Hi George. I think you're missing a tiny important thing. You
        mention when you send a test email as george that msmtp reads
        your local ~/.msmtprc. Wouldn't you need to also create one of
        those dot files for the backuppc user that is calling the
        BackupPC_sendEmail routine?</div>
      <div
style=3D"font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calib=
ri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <hr style=3D"display: inline-block; width: 98%;">
      <div id=3D"divRplyFwdMsg">
        <div
style=3D"direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt;=
 color: rgb(0, 0, 0);">
          <b>From:</b>=C2=A0George King <a class=3D"moz-txt-link-rfc2396E" =
href=3D"mailto:[email protected]">&lt;[email protected]&gt;</=
a><br>
          <b>Sent:</b>=C2=A0Wednesday, June 3, 2026 2:05 PM<br>
          <b>To:</b>=C2=A0<a class=3D"moz-txt-link-abbreviated" href=3D"mai=
lto:[email protected]">[email protected].=
net</a>
          <a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:BackupPC-users@=
lists.sourceforge.net">&lt;[email protected]&gt;</a><br>
          <b>Subject:</b>=C2=A0[BackupPC-users] Test email errors</div>
        <div style=3D"direction: ltr;">=C2=A0</div>
      </div>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">Hello,</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">I've recently
        rebuilt and reconfigured my instance of Backuppc following a
        move to new hardware.=C2=A0 All is well except I cannot get the ema=
il
        to work, which is very frustrating as I did get it working
        before, albeit 10 years ago...</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">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 fr=
om
        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 style=3D"margin-top: 1em; margin-bottom: 1em;">However, when I
        do=C2=A0</p>
      <pre style=3D"background-color: rgb(255, 255, 255);"><div
style=3D"text-align: left; text-indent: 0px; white-space: pre-wrap; font-si=
ze: 10pt; color: rgb(0, 0, 0);"><code>su backuppc
/usr/share/backuppc/bin/BackupPC_sendEmail -u <a
      href=3D"mailto:[email protected]"
      id=3D"OWAf6407ddb-f715-2787-a964-d9a46f947268"
class=3D"x_moz-txt-link-abbreviated x_moz-txt-link-freetext OWAAutoLink moz=
-txt-link-freetext"
      moz-do-not-send=3D"true">[email protected]</a></code></div></pre>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">as per the
        documentation, and substituting my email address, I get the
        error</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">Sending test email
        using /usr/sbin/sendmail -t -f backuppc<br>
        sendmail: account default not found: no configuration file
        available</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">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 style=3D"margin-top: 1em; margin-bottom: 1em;">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 style=3D"margin-top: 1em; margin-bottom: 1em;">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 style=3D"margin-top: 1em; margin-bottom: 1em;">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 style=3D"margin-top: 1em; margin-bottom: 1em;">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 style=3D"margin-top: 1em; margin-bottom: 1em;">Is there anything
        I'm missing?=C2=A0 Anything that BackupPC is looking for in the msm=
tp
        or backuppc config files that I haven't already included?=C2=A0=C2=A0=
</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">Thanks for any
        help - I feel I'm missing something obvious...</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;">George</p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;"><br>
      </p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;"><br>
      </p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;"><br>
      </p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;"><br>
      </p>
      <p style=3D"margin-top: 1em; margin-bottom: 1em;"><br>
      </p>
    </blockquote>
  </body>
</html>

--------------8qur8k3ohvd7aMXTJk0tKp0m--



--===============5385333934226018471==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============5385333934226018471==
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/

--===============5385333934226018471==--