Re: [Mailman-Users] problem with cron

2007-05-16 Thread Mark Sapiro
Nikos Gatsis wrote:

You mean:
0 12 * * * mailman /usr/lib/mailman/cron/senddigests - 0 12 * * * 
/usr/lib/mailman/cron/senddigests


Yes, that's exactly what I mean.


All commands in cron are likewise... I have already delete them and 
everything is OK.
Why you put this mailman command in contab.in?


We do not put it there. It was put there by whoever created the Mailman
package (rpm, port, whatever) that you installed because it was
intended to be installed in a file in /etc/cron.d and not by the
crontab command.

Also, it is not a command. Files in /etc/cron.d, do not belong to a
specific user, so they need an extra field for the userid under which
to run. That's what the 'mailman' is in this file.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron

2007-05-16 Thread nikos
OK.
Actualy I use fedora's rpm.

Thank you for your help!

Mark Sapiro wrote:
 Nikos Gatsis wrote:
   
 You mean:
 0 12 * * * mailman /usr/lib/mailman/cron/senddigests - 0 12 * * * 
 /usr/lib/mailman/cron/senddigests
 


 Yes, that's exactly what I mean.


   
 All commands in cron are likewise... I have already delete them and 
 everything is OK.
 Why you put this mailman command in contab.in?
 


 We do not put it there. It was put there by whoever created the Mailman
 package (rpm, port, whatever) that you installed because it was
 intended to be installed in a file in /etc/cron.d and not by the
 crontab command.

 Also, it is not a command. Files in /etc/cron.d, do not belong to a
 specific user, so they need an extra field for the userid under which
 to run. That's what the 'mailman' is in this file.

   
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron

2007-05-14 Thread nikos
Thank you Mark.
I put the mailto line in crontab and I recieve the first errors:

/bin/sh: mailman: command not found

I think refers to mailman /usr/lib/mailman/cron/... lines.
What is wrong with that?

Mark Sapiro wrote:
 nikos wrote:

   
 Hello list.
 I've just install mailman 2.1.9 in a fedora 6 server.
 Everything works fine except cron.

 I'm recieving errors like:

 You are not allowed to post to this mailing list, and your message has
 been automatically rejected.  If you think that your messages are
 being rejected in error, contact the mailing list owner at
 [EMAIL PROTECTED]

 and subjects:


 Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/nightly_gzip
 Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/checkdbs
 


 cron is encountering errors and trying to mail them to the owner of the
 crontab which is [EMAIL PROTECTED]

 These mails from cron are being delivered to the 'mailman' list as
 posts and the list is not accepting them.


   
 What did I do wrong?
 


 There may be permission issues or something else causing the cron
 errors. You have to see the email which will report the response from
 the command cron is running.

 The email actually may be attached to the reject notice, but it would
 be better to put

 [EMAIL PROTECTED]

 at the top of mailman's crontab to get the cron errors mailed to you
 directly.


   
 I've just load contab.in in crontab -umailman
 What will happents If I stop cron for mailman?
 


 None of the periodic jobs such as sending digests, sending pending
 request reminders, sending monthly password reminders, gzipping the
 archive text files, etc will be run.

   
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron

2007-05-14 Thread Mark Sapiro
nikos wrote:

I put the mailto line in crontab and I recieve the first errors:

/bin/sh: mailman: command not found

I think refers to mailman /usr/lib/mailman/cron/... lines.
What is wrong with that?


You have installed a system crontab as the mailman user's crontab.

The crontab you installed is designed to be put in a file in
/etc/cron.d/ (e.g. /etc/cron.d/mailman). Thus it has an extra field
between the days/times and the command which contains the userid
(mailman) under which the command is to be run.

If you install it in /var/spool/cron/ via the crontab command, you have
to remove the mailman userid field from between the times and the
commands.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron

2007-05-11 Thread Mark Sapiro
nikos wrote:

Hello list.
I've just install mailman 2.1.9 in a fedora 6 server.
Everything works fine except cron.

I'm recieving errors like:

You are not allowed to post to this mailing list, and your message has
been automatically rejected.  If you think that your messages are
being rejected in error, contact the mailing list owner at
[EMAIL PROTECTED]

and subjects:


Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/nightly_gzip
Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/checkdbs


cron is encountering errors and trying to mail them to the owner of the
crontab which is [EMAIL PROTECTED]

These mails from cron are being delivered to the 'mailman' list as
posts and the list is not accepting them.


What did I do wrong?


There may be permission issues or something else causing the cron
errors. You have to see the email which will report the response from
the command cron is running.

The email actually may be attached to the reject notice, but it would
be better to put

[EMAIL PROTECTED]

at the top of mailman's crontab to get the cron errors mailed to you
directly.


I've just load contab.in in crontab -umailman
What will happents If I stop cron for mailman?


None of the periodic jobs such as sending digests, sending pending
request reminders, sending monthly password reminders, gzipping the
archive text files, etc will be run.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] problem with cron

2007-05-10 Thread nikos
Hello list.
I've just install mailman 2.1.9 in a fedora 6 server.
Everything works fine except cron.

I'm recieving errors like:

You are not allowed to post to this mailing list, and your message has
been automatically rejected.  If you think that your messages are
being rejected in error, contact the mailing list owner at
[EMAIL PROTECTED]

and subjects:


Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/nightly_gzip
Cron [EMAIL PROTECTED] mailman /usr/lib/mailman/cron/checkdbs

What did I do wrong?
I've just load contab.in in crontab -umailman
What will happents If I stop cron for mailman?

Thanx
Nikos
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] problem with cron jobs

2005-03-09 Thread Jon Jacobsen
Hi,
I installed a Redhat rpm mailman-2.1.5-23 on a Redhat enterprise server. 
The mailman appears to be working, but I'm having problems with cron. 
When the job run root posts to the 'mailman' list I created the following:

/bin/sh: line 1: mailman: command not found
I have no errors with 'check_perms' and /etc/cron.d/mailman looks fine. 
I can run:

#su - mailman -c /var/mailman/cron/gate_news
without errors.
Any Ideas?
Jon
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron jobs

2005-03-09 Thread Brad Knowles
At 12:07 PM -0700 2005-03-09, Jon Jacobsen wrote:
 I installed a Redhat rpm mailman-2.1.5-23 on a Redhat enterprise server.
 The mailman appears to be working, but I'm having problems with cron. When
 the job run root posts to the 'mailman' list I created the following:
 /bin/sh: line 1: mailman: command not found
	Have you looked at 
http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq04.025.htp 
and 
http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq04.057.htp?

--
Brad Knowles, [EMAIL PROTECTED]
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See http://www.sage.org/ for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron jobs

2005-03-09 Thread Jon Jacobsen
Yes. I believe the 'mailman' list it setup correctly. I am trying to 
figure out why I am getting a bash error when then python script runs. I 
even put  .bashrc in mailman's home directory.  I run:

su mailman -c /usr/bin/python -S -v /var/mailman/cron/disabled
and don't see any errors in the dump to standard IO. 
/var/log/mailman/error does not show errors either

Thanks
Brad Knowles wrote:
At 12:07 PM -0700 2005-03-09, Jon Jacobsen wrote:
 I installed a Redhat rpm mailman-2.1.5-23 on a Redhat enterprise server.
 The mailman appears to be working, but I'm having problems with cron. 
When
 the job run root posts to the 'mailman' list I created the following:

 /bin/sh: line 1: mailman: command not found

Have you looked at 
http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq04.025.htp 
and http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq04.057.htp?

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron jobs

2005-03-09 Thread John Dennis
On Wed, 2005-03-09 at 12:07 -0700, Jon Jacobsen wrote:
 Hi,
 
 I installed a Redhat rpm mailman-2.1.5-23 on a Redhat enterprise server. 
 The mailman appears to be working, but I'm having problems with cron. 
 When the job run root posts to the 'mailman' list I created the following:
 
 /bin/sh: line 1: mailman: command not found
 
 I have no errors with 'check_perms' and /etc/cron.d/mailman looks fine. 
 I can run:
 
 #su - mailman -c /var/mailman/cron/gate_news
 
 without errors.
 
 Any Ideas?

There is a difference between the format of cron jobs created with
crontab vs. what is the system cron files located in /etc/cron.d. That
difference is the insertion of the username (uid) that the cron job is
to be run as. The username is inserted after the 5 time fields and
before the command. Look at the file /etc/cron.d/mailman, you'll see
lines that look something like this:

0 5 1 * * mailman /usr/lib/mailman/cron/mailpasswds

Note that the 6th field is the username mailman which is the user the
command is supposed run with the privileges of. ONLY files
in /etc/cron.d have this extra field. If you installed the cron jobs
using the command crontab using a file that has this format (recall
that crontab files DO NOT have the username in them, its specified as an
argument to crontab (e.g. -u) then cron will be confused into thinking
the command is mailman because the 6th entry in a crontab file is the
command (its the 7th entry in a system cron file).

This is the most likely cause of the symptom you report. The rpm is
supposed to correctly handle the cron installation and is aware of the
difference between system cron files and files passed to crontab (of
course there might be an rpm bug, especially if you didn't manually try
to modify what the rpm installation did).

I just spoke with the cron maintainer here who said there were some
versions of cron in RHEL3 (which is the distribution your mailman rpm
came from) that had some bugs. You could try updating your version of
cron and see if that helps, but it really sounds to me like a mismatch
of the cron formats.

-- 
John Dennis [EMAIL PROTECTED]

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron jobs

2005-03-09 Thread Jon Jacobsen
It seems that /var/mailman/cron/crontab.in gets copied to 
/etc/cron.d/mailman when mailman is started. These files are the same 
and I have not modified them. It does appear that the Redhat cron is 
having a problem executing the script as mailman user.

John Dennis wrote:
On Wed, 2005-03-09 at 12:07 -0700, Jon Jacobsen wrote:
Hi,
I installed a Redhat rpm mailman-2.1.5-23 on a Redhat enterprise server. 
The mailman appears to be working, but I'm having problems with cron. 
When the job run root posts to the 'mailman' list I created the following:

/bin/sh: line 1: mailman: command not found
I have no errors with 'check_perms' and /etc/cron.d/mailman looks fine. 
I can run:

#su - mailman -c /var/mailman/cron/gate_news
without errors.
Any Ideas?

There is a difference between the format of cron jobs created with
crontab vs. what is the system cron files located in /etc/cron.d. That
difference is the insertion of the username (uid) that the cron job is
to be run as. The username is inserted after the 5 time fields and
before the command. Look at the file /etc/cron.d/mailman, you'll see
lines that look something like this:
0 5 1 * * mailman /usr/lib/mailman/cron/mailpasswds
Note that the 6th field is the username mailman which is the user the
command is supposed run with the privileges of. ONLY files
in /etc/cron.d have this extra field. If you installed the cron jobs
using the command crontab using a file that has this format (recall
that crontab files DO NOT have the username in them, its specified as an
argument to crontab (e.g. -u) then cron will be confused into thinking
the command is mailman because the 6th entry in a crontab file is the
command (its the 7th entry in a system cron file).
This is the most likely cause of the symptom you report. The rpm is
supposed to correctly handle the cron installation and is aware of the
difference between system cron files and files passed to crontab (of
course there might be an rpm bug, especially if you didn't manually try
to modify what the rpm installation did).
I just spoke with the cron maintainer here who said there were some
versions of cron in RHEL3 (which is the distribution your mailman rpm
came from) that had some bugs. You could try updating your version of
cron and see if that helps, but it really sounds to me like a mismatch
of the cron formats.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] problem with cron jobs

2005-03-09 Thread Brad Knowles
At 2:40 PM -0700 2005-03-09, Jon Jacobsen wrote:
 Yes. I believe the 'mailman' list it setup correctly. I am trying to
 figure out why I am getting a bash error when then python script runs.
 I even put  .bashrc in mailman's home directory.
	Weird.  There shouldn't be any invocation of bash, at least not 
by Mailman or Python when trying to send e-mail to a list.

	Are you sure that you've got a Python executable where the 
Mailman scripts are expecting it?

--
Brad Knowles, [EMAIL PROTECTED]
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See http://www.sage.org/ for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] problem with cron script

2004-02-06 Thread christian
Hi @all

I installed mailman 2.1.4 out from the source on my suse 8.1 system.
Everything is working fine except one of the cron scripts, every minute 
I get a mail with the following content

Traceback (most recent call last):
 File /usr/lib/mailman/cron/qrunner, line 89, in ?
   from Mailman.Handlers import HandlerAPI
 File /usr/lib/mailman/Mailman/Handlers/HandlerAPI.py, line 26, in ?
   from Mailman.pythonlib.StringIO import StringIO
ImportError: No module named pythonlib.StringIO
How can I fix the problem?

Cu

Christian

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] problem with cron/nightly_gzip

2003-11-09 Thread Pablo Chamorro C.
It would seem that this command weren't working so well for me, although
something is doing.  With the verbose option I get:

[root]# cron/nightly_gzip -v
Processing list: mailman
Processing list: prueba

I was editing that script and I got some txt files compressed, so it seems
that works (I have zlib, and gzip) but I think I don't understand
completely how it process the archives, and what files are processed?  
(mbox, txt?).  Could you please help me?  I'm using MhonArc for the web
archival. For example I have these files:

archives/private/prueba.mbox/
archives/private/prueba.mbox/prueba.mbox
archives/private/prueba/
archives/private/prueba/index.html
archives/private/prueba/msg0.html
archives/private/prueba/msg1.html
archives/private/prueba/attachments
archives/private/prueba/attachments/20031030
etc.

For testing purposes, I setup some lists for daily archival.

Thanks,

Pablo Chamorro C.


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org