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, which is very frustrating as I did get it working before, albeit
10 years ago...
I have Backuppc 4.4.0 running on Ubuntu 24.04.4 LTS. From previous
experience, 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 account. It picks up details from the system config
file /etc/msmtprc and my user config file in ~/.msmtprc.
However, when I do
|su backuppc /usr/share/backuppc/bin/BackupPC_sendEmail -u
[email protected]|
as per the documentation, and substituting my email address, I get the 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. N.B. backuppc is set as ServerHost
and BackupPCUser 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
account "george", "backuppc" and "default" to cover the bases but no
joy. They all 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/local/usr.bin.msmtp and it's not listed in the status.
Is there anything I'm missing? Anything that BackupPC is looking for 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
_______________________________________________
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/