How can I debug this? It happens when BackupPC_nightly tries to send e-mail at
1:00 am.
The only place I have "John" is in config.pl in: $Conf{RsyncdUserName} =
'John'; but this is the rsyncd authentication user name, and it's not supposed
to interfere with BackupPC_sendEmail?
Note: in BackupPC_sendEmail, I have added "-t" in sub SendMail at line 387,
namely:
if ( !open(MAIL, "|$Conf{SendmailPath} -t $from") ) {
printf("Can't run sendmail ($Conf{SendmailPath}): $!\n");
return;
}
"-t" makes msmtp pick up the destination address from the e-mail headers.
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 sends the e-mail to "[email protected]", which it picked up from the
"To:" header.
+----------------------------------------------------------------------
|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/