From: Sorin S. <sor...@or...> - 2010-01-28 10:18:38
Attachments:
smime.p7s
|
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. root@mach012 ~/ [0]# su backuppc root@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sor...@or... /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]# 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. |
From: Pascal B. <pbo...@in...> - 2010-01-28 11:05:12
|
Le Thu, 28 Jan 2010 11:18:24 +0100, "Sorin Srbu" <sor...@or...> 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. > > root@mach012 ~/ [0]# su backuppc su - backuppc > root@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u sor...@or... > /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]# > > 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 ) |
From: Sorin S. <sor...@or...> - 2010-01-28 11:20:19
Attachments:
smime.p7s
|
>-----Original Message----- >From: Pascal Bourdais [mailto:pbo...@in...] >Sent: Thursday, January 28, 2010 12:04 PM >To: bac...@li... >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 sor...@or... /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]# -- /Sorin |
From: Tony M. <ton...@ul...> - 2010-01-28 12:55:53
|
On Thursday 28 January 2010 11:20:05 Sorin Srbu wrote: > >-----Original Message----- > >From: Pascal Bourdais [mailto:pbo...@in...] > >Sent: Thursday, January 28, 2010 12:04 PM > >To: bac...@li... > >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 You're still root!! > sor...@or... /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 > root@mach012 ~/ [0]# > On my machine [root@shannon ~]# [root@shannon ~]# su - backuppc [backuppc@shannon ~]$ see changed user to backuppc [backuppc@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u molloyt@mail.x.y.z Sending test email using /usr/sbin/sendmail -t -f backuppc [backuppc@shannon ~]$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash [backuppc@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. |
From: Sorin S. <sor...@or...> - 2010-01-28 13:16:59
Attachments:
smime.p7s
|
>-----Original Message----- >From: Tony Molloy [mailto:ton...@ul...] >Sent: Thursday, January 28, 2010 1:56 PM >To: sor...@or...; 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:pbo...@in...] >> >Sent: Thursday, January 28, 2010 12:04 PM >> >To: bac...@li... >> >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 > >You're still root!! > >> sor...@or... /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 >> root@mach012 ~/ [0]# >> > >On my machine > >[root@shannon ~]# >[root@shannon ~]# su - backuppc >[backuppc@shannon ~]$ > >see changed user to backuppc > >[backuppc@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u >molloyt@mail.x.y.z >Sending test email using /usr/sbin/sendmail -t -f backuppc > >[backuppc@shannon ~]$ grep root /etc/passwd >root:x:0:0:root:/root:/bin/bash > >[backuppc@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 |
From: Les M. <les...@gm...> - 2010-01-28 14:00:34
|
Sorin Srbu wrote: > > 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. 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. -- Les Mikesell les...@gm... |
From: Sorin S. <sor...@or...> - 2010-01-28 15:10:30
Attachments:
smime.p7s
|
>-----Original Message----- >From: Les Mikesell [mailto:les...@gm...] >Sent: Thursday, January 28, 2010 2:38 PM >To: sor...@or...; General list for user discussion, questions and >support >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC > >Sorin Srbu wrote: >> >> 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. > >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. -- /Sorin |
From: Sorin S. <sor...@or...> - 2010-01-28 15:17:45
Attachments:
smime.p7s
|
>-----Original Message----- >From: Sorin Srbu [mailto:sor...@or...] >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? root@mach012 ~/ [0]# su -s /bin/bash - backuppc backuppc@mach012 ~/ [0]$ whoami backuppc backuppc@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u sor...@or... Sending test email using /usr/sbin/sendmail -t -f sor...@or... backuppc@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 |
From: Les M. <les...@gm...> - 2010-01-28 16:12:22
|
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? > > root@mach012 ~/ [0]# su -s /bin/bash - backuppc > backuppc@mach012 ~/ [0]$ whoami > backuppc > backuppc@mach012 ~/ [0]$ /usr/bin/BackupPC_sendEmail -u > sor...@or... > Sending test email using /usr/sbin/sendmail -t -f sor...@or... > backuppc@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 les...@gm... |
From: Tony M. <ton...@ul...> - 2010-01-28 14:37:47
|
On Thursday 28 January 2010 13:16:41 Sorin Srbu wrote: > >-----Original Message----- > >From: Tony Molloy [mailto:ton...@ul...] > >Sent: Thursday, January 28, 2010 1:56 PM > >To: sor...@or...; 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:pbo...@in...] > >> >Sent: Thursday, January 28, 2010 12:04 PM > >> >To: bac...@li... > >> >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 > > > >You're still root!! > > > >> sor...@or... /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 > >> root@mach012 ~/ [0]# > > > >On my machine > > > >[root@shannon ~]# > >[root@shannon ~]# su - backuppc > >[backuppc@shannon ~]$ > > > >see changed user to backuppc > > > >[backuppc@shannon ~]$ /usr/local/BackupPC/bin/BackupPC_sendEmail -u > >molloyt@mail.x.y.z > >Sending test email using /usr/sbin/sendmail -t -f backuppc > > > >[backuppc@shannon ~]$ grep root /etc/passwd > >root:x:0:0:root:/root:/bin/bash > > > >[backuppc@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. |
From: Tony M. <ton...@ul...> - 2010-01-28 11:16:41
|
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. > > root@mach012 ~/ [0]# su backuppc Try su - backuppc to get backuppc's environment. Tony > root@mach012 ~/ [0]# /usr/bin/BackupPC_sendEmail -u > sor...@or... /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]# > > Thanks for any help or explanations. > -- Chief Technical Officer. Tel: +353 061-202778 Dept. of Comp. Sci. University of Limerick. |
From: Les M. <les...@gm...> - 2010-01-28 16:23:35
|
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. >> >> root@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 les...@gm... |
From: Sorin S. <sor...@or...> - 2010-01-28 13:16:57
Attachments:
smime.p7s
|
>-----Original Message----- >From: Sorin Srbu [mailto:sor...@or...] >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:pbo...@in...] >>Sent: Thursday, January 28, 2010 12:04 PM >>To: bac...@li... >>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 sor...@or... >/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 sor...@or... Sending test email using /bin/mail -t -f sor...@or... /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 -- /Sorin |
From: Pascal B. <pbo...@in...> - 2010-01-28 14:04:11
|
Le Thu, 28 Jan 2010 13:37:27 +0100, "Sorin Srbu" <sor...@or...> a écrit : > >-----Original Message----- > >From: Sorin Srbu [mailto:sor...@or...] > >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:pbo...@in...] > >>Sent: Thursday, January 28, 2010 12:04 PM > >>To: bac...@li... > >>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 sor...@or... > >/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 > sor...@or... > Sending test email using /bin/mail -t -f sor...@or... 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 ) |
From: Tony M. <ton...@ul...> - 2010-01-28 14:45:00
|
On Thursday 28 January 2010 13:31:28 Pascal Bourdais wrote: > Le Thu, 28 Jan 2010 13:37:27 +0100, > > "Sorin Srbu" <sor...@or...> a écrit : > > >-----Original Message----- > > >From: Sorin Srbu [mailto:sor...@or...] > > >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:pbo...@in...] > > >>Sent: Thursday, January 28, 2010 12:04 PM > > >>To: bac...@li... > > >>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 > > > sor...@or... /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 > > sor...@or... > > Sending test email using /bin/mail -t -f sor...@or... > > 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. |
From: Sorin S. <sor...@or...> - 2010-01-28 15:28:52
Attachments:
smime.p7s
|
>-----Original Message----- >From: Sorin Srbu [mailto:sor...@or...] >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 |
From: Tony M. <ton...@ul...> - 2010-01-28 17:36:49
|
On Thursday 28 January 2010 15:28:38 Sorin Srbu wrote: > >-----Original Message----- > >From: Sorin Srbu [mailto:sor...@or...] > >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-submissio > n -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! > Just to finish off this thread I've just done an install of backuppc onto a Centos-5.4 server. The rpms came from the epel repo. Sure enough the backuppc account is nologin backuppc:x:101:105::/var/lib/BackupPC:/sbin/nologin but the path to the mail command is sendmail $Conf{SendmailPath} = '/usr/sbin/sendmail'; Now I'll use the wiki article to try and configure it tomorrow and let you know how I get on. If I remember there were problems with SELinux using that article that's why I installed my working server from source. Regards, Tony -- Chief Technical Officer. Tel: +353 061-202778 Dept. of Comp. Sci. University of Limerick. |
From: Sorin S. <sor...@or...> - 2010-02-01 08:17:56
Attachments:
smime.p7s
|
>-----Original Message----- >From: Tony Molloy [mailto:ton...@ul...] >Sent: Thursday, January 28, 2010 6:37 PM >To: sor...@or...; General list for user discussion, questions and >support >Subject: Re: [BackupPC-users] Testing the mail function from BackupPC > >[...] > >Just to finish off this thread I've just done an install of backuppc onto a >Centos-5.4 server. > >The rpms came from the epel repo. >Sure enough the backuppc account is nologin > > backuppc:x:101:105::/var/lib/BackupPC:/sbin/nologin > >but the path to the mail command is sendmail > > $Conf{SendmailPath} = '/usr/sbin/sendmail'; Strange that it should be set to /usr/bin/mail on my CentOS-install. Oh, well, as long as it works... 8-/ >Now I'll use the wiki article to try and configure it tomorrow and let you know >how I get on. If I remember there were problems with SELinux using that >article that's why I installed my working server from source. Sure thing! Again, thanks *all* for the support in setting this up! -- /Sorin |