RE: Help for beginner

2006-07-27 Thread Cabell, Dale
How do I get cron to look at my cron scripts in cron.daily or hourly for
that matter? I can execute the script manually (e.g. ./). I did a chmod
755 on the file. Do I need to do a 777?

Thanks,
Dale Cabell
[EMAIL PROTECTED]

-Original Message-
From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 10:47 AM
To: users@spamassassin.apache.org
Subject: Re: Help for beginner

On Tue, Jul 25, 2006 at 10:38:14AM -0700, Cabell, Dale wrote:
 How do I tell if the version I have was installed using yum, Make,
etc?

You can probably figure out if it's a package or not.  rpm -q
spamassassin ?

 Where can I get a precompiled version? The tar file seems to be the
only
 available download.

There's no official compiled or packaged version.  Different distros
have it
available, and there's probably others out there that have it.

Is there a reason you don't make your own package?

rpmbuild -tb Mail-SpamAssassin-...

 How do I tell where the functionality, which is now in additional
 plugins was previously? I need to make sure the configuration stays
the
 same after upgrading.

Read the UPGRADE doc, do testing before the install, etc.  Generally
speaking,
the plugins work the same way as before, so just make sure that you have
enabled the ones you want, and disable the ones you don't want.

-- 
Randomly Generated Tagline:
Hoping the problem magically goes away by ignoring it is the 'Microsoft
 approach to programming' and should never be allowed.  - Linus
Torvalds


Re: Help for beginner

2006-07-27 Thread Theo Van Dinter
On Thu, Jul 27, 2006 at 01:31:48PM -0700, Cabell, Dale wrote:
 How do I get cron to look at my cron scripts in cron.daily or hourly for
 that matter? I can execute the script manually (e.g. ./). I did a chmod
 755 on the file. Do I need to do a 777?

By default, they're probably already setup.  /etc/crontab usually points
at them.  In general, don't make files world writable unless you know
you have to.

FWIW, I would suggest reading up on system administration tasks in Linux.
It would help with the types of issues you've been asking about, where
this isn't really the right place to discuss them.

-- 
Randomly Generated Tagline:
Oooh ... maca-ma-damia nuts.
 
-- Homer Simpson
   Bart's Dog Gets an F


pgphAj2OSno7l.pgp
Description: PGP signature


RE: Help for beginner

2006-07-27 Thread Cabell, Dale
Cron is running and it does not appear to execute the commands in the
directories.

Dale

-Original Message-
From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:42 PM
To: users@spamassassin.apache.org
Subject: Re: Help for beginner

On Thu, Jul 27, 2006 at 01:31:48PM -0700, Cabell, Dale wrote:
 How do I get cron to look at my cron scripts in cron.daily or hourly
for
 that matter? I can execute the script manually (e.g. ./). I did a
chmod
 755 on the file. Do I need to do a 777?

By default, they're probably already setup.  /etc/crontab usually points
at them.  In general, don't make files world writable unless you know
you have to.

FWIW, I would suggest reading up on system administration tasks in
Linux.
It would help with the types of issues you've been asking about, where
this isn't really the right place to discuss them.

-- 
Randomly Generated Tagline:
Oooh ... maca-ma-damia nuts.
 
-- Homer Simpson
   Bart's Dog Gets an F


RE: Help for beginner

2006-07-27 Thread Logan Shaw

On Thu, 27 Jul 2006, Cabell, Dale wrote:

How do I get cron to look at my cron scripts in cron.daily or hourly for
that matter? I can execute the script manually (e.g. ./). I did a chmod
755 on the file. Do I need to do a 777?


The difference between 777 and 755 is that 777 would add the
2 bit (write access) for group members and others.  Since
you're not trying to write to the script, that won't help.
Incidentally, I advise using the symbolic chmod notation until
you know the octal stuff off the top of your head.  To me,
it's much easier to remember that

chmod u=rwx,go=rx foo

makes foo readable, writable, and executable by the user,
and only readable and executable by group and other than
it is to remember that 755 means the same thing.  755
does, however, have the advantage that it's quicker to type.

Anyway, a mildly strange thing about Linux is that it turns out
that the scripts in /etc/cron.daily aren't run by cron at all.
Instead, they're run by a command called run-parts.  All this
command does is look in a directory, then run every script it
finds there.  This turns out to be handy for scheduling stuff
with cron because your nightly maintenance crud can have just
one cron entry, and then the jobs proceed in an orderly fashion,
one after another.

So, to get cron to run everything in /etc/cron.daily, you need
to add something like this to the crontab (using crontab -e
to make changes to root's crontab):

5 3 * * * run-parts /etc/cron.daily

Hope that helps.

  - Logan


Re: Help for beginner

2006-07-27 Thread Logan Shaw

On Thu, 27 Jul 2006, Theo Van Dinter wrote:

By default, they're probably already setup.  /etc/crontab usually points
at them.


What's an /etc/crontab?  I've never seen one of those before.


In general, don't make files world writable unless you know
you have to.


Agreed.

  - Logan


RE: Help for beginner

2006-07-27 Thread Cabell, Dale
For course there is no run-pats in the manual...

Dale

-Original Message-
From: Cabell, Dale [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:57 PM
To: Logan Shaw; users@spamassassin.apache.org
Subject: RE: Help for beginner

Is this to run at 3:05am everyday?

Also, run-parts is not running does it wake up somehow?

Dale

-Original Message-
From: Logan Shaw [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 1:47 PM
To: users@spamassassin.apache.org
Subject: RE: Help for beginner

On Thu, 27 Jul 2006, Cabell, Dale wrote:
 How do I get cron to look at my cron scripts in cron.daily or hourly
for
 that matter? I can execute the script manually (e.g. ./). I did a
chmod
 755 on the file. Do I need to do a 777?

The difference between 777 and 755 is that 777 would add the
2 bit (write access) for group members and others.  Since
you're not trying to write to the script, that won't help.
Incidentally, I advise using the symbolic chmod notation until
you know the octal stuff off the top of your head.  To me,
it's much easier to remember that

 chmod u=rwx,go=rx foo

makes foo readable, writable, and executable by the user,
and only readable and executable by group and other than
it is to remember that 755 means the same thing.  755
does, however, have the advantage that it's quicker to type.

Anyway, a mildly strange thing about Linux is that it turns out
that the scripts in /etc/cron.daily aren't run by cron at all.
Instead, they're run by a command called run-parts.  All this
command does is look in a directory, then run every script it
finds there.  This turns out to be handy for scheduling stuff
with cron because your nightly maintenance crud can have just
one cron entry, and then the jobs proceed in an orderly fashion,
one after another.

So, to get cron to run everything in /etc/cron.daily, you need
to add something like this to the crontab (using crontab -e
to make changes to root's crontab):

5 3 * * * run-parts /etc/cron.daily

Hope that helps.

   - Logan


Re: Help for beginner

2006-07-27 Thread John D. Hardin
On Thu, 27 Jul 2006, Logan Shaw wrote:

 On Thu, 27 Jul 2006, Theo Van Dinter wrote:
  By default, they're probably already setup.  /etc/crontab usually points
  at them.
 
 What's an /etc/crontab?  I've never seen one of those before.

That's the global default crontab file (at least in some versions of
cron). It does things like run the hourly, daily, weekly and monthly
cron jobs via run-parts or a similar tool (at least in some versions
of cron).

If you don't have an /etc/crontab then your cron package may be
improperly installed, or may have become damaged after installation.
Does your cron package report missing files if you verify its
integrity (however your package manager does that, e.g. rpm -V
vixie-cron)?

--
 John Hardin KA7OHZICQ#15735746http://www.impsec.org/~jhardin/
 [EMAIL PROTECTED]FALaholic #11174pgpk -a [EMAIL PROTECTED]
 key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
---
  Windows Genuine Advantage (WGA) means that now you use your 
  computer at the sufferance of Microsoft Corporation. They can
  kill it remotely without your consent at any time for any reason.
--



Re: Help for beginner

2006-07-27 Thread Logan Shaw

On Thu, 27 Jul 2006, John D. Hardin wrote:

On Thu, 27 Jul 2006, Logan Shaw wrote:

On Thu, 27 Jul 2006, Theo Van Dinter wrote:



By default, they're probably already setup.  /etc/crontab usually points
at them.



What's an /etc/crontab?  I've never seen one of those before.



That's the global default crontab file (at least in some versions of
cron). It does things like run the hourly, daily, weekly and monthly
cron jobs via run-parts or a similar tool (at least in some versions
of cron).


Wow, it actually exists?!  I wrote what I did because I
thought you had made a typo and meant to say root's crontab
but wrote /etc/crontab instead even though /etc/crontab
doesn't literally exist.

Having said that, I'm confused about why /etc/crontab would
exist in any version of cron.  It seems more complicated to
put root's crontab in a special place that's different than
the pattern for every other user (where crontabs are stored
somewhere under /var/spool/cron), and I don't see the benefit
you'd get in exchange for that extra complication.

(OK, end of thinly-veiled Linux rant...)

  - Logan


Re: Help for beginner

2006-07-27 Thread Theo Van Dinter
On Thu, Jul 27, 2006 at 05:06:01PM -0500, Logan Shaw wrote:
 Having said that, I'm confused about why /etc/crontab would
 exist in any version of cron.  It seems more complicated to
 put root's crontab in a special place that's different than
 the pattern for every other user (where crontabs are stored
 somewhere under /var/spool/cron), and I don't see the benefit
 you'd get in exchange for that extra complication.

Well, it's not root's crontab, so ...

Regardless, this list isn't the best place to discuss systems administration
or how to manage your machine.

-- 
Randomly Generated Tagline:
You ripped his arm off.
  Yeah ...  He had a spare.- From the movie Action Jackson


pgp5E3iiLBWcL.pgp
Description: PGP signature


RE: Help for Beginner

2006-07-27 Thread Cabell, Dale
Can anyone please recommend a group for a beginner that needs help with
cron? Its still not working.

It would be appreciated.


Thanks,
Dale Cabell
[EMAIL PROTECTED]

-Original Message-
From: Kelson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 4:03 PM
To: users@spamassassin.apache.org
Subject: Re: Problems after upgrade to 3.1.4

jdow wrote:
 The wording back then suggested you could write a META
 rule with components scored zero so that they would not report but the
 META would still work.

If I read the runes a-right, that's still how META rules work.  Create a

rule like this:

body __CONDITION_1  /something/

...and don't assign it a score at all.  It'll execute, the META rules 
which rely on it will process the result, no problem.

HOWEVER, if you assign that rule a score of 0, as in:

score __CONDITION_1 0

...then the rule will be disabled, will not be processed, and any meta 
rule that relies on it will (a) throw this warning and (b) assume a 
value of false for that condition.

-- 
Kelson Vibber
SpeedGate Communications www.speed.net


Re: Help for beginner

2006-07-26 Thread Anthony Peacock

Craig White wrote:

On Tue, 2006-07-25 at 16:02 -0600, Nels Lindquist wrote:

On 25 Jul 2006 at 14:17, Craig White wrote:

snip


http://www.mailscanner.info/linux.html

This is the information page for installing MailScanner on RPM based
Linux system.

If you read this, you will see that even though you are using an rpm
based system, you download a tarball package, 'un-tar' the tarball and
then start the installation process via 'install.sh' command. This
actually ends up installing MailScanner and all requisite perl packages
via RPM.

Please read this guide.
I seem to be missing the part where the original poster mentioned he 
was using or wanted to use Mailscanner.  Was that in a different 
thread, perhaps?


I vaguely remember it now, I've deleted the thread now.


At no stage did the OP mention MailScanner.

His original post said: I need to upgrade from 3.06 to 3.1.3.

Those version numbers combined with the fact that this is the SA list 
led me to belive he was refering to SA.


--
Anthony Peacock
CHIME, Royal Free  University College Medical School
WWW:http://www.chime.ucl.ac.uk/~rmhiajp/
If you have an apple and I have  an apple and we  exchange apples
then you and I will still each have  one apple. But  if you have an
idea and I have an idea and we exchange these ideas, then each of us
will have two ideas. -- George Bernard Shaw


Re: Help for beginner

2006-07-25 Thread Theo Van Dinter
On Tue, Jul 25, 2006 at 10:38:14AM -0700, Cabell, Dale wrote:
 How do I tell if the version I have was installed using yum, Make, etc?

You can probably figure out if it's a package or not.  rpm -q spamassassin ?

 Where can I get a precompiled version? The tar file seems to be the only
 available download.

There's no official compiled or packaged version.  Different distros have it
available, and there's probably others out there that have it.

Is there a reason you don't make your own package?

rpmbuild -tb Mail-SpamAssassin-...

 How do I tell where the functionality, which is now in additional
 plugins was previously? I need to make sure the configuration stays the
 same after upgrading.

Read the UPGRADE doc, do testing before the install, etc.  Generally speaking,
the plugins work the same way as before, so just make sure that you have
enabled the ones you want, and disable the ones you don't want.

-- 
Randomly Generated Tagline:
Hoping the problem magically goes away by ignoring it is the 'Microsoft
 approach to programming' and should never be allowed.  - Linus Torvalds


pgpk0gnphDmCL.pgp
Description: PGP signature


RE: Help for beginner

2006-07-25 Thread Cabell, Dale


-Original Message-
From: Cabell, Dale 
Sent: Tuesday, July 25, 2006 10:54 AM
To: 'Theo Van Dinter'
Subject: RE: Help for beginner

Where do I put the tar? After I untar it, where do I execute the
rpmbuild from?

Thanks,
Dale Cabell

-Original Message-
From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 10:47 AM
To: users@spamassassin.apache.org
Subject: Re: Help for beginner

On Tue, Jul 25, 2006 at 10:38:14AM -0700, Cabell, Dale wrote:
 How do I tell if the version I have was installed using yum, Make,
etc?

You can probably figure out if it's a package or not.  rpm -q
spamassassin ?

 Where can I get a precompiled version? The tar file seems to be the
only
 available download.

There's no official compiled or packaged version.  Different distros
have it
available, and there's probably others out there that have it.

Is there a reason you don't make your own package?

rpmbuild -tb Mail-SpamAssassin-...

 How do I tell where the functionality, which is now in additional
 plugins was previously? I need to make sure the configuration stays
the
 same after upgrading.

Read the UPGRADE doc, do testing before the install, etc.  Generally
speaking,
the plugins work the same way as before, so just make sure that you have
enabled the ones you want, and disable the ones you don't want.

-- 
Randomly Generated Tagline:
Hoping the problem magically goes away by ignoring it is the 'Microsoft
 approach to programming' and should never be allowed.  - Linus
Torvalds


Re: Help for beginner

2006-07-25 Thread Theo Van Dinter
FWIW, Dale's been mailing me privately where I've been answering, but just for
everyone's info:

On Tue, Jul 25, 2006 at 11:04:18AM -0700, Cabell, Dale wrote:
 Where do I put the tar? After I untar it, where do I execute the
 rpmbuild from?

rpmbuild -tb says to build a binary RPM from a tarball.  So:

rpmbuild -tb Mail-SpamAssassin-3.1.3.tar.gz

will build the RPMs from the named tarball.  Depending on your environment,
you may need to be root and the packages may appear under /usr/src/redhat.

The download page also mentions the '--define srcext .bz2' option which you
need if you download the bz2 tarball instead of the gz one.

-- 
Randomly Generated Tagline:
He's cut so many fish that he can't even go to the beach for fear
 of retribution. - Alton Brown, Good Eats, Hook, Line  Dinner


pgpd5tWybnoEl.pgp
Description: PGP signature


RE: Help for beginner

2006-07-25 Thread Cabell, Dale
It shows it was installed as a package, but I can't find the rpmbuild
command.

Dale Cabell

-Original Message-
From: Theo Van Dinter [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 11:17 AM
To: users@spamassassin.apache.org
Subject: Re: Help for beginner

FWIW, Dale's been mailing me privately where I've been answering, but
just for
everyone's info:

On Tue, Jul 25, 2006 at 11:04:18AM -0700, Cabell, Dale wrote:
 Where do I put the tar? After I untar it, where do I execute the
 rpmbuild from?

rpmbuild -tb says to build a binary RPM from a tarball.  So:

rpmbuild -tb Mail-SpamAssassin-3.1.3.tar.gz

will build the RPMs from the named tarball.  Depending on your
environment,
you may need to be root and the packages may appear under
/usr/src/redhat.

The download page also mentions the '--define srcext .bz2' option
which you
need if you download the bz2 tarball instead of the gz one.

-- 
Randomly Generated Tagline:
He's cut so many fish that he can't even go to the beach for fear
 of retribution. - Alton Brown, Good Eats, Hook, Line  Dinner


Re: Help for beginner

2006-07-25 Thread Theo Van Dinter
On Tue, Jul 25, 2006 at 11:22:54AM -0700, Cabell, Dale wrote:
 It shows it was installed as a package, but I can't find the rpmbuild
 command.

As stated in a previous (private) email, all of this package stuff depends on
your platform.  For me, on Fedora Core 4, rpmbuild is part of the rpm-build
package.  If you don't have the executable, you may need to install the
correct package.  (warning: you may need to install other development-related
packages as well)

-- 
Randomly Generated Tagline:
I'm outta sick days; I think I'll call in dead.


pgpVLmJ7VZM6M.pgp
Description: PGP signature


Re: Help for beginner

2006-07-25 Thread Craig White
On Tue, 2006-07-25 at 14:16 -0400, Theo Van Dinter wrote:
 FWIW, Dale's been mailing me privately where I've been answering, but just for
 everyone's info:
 
 On Tue, Jul 25, 2006 at 11:04:18AM -0700, Cabell, Dale wrote:
  Where do I put the tar? After I untar it, where do I execute the
  rpmbuild from?
 
 rpmbuild -tb says to build a binary RPM from a tarball.  So:
 
 rpmbuild -tb Mail-SpamAssassin-3.1.3.tar.gz
 
 will build the RPMs from the named tarball.  Depending on your environment,
 you may need to be root and the packages may appear under /usr/src/redhat.
 
 The download page also mentions the '--define srcext .bz2' option which you
 need if you download the bz2 tarball instead of the gz one.

given the methodology that MailScanner uses, I don't think that I would
do that (compile an rpm from a tarball). Unless you know something that
I don't know that is.

The MailScanner download for rpm based system is indeed a tarball which
you have to extract and then run the 'install.sh' script which is a perl
program which actually builds a lot of requisite perl packages and
finally mailscanner itself into rpm files and installs the rpm's (or not
if you already have newer versions of the rpm's installed already). It's
a sophisticated, comprehensive approach to installing a whole lot of
stuff and doing it the way the system is configured (via rpm).

Craig



RE: Help for beginner

2006-07-25 Thread Craig White
Hi - let's keep this on list OK?

answer at bottom

On Tue, 2006-07-25 at 13:19 -0700, Cabell, Dale wrote:
 I am confused. Are you recommending that I not use RPM with the tarball
 and instead untar and use the script?
 
 Please let me know.
 
 Thanks,
 Dale Cabell
 
 -Original Message-
 From: Craig White [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, July 25, 2006 12:00 PM
 To: users@spamassassin.apache.org
 Subject: Re: Help for beginner
 
 On Tue, 2006-07-25 at 14:16 -0400, Theo Van Dinter wrote:
  FWIW, Dale's been mailing me privately where I've been answering, but
 just for
  everyone's info:
  
  On Tue, Jul 25, 2006 at 11:04:18AM -0700, Cabell, Dale wrote:
   Where do I put the tar? After I untar it, where do I execute the
   rpmbuild from?
  
  rpmbuild -tb says to build a binary RPM from a tarball.  So:
  
  rpmbuild -tb Mail-SpamAssassin-3.1.3.tar.gz
  
  will build the RPMs from the named tarball.  Depending on your
 environment,
  you may need to be root and the packages may appear under
 /usr/src/redhat.
  
  The download page also mentions the '--define srcext .bz2' option
 which you
  need if you download the bz2 tarball instead of the gz one.
 
 given the methodology that MailScanner uses, I don't think that I would
 do that (compile an rpm from a tarball). Unless you know something that
 I don't know that is.
 
 The MailScanner download for rpm based system is indeed a tarball which
 you have to extract and then run the 'install.sh' script which is a perl
 program which actually builds a lot of requisite perl packages and
 finally mailscanner itself into rpm files and installs the rpm's (or not
 if you already have newer versions of the rpm's installed already). It's
 a sophisticated, comprehensive approach to installing a whole lot of
 stuff and doing it the way the system is configured (via rpm).

http://www.mailscanner.info/linux.html

This is the information page for installing MailScanner on RPM based
Linux system.

If you read this, you will see that even though you are using an rpm
based system, you download a tarball package, 'un-tar' the tarball and
then start the installation process via 'install.sh' command. This
actually ends up installing MailScanner and all requisite perl packages
via RPM.

Please read this guide.

Craig



RE: Help for beginner

2006-07-25 Thread Nels Lindquist
On 25 Jul 2006 at 14:17, Craig White wrote:

snip

 http://www.mailscanner.info/linux.html
 
 This is the information page for installing MailScanner on RPM based
 Linux system.
 
 If you read this, you will see that even though you are using an rpm
 based system, you download a tarball package, 'un-tar' the tarball and
 then start the installation process via 'install.sh' command. This
 actually ends up installing MailScanner and all requisite perl packages
 via RPM.
 
 Please read this guide.

I seem to be missing the part where the original poster mentioned he 
was using or wanted to use Mailscanner.  Was that in a different 
thread, perhaps?


Nels Lindquist *
Information Systems Manager
Morningstar Air Express Inc.



RE: Help for beginner

2006-07-25 Thread Craig White
On Tue, 2006-07-25 at 16:02 -0600, Nels Lindquist wrote:
 On 25 Jul 2006 at 14:17, Craig White wrote:
 
 snip
 
  http://www.mailscanner.info/linux.html
  
  This is the information page for installing MailScanner on RPM based
  Linux system.
  
  If you read this, you will see that even though you are using an rpm
  based system, you download a tarball package, 'un-tar' the tarball and
  then start the installation process via 'install.sh' command. This
  actually ends up installing MailScanner and all requisite perl packages
  via RPM.
  
  Please read this guide.
 
 I seem to be missing the part where the original poster mentioned he 
 was using or wanted to use Mailscanner.  Was that in a different 
 thread, perhaps?

I vaguely remember it now, I've deleted the thread now.

Craig