I can't find what's causing the error.
It's the message that BackupPC_nightly is trying to send at 1:00 am.
The msmtprc configuration file does not have user: "John". The only place I
have "John" is in config.pl, at: $Conf{RsyncdUserName} = 'John';
Also, I have changed in BackupPC_sendEmail, in line 387:
if ( !open(MAIL, "|$Conf{SendmailPath} -t $from") ) {
printf("Can't run sendmail ($Conf{SendmailPath}): $!\n");
return;
}
I have added: "-t" since "msmtp -t" picks up the destination address from the
e-mail "To:" header.
How can I debug this?
Note that this works fine:
/ # msmtp -d -t < /mnt/HD_a2/Temp/mailfile
Where mailfile is:
To: [email protected]
From: [email protected]
Subject: Mail test
This is a message
EOF
msmtp picks up the destination address from the "To:" header, and sends the
message to:
[email protected]
+----------------------------------------------------------------------
|This was sent by [email protected] via Backup Central.
|Forward SPAM to [email protected].
+----------------------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/