I got this to start sending messages by modifying BackupPC_sendEmail. 
Subroutine SendMail had a line  "print MAIL -t $mesg;"
I removed the "-t" and it started working.  In theory, it should not be able to find the recipients without this, but it seems to work the other way around.
I will post a follow-up if I find there is anything that doesn't work because of this.


Loyd Darby wrote:
BackupPC_sendEmail fails when run manually as user backuppc.
  
backuppc$ ./BackupPC_sendEmail
sendmail: fatal: No recipient addresses found in message header
    
Seems to work fine with -t
  
backuppc$ ./BackupPC_sendEmail -t
###########################################################################
To: [EMAIL PROTECTED]
Subject: BackupPC administrative attention needed

The following hosts had an error that is probably caused by a
misconfiguration.  Please fix these hosts:
  - localhost (No files dumped for share /etc)

The following directories are bogus and are not being used by
BackupPC.  This typically happens when PCs are removed from the
backup list.  If you don't need any old backups from these PCs you
should remove these directories.  If there are machines on this
list that should be backed up then there is a problem with the
hosts file:
  - /var/lib/backuppc/pc/tbrainerd-xp

Regards,
PC Backup Genie
    
I can paste the output of the above command directly into sendmail and 
it goes through no problem. 

backuppc$ /usr/sbin/sendmail -t
To: [EMAIL PROTECTED]
Subject: BackupPC administrative attention needed

The following hosts had an error that is probably caused by a
misconfiguration.  Please fix these hosts:
  - localhost (No files dumped for share /etc)

The following directories are bogus and are not being used by
BackupPC.  This typically happens when PCs are removed from the
backup list.  If you don't need any old backups from these PCs you
should remove these directories.  If there are machines on this
list that should be backed up then there is a problem with the
hosts file:
  - /var/lib/backuppc/pc/tbrainerd-xp

Regards,
PC Backup Genie
^d
backuppc$



  

-- 
R. Loyd Darby
Project Manager DOC/NOAA/NMFS
Southeast Fisheries Science Center
305-361-4297
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to