Le Thu, 28 Jan 2010 13:37:27 +0100,
"Sorin Srbu" <sorin.s...@orgfarm.uu.se> a écrit :

> >-----Original Message-----
> >From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.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:pbourd...@infagri.fr]
> >>Sent: Thursday, January 28, 2010 12:04 PM
> >>To: backuppc-users@lists.sourceforge.net
> >>Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
> >>
> >>su - backuppc
> >
> >Already tried that, same thing happens:
> >
> >r...@mach012 ~/ [0]# su - backuppc
> >r...@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sorin.s...@orgfarm.uu.se
> >/usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150
> >(backuppc)
> >Please su backuppc first
> >BackupPC::Lib->new failed
> >r...@mach012 ~/ [0]#
> 
> 
> Did some thinking and got it working, sort of...
> 
> r...@mach012 ~/ [0]# su -s /bin/bash - backuppc
> backu...@mach012 ~/ [0]$ whoami
> backuppc
> backu...@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u 
> sorin.s...@orgfarm.uu.se
> Sending test email using /bin/mail -t -f sorin.s...@orgfarm.uu.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

> /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]
> backu...@mach012 ~/ [0]$
> 
> Now what? I don't see any "t" mentioned in man mail... Or am I getting 
> slightly blind here? 8-S
> 


-- 
P.Bourdais
Gie Infagri
Rue Albert Einstein
Parc Technopole de changé
53061 Laval Cedex 9
Tél: 02.43.49.84.40
« Celui qui est prêt à sacrifier un peu de liberté pour obtenir un peu
de sécurité ne mérite vraiment ni l'une, ni l'autre. » ( Benjamin
Franklin )

------------------------------------------------------------------------------
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@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to