Re: Test email errors

Mike Hughes <[email protected]> Wed, 3 Jun 2026 19:33:07 +0000
Newsgroups gmane.comp.sysutils.backup.backuppc.general
Message-ID <DS7PR19MB5856C5D8B80DB56FDF4E583DD1132@DS7PR19MB5856.namprd19.prod.outlook.com>
--===============3395193065446850966==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_DS7PR19MB5856C5D8B80DB56FDF4E583DD1132DS7PR19MB5856namp_"

--_000_DS7PR19MB5856C5D8B80DB56FDF4E583DD1132DS7PR19MB5856namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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. Wou=
ldn't you need to also create one of those dot files for the backuppc user =
that is calling the BackupPC_sendEmail routine?

________________________________
From: George King <[email protected]>
Sent: Wednesday, June 3, 2026 2:05 PM
To: [email protected] <[email protected].=
net>
Subject: [BackupPC-users] Test email errors


Hello,

I've recently rebuilt and reconfigured my instance of Backuppc following a =
move to new hardware.  All is well except I cannot get the email to work, w=
hich is very frustrating as I did get it working before, albeit 10 years ag=
o...

I have Backuppc 4.4.0 running on Ubuntu 24.04.4 LTS.  From previous experie=
nce, I've installed msmtp as the MTA as I've found the configuration easier=
 than Sendmail.  msmtp works fine when I'm sending it from my normal accoun=
t.  It picks up details from the system config file /etc/msmtprc and my use=
r config file in ~/.msmtprc.

However, when I do

su backuppc
/usr/share/backuppc/bin/BackupPC_sendEmail -u [email protected]<mailto:MY=
[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.  N.B. backuppc is set as ServerHost and B=
ackupPCUser in the BackupPC config.  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.

I have accounts in the /home/george/.msmtprc file for my Ubuntu user accoun=
t "george", "backuppc" and "default" to cover the bases but no joy.  They a=
ll have the same host, from and user details.

I think the permissions are correct:
   root:msmtp for /etc/msmtprc
   george: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 - /etc/apparmor.d/loc=
al/usr.bin.msmtp and it's not listed in the status.

Is there anything I'm missing?  Anything that BackupPC is looking for in th=
e msmtp or backuppc config files that I haven't already included?

Thanks for any help - I feel I'm missing something obvious...

George






--_000_DS7PR19MB5856C5D8B80DB56FDF4E583DD1132DS7PR19MB5856namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div class=3D"elementToProof" style=3D"font-family: Aptos, Aptos_EmbeddedFo=
nt, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 11pt; c=
olor: 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. Wou=
ldn'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, =
Calibri, 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>&nbsp;George King &lt;[email protected]&gt;<br>
<b>Sent:</b>&nbsp;Wednesday, June 3, 2026 2:05 PM<br>
<b>To:</b>&nbsp;[email protected] &lt;BackupPC-users@lis=
ts.sourceforge.net&gt;<br>
<b>Subject:</b>&nbsp;[BackupPC-users] Test email errors</div>
<div style=3D"direction: ltr;">&nbsp;</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.&nbs=
p; All is well except I cannot get the email to work, which is very frustra=
ting 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 run=
ning on Ubuntu 24.04.4 LTS.&nbsp; From previous experience, I've installed =
msmtp as the MTA as I've found the configuration easier than Sendmail.&nbsp=
; msmtp works fine when I'm sending it from
 my normal account.&nbsp; 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&nbsp;<=
/p>
<pre style=3D"background-color: rgb(255, 255, 255);"><div style=3D"text-ali=
gn: left; text-indent: 0px; white-space: pre-wrap; font-size: 10pt; color: =
rgb(0, 0, 0);"><code>su backuppc=0A=
/usr/share/backuppc/bin/BackupPC_sendEmail -u <a href=3D"mailto:MYNAME@MYDO=
MAIN.COM" id=3D"OWAf6407ddb-f715-2787-a964-d9a46f947268" class=3D"x_moz-txt=
-link-abbreviated x_moz-txt-link-freetext OWAAutoLink">[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 r=
eceived.&nbsp; N.B. backuppc is set as ServerHost and BackupPCUser in the B=
ackupPC config.&nbsp; I suppose that is why it is in line 1 of the error me=
ssage, but I'm not sure why it's saying &quot;account
 default not found&quot; because it does.&nbsp; &nbsp;</p>
<p style=3D"margin-top: 1em; margin-bottom: 1em;">I have accounts in the /h=
ome/george/.msmtprc file for my Ubuntu user account &quot;george&quot;, &qu=
ot;backuppc&quot; and &quot;default&quot; to cover the bases but no joy.&nb=
sp; They all have the same host, from and user details.</p>
<p style=3D"margin-top: 1em; margin-bottom: 1em;">I think the permissions a=
re correct:<br>
&nbsp; &nbsp;root:msmtp for /etc/msmtprc<br>
&nbsp; &nbsp;george:msmtp for /home/george/.msmtprc<br>
and chmod 600 for both.</p>
<p style=3D"margin-top: 1em; margin-bottom: 1em;">On BackupPC my SendmailPa=
th is the default /usr/sbin/sendmail&nbsp;<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.&nbsp; &nbsp;</p>
<p style=3D"margin-top: 1em; margin-bottom: 1em;">Is there anything I'm mis=
sing?&nbsp; Anything that BackupPC is looking for in the msmtp or backuppc =
config files that I haven't already included?&nbsp;&nbsp;</p>
<p style=3D"margin-top: 1em; margin-bottom: 1em;">Thanks for any help - I f=
eel 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>
</body>
</html>

--_000_DS7PR19MB5856C5D8B80DB56FDF4E583DD1132DS7PR19MB5856namp_--


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


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

--===============3395193065446850966==--