BackupPC-users

Re: [BackupPC-users] Testing the mail function from BackupPC

2010-01-28 09:46:36
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
From: Tony Molloy <tony.molloy AT ul DOT ie>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 28 Jan 2010 14:44:38 +0000
On Thursday 28 January 2010 13:31:28 Pascal Bourdais wrote:
> Le Thu, 28 Jan 2010 13:37:27 +0100,
> 
> "Sorin Srbu" <sorin.srbu AT orgfarm.uu DOT se> a écrit :
> > >-----Original Message-----
> > >From: Sorin Srbu [mailto:sorin.srbu AT orgfarm.uu DOT se]
> > >Sent: Thursday, January 28, 2010 12:20 PM
> > >To: 'General list for user discussion, questions and support'
> > >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> > >
> > >>-----Original Message-----
> > >>From: Pascal Bourdais [mailto:pbourdais AT infagri DOT fr]
> > >>Sent: Thursday, January 28, 2010 12:04 PM
> > >>To: backuppc-users AT lists.sourceforge DOT net
> > >>Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> > >>
> > >>su - backuppc
> > >
> > >Already tried that, same thing happens:
> > >
> > >root@mach012 ~/ [0]# su - backuppc
> > >root@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u
> > > sorin.srbu AT orgfarm.uu DOT se /usr/bin/BackupPC_sendEmail: Wrong user: 
> > > my
> > > userid is 0, instead of 150 (backuppc)
> > >Please su backuppc first
> > >BackupPC::Lib->new failed
> > >root@mach012 ~/ [0]#
> >
> > Did some thinking and got it working, sort of...
> >
> > root@mach012 ~/ [0]# su -s /bin/bash - backuppc
> > backuppc@mach012 ~/ [0]$ whoami
> > backuppc
> > backuppc@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u
> > sorin.srbu AT orgfarm.uu DOT se
> > Sending test email using /bin/mail -t -f sorin.srbu AT orgfarm.uu DOT se
> 
> You have to use sendmail, and not mail. In my config :
> $Conf{SendmailPath} = '/usr/sbin/sendmail'
> 
> And sendmail :
> /usr/sbin/sendmail -> /usr/local/exim/bin/exim
> 

In my config file it's also sendmail. I wonder what distro the OP uses

Tony


> > /bin/mail: invalid option -- t
> > Usage: mail [-iInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...
> >             [-- sendmail-options ...]
> >        mail [-iInNv] -f [name]
> >        mail [-iInNv] [-u user]
> > backuppc@mach012 ~/ [0]$
> >
> > Now what? I don't see any "t" mentioned in man mail... Or am I getting
> > slightly blind here? 8-S
> 

-- 

Chief Technical Officer.                   Tel: +353 061-202778
Dept. of Comp. Sci.
University of Limerick.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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/