BackupPC-users

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

2010-01-28 09:06:21
Subject: Re: [BackupPC-users] Testing the mail function from BackupPC
From: Pascal Bourdais <pbourdais AT infagri DOT fr>
To: backuppc-users AT lists.sourceforge DOT net
Date: Thu, 28 Jan 2010 14:31:28 +0100
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

> /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
> 


-- 
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 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/