[BackupPC-users] Testing the mail function from BackupPC
Hi all, I wanted to test the mail function with BackupPC as described on http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_email_delivery, but got the below error message. I installed BackupPC according to the CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC. Could anyone offer any insights on this? I though the backuppc-account was a nologin (or some such) account, thus a su isn't possible. 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]# Thanks for any help or explanations. -- BW, Sorin --- # Sorin Srbu[Sysadmin, Systems Engineer] # Dept of Medicinal Chemistry, Phone: +46 (0)18-4714482 3 signals GSM # Div of Org Pharm Chem,Mobile: +46 (0)701-718023 # Box 574, Uppsala University, Fax: +46 (0)18-4714482 # SE-751 23 Uppsala, Sweden Visit: BMC, Husargatan 3, D5:512b # Web: http://www.orgfarm.uu.se --- # () ASCII ribbon campaign - Against html E-mail # /\ # # MotD follows: # Evolution is a harsh mistress. smime.p7s Description: S/MIME cryptographic signature -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
Le Thu, 28 Jan 2010 11:18:24 +0100, Sorin Srbu sorin.s...@orgfarm.uu.se a écrit : Hi, I wanted to test the mail function with BackupPC as described on http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_email_delivery, but got the below error message. I installed BackupPC according to the CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC. Could anyone offer any insights on this? I though the backuppc-account was a nologin (or some such) account, thus a su isn't possible. r...@mach012 ~/ [0]# su backuppc 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]# Thanks for any help or explanations. -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
On Thursday 28 January 2010 10:18:24 Sorin Srbu wrote: Hi all, I wanted to test the mail function with BackupPC as described on http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_em ail_delivery, but got the below error message. I installed BackupPC according to the CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC. Could anyone offer any insights on this? I though the backuppc-account was a nologin (or some such) account, thus a su isn't possible. r...@mach012 ~/ [0]# su backuppc Try su - backuppc to get backuppc's environment. Tony 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]# Thanks for any help or explanations. -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Testing the mail function from BackupPC
On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote: -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 You're still root!! sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150 (backuppc) ^^ definately still root Please su backuppc first BackupPC::Lib-new failed r...@mach012 ~/ [0]# On my machine [r...@shannon ~]# [r...@shannon ~]# su - backuppc [backu...@shannon ~]$ see changed user to backuppc [backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u moll...@mail.x.y.z Sending test email using /usr/sbin/sendmail -t -f backuppc [backu...@shannon ~]$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash [backu...@shannon ~]$ grep backuppc /etc/passwd backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash I suspect your backuppc user is not set up correctly. In my case it's got a uid of 490 and is a login account Tony -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Testing the mail function from BackupPC
-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 /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 -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
-Original Message- From: Tony Molloy [mailto:tony.mol...@ul.ie] Sent: Thursday, January 28, 2010 1:56 PM To: sorin.s...@orgfarm.uu.se; General list for user discussion, questions and support Subject: Re: [BackupPC-users] Testing the mail function from BackupPC On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote: -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 You're still root!! sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150 (backuppc) ^^ definately still root Please su backuppc first BackupPC::Lib-new failed r...@mach012 ~/ [0]# On my machine [r...@shannon ~]# [r...@shannon ~]# su - backuppc [backu...@shannon ~]$ see changed user to backuppc [backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u moll...@mail.x.y.z Sending test email using /usr/sbin/sendmail -t -f backuppc [backu...@shannon ~]$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash [backu...@shannon ~]$ grep backuppc /etc/passwd backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash I suspect your backuppc user is not set up correctly. In my case it's got a uid of 490 and is a login account The BackupPC installer sets the backuppc account up with nologin (no GUI login). In /etc/passwd the shell is /bin/false, so no GUI login allowed, but it should allow one to su in as backuppc. I solved that by adding the -s /bin/bash, as per the previous post. Now I can su properly to backuppc. The problem *now* is that /bin/mail doesn't understand the -t switch. As I mentioned, I can't find anything about this t parameter in man mail, but in the /usr/bin/BackupPC_SendEmail script the t parameter is mentioned as something that -t display the emails that would be sent, without sending them. To me this is rather cryptic, and I don't quite understand the why's, what's and where's of this alluring -t and how I fix this. Grateful for any help! Thanks. -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
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/
Re: [BackupPC-users] Testing the mail function from BackupPC
On Thursday 28 January 2010 13:16:41 Sorin Srbu wrote: -Original Message- From: Tony Molloy [mailto:tony.mol...@ul.ie] Sent: Thursday, January 28, 2010 1:56 PM To: sorin.s...@orgfarm.uu.se; General list for user discussion, questions and support Subject: Re: [BackupPC-users] Testing the mail function from BackupPC On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote: -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 You're still root!! sorin.s...@orgfarm.uu.se /usr/bin/BackupPC_sendEmail: Wrong user: my userid is 0, instead of 150 (backuppc) ^^ definately still root Please su backuppc first BackupPC::Lib-new failed r...@mach012 ~/ [0]# On my machine [r...@shannon ~]# [r...@shannon ~]# su - backuppc [backu...@shannon ~]$ see changed user to backuppc [backu...@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u moll...@mail.x.y.z Sending test email using /usr/sbin/sendmail -t -f backuppc [backu...@shannon ~]$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash [backu...@shannon ~]$ grep backuppc /etc/passwd backuppc:x:490:490: BackupPC User :/home/backuppc:/bin/bash I suspect your backuppc user is not set up correctly. In my case it's got a uid of 490 and is a login account The BackupPC installer sets the backuppc account up with nologin (no GUI login). In /etc/passwd the shell is /bin/false, so no GUI login allowed, but it should allow one to su in as backuppc. I solved that by adding the -s /bin/bash, as per the previous post. Now I can su properly to backuppc. The problem *now* is that /bin/mail doesn't understand the -t switch. As I mentioned, I can't find anything about this t parameter in man mail, but in the /usr/bin/BackupPC_SendEmail script the t parameter is mentioned as something that -t display the emails that would be sent, without sending them. To me this is rather cryptic, and I don't quite understand the why's, what's and where's of this alluring -t and how I fix this. Grateful for any help! Thanks. Ok I run backuppc on CentOS and man mail says ~tname ... Add the given names to the direct recipient list. So I'd just remove the -t and see what happens. Hope this helps, Tony -- 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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Testing the mail function from BackupPC
On Thursday 28 January 2010 13:31:28 Pascal Bourdais wrote: 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 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] backu...@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@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Testing the mail function from BackupPC
-Original Message- From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se] Sent: Thursday, January 28, 2010 4:10 PM To: 'General list for user discussion, questions and support' Subject: RE: [BackupPC-users] Testing the mail function from BackupPC Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail? -t is a flag to sendmail that says the To:/From: headers are already in the input. I didn't change those paths, it's a plain vanilla install really. With that said, /usr/bin/mail is the preset value. Ok, I'll try sendmail instead then. Thanks! @Tony Molloy: I run BackupPC on CentOS 5.4 and used the howto available at http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of sendmail in that howto. Changed the path and now I don't get any error message any longer. Can't tell for sure if works or not though. Am I supposed to get the testmail in the inbox for the mail address listed below? 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 /usr/sbin/sendmail -t -f sorin.s...@orgfarm.uu.se backu...@mach012 ~/ [0]$ This is getting tedious. I hope you guys don't mind my ranting back and forth... 8-} Thanks all for now, I'm pretty sure I'll be back soon again with something else I need help with. -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
-Original Message- From: Sorin Srbu [mailto:sorin.s...@orgfarm.uu.se] Sent: Thursday, January 28, 2010 4:18 PM To: 'General list for user discussion, questions and support' Subject: Re: [BackupPC-users] Testing the mail function from BackupPC Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail? -t is a flag to sendmail that says the To:/From: headers are already in the input. I didn't change those paths, it's a plain vanilla install really. With that said, /usr/bin/mail is the preset value. Ok, I'll try sendmail instead then. Thanks! @Tony Molloy: I run BackupPC on CentOS 5.4 and used the howto available at http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of sendmail in that howto. Changed the path and now I don't get any error message any longer. Can't tell for sure if works or not though. Am I supposed to get the testmail in the inbox for the mail address listed below? Right now I feel rather like a dunce. I didn't configure sendmail... The below link helped though. Once I setup the smtp address, the test mail dropped in. http://www.cyberciti.biz/faq/linux-configure-sendmail-as-outbound-submission -mta/ To my defense I must say, I've never dealt with sendmail before... This is a first. 8-} Anyway, seems like all (most visible things anyway) are in working order now. Thanks all for your help and suggestions, you've been stellar so far! -- /Sorin smime.p7s Description: S/MIME cryptographic signature -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
On 1/28/2010 9:17 AM, Sorin Srbu wrote: Did you perhaps set SendmailPath to mail instead of /usr/sbin/sendmail? -t is a flag to sendmail that says the To:/From: headers are already in the input. I didn't change those paths, it's a plain vanilla install really. With that said, /usr/bin/mail is the preset value. I'd report that as a bug to the packager. Ok, I'll try sendmail instead then. Thanks! @Tony Molloy: I run BackupPC on CentOS 5.4 and used the howto available at http://wiki.centos.org/HowTos/BackupPC for setting this up. No mention of sendmail in that howto. Changed the path and now I don't get any error message any longer. Can't tell for sure if works or not though. Am I supposed to get the testmail in the inbox for the mail address listed below? 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 /usr/sbin/sendmail -t -f sorin.s...@orgfarm.uu.se backu...@mach012 ~/ [0]$ This is getting tedious. I hope you guys don't mind my ranting back and forth... 8-} Thanks all for now, I'm pretty sure I'll be back soon again with something else I need help with. Sendmail should work for _sending_ mail (but not receiving remotely) out of the box on a Centos install if your DNS works and you have direct outbound access. If you have to relay through another host to get out, set SMART_HOST in sendmail.mc and restart sendmail. If you have to deliver local mail to another server, set MAIL_HUB in sendmail.mc. If you don't have a DNS-resolvable hostname, you will have to also set MASQUERADE_AS in sendmail.mc to get most other machines to accept the mail. You can look at /var/log/maillog to see where things are going. -- Les Mikesell lesmikes...@gmail.com -- 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/
Re: [BackupPC-users] Testing the mail function from BackupPC
On 1/28/2010 5:01 AM, Tony Molloy wrote: I wanted to test the mail function with BackupPC as described on http://webserveraddress/backuppc/html/doc/BackupPC.html#step_8__checking_em ail_delivery, but got the below error message. I installed BackupPC according to the CentOS-BackupPC wiki at http://wiki.centos.org/HowTos/BackupPC. Could anyone offer any insights on this? I though the backuppc-account was a nologin (or some such) account, thus a su isn't possible. r...@mach012 ~/ [0]# su backuppc Try su - backuppc to get backuppc's environment. The problem here is that the backuppc user added by the rpm package doesn't have a shell in the /etc/passwd file (which you need for this sort of testing and testing the ssh keys). Either fix this and be done with it or use 'su -s /bin/bash backuppc' every time. -- Les Mikesell lesmikes...@gmail.com -- 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/