[BackupPC-users] BPCNightly- BPCsendEmail- "recipient address not accept
2011-11-06 14:21:10
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: user_to AT domain1 DOT com
From: user_from AT domain2 DOT com
Subject: Mail test
This is a message
EOF
msmtp sends the e-mail to "user_to AT domain1 DOT com", which it picked up from
the "To:" header.
+----------------------------------------------------------------------
|This was sent by gh0988 AT hotmail DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|