Re: [Mailman-Users] setting up mailman

2005-11-20 Thread Mike Wharton
Hi Mark,

Thanks for all your help. 

I have tried to the best of my ability (which is clearly not good enough) to
get this going... I have read until my eyes hurt and tried all the things
mentioned - even uninstalled and reinstalled several times. However, without
success.

It is obvious that my skill level or understanding of how mailman works (and
in fact how apache works) is too restricted. 

I surrender. :-)

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mark Sapiro
Sent: Monday, 21 November 2005 4:29 AM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:
>
>I have added all items to mailman and http config files. I have 
>successfully created the list and added the alias info, however, still 
>no luck
>
>I have found the error log and error is as follows...
>
> ...
>[Sun Nov 20 16:59:53 2005] [error] [client 202.45.112.36] Premature end 
>of script headers: listinfo  ...
>
>I have looked at the FAQ but cannot find any mention of this


This is mentioned in the 'other' FAQ <http://www.list.org/faq.html>

There is also a lot of discussion of this in the archives of this list.
See for example the entire thread beginning at
<http://mail.python.org/pipermail/mailman-users/2004-August/038828.html>

The wrapper (cgi-bin/listinfo) is being found, but most likely, there is
some kind of permissions error that prevents access to the wrapper.
Have you run bin/check_perms on your installation?

It could also be a group mismatch error as I mentioned previously, but I
don't think this results in "Premature end of script headers".

If you are running SELinux, there could be an issue there, although the
reported manifestations don't seem to affect wrapper access. See
<http://mail.python.org/pipermail/mailman-users/2005-July/045865.html>

-- 
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/mwharton%40presdata.com
.au

Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-19 Thread Mike Wharton


I have added all items to mailman and http config files. I have successfully
created the list and added the alias info, however, still no luck

I have found the error log and error is as follows...

[Sun Nov 20 16:59:36 2005] [error] [client 203.10.110.78] Directory index
forbidden by rule: /home/vs1040/public_html/
[Sun Nov 20 16:59:53 2005] [error] [client 202.45.112.36] Premature end of
script headers: listinfo
[Sun Nov 20 16:59:53 2005] [error] [client 202.45.112.36] File does not
exist: /home/vs1040/public_html/favicon.ico

I have looked at the FAQ but cannot find any mention of this

Any ideas?


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mark Sapiro
Sent: Sunday, 20 November 2005 11:48 AM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:
>
>I am running mailman on a server whose name is s1.##.net.au I have 
>a virtual server on this machine - ##.com.au
>
>I want the user to use www.##.com.au/mailman when accessing the 
>lists
>
>
>Is this correct?
>
>In the httpd/conf.d I have placed the s1.hostnet.net.au In the 
>mm_cfg.py file set place DEFAULT_URL_HOST as ##.com.au
>DEFAULT_EMAIL_HOST as ##.com.au
>
>After creating the new list I place all alias information in the 
>etc/aliases file

If the only domain you are serving with Mailman is the '##.com.au'
domain, DEFAULT_URL_HOST should be 'www.##.com.au' and
DEFAULT_EMAIL_HOST should be '##.com.au'. If this is what they are in
Defaults.py (because you specified them to configure), then you don't need
anything else in mm_cfg.py. If one or both are different in Defaults.py, put
all of the following in mm_cfg.py

DEFAULT_URL_HOST = 'www.##.com.au'
DEFAULT_EMAIL_HOST = '##.com.au'
VIRTUAL_HOSTS.clear()
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

The various mailman related apache configuration directives can be applied
globally or just to the www.##.com.au host.

If the DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST were not correctly set when
you created the mailman list, the list attributes derived from them will be
wrong. The usual way to fix this is with bin/fix_url.py run through
bin/withlist. The command to do this for the mailman list is

bin/withlist -l -r fix_url mailman

If they were correctly set, even if you didn't have
VIRTUAL_HOSTS.clear() and add_virtualhost(DEFAULT_URL_HOST,
DEFAULT_EMAIL_HOST) in mm_cfg.py, the list is probably OK.

-- 
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/mwharton%40presdata.com
.au

Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-19 Thread Mike Wharton
Thanks again,

I have looked at the error logs (all that I could find that related to http
access) - however, before I go any further I thought I should make sure I am
clear on one thing...

I am running mailman on a server whose name is s1.##.net.au
I have a virtual server on this machine - ##.com.au

I want the user to use www.##.com.au/mailman when accessing the lists


Is this correct?

In the httpd/conf.d I have placed the s1.hostnet.net.au
In the mm_cfg.py file set place DEFAULT_URL_HOST as ##.com.au
DEFAULT_EMAIL_HOST as ##.com.au

After creating the new list I place all alias information in the etc/aliases
file

Mike


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mark Sapiro
Sent: Sunday, 20 November 2005 3:25 AM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:
>
>What I get is...
>
>Internal Server Error
>
>The server encountered an internal error or misconfiguration and was unable
>to complete your request.
>
>Please contact the server administrator, [EMAIL PROTECTED] and inform them of
>the time the error occurred, and anything you might have done that may have
>caused the error.
>
>More information about this error may be available in the server error log.

Find the apache error log (look for ErrorLog directives in your
httpd.conf if you don't know where it is), and see what it says. It
may be a permissions problem of some sort in accessing Mailman's
cgi-bin directory, or it may be a group mismatch error. If the latter
and the message is not self explanatory, search the FAQ wizard for
mismatch.

>Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py

-- 
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/mwharton%40presdata.com
.au

Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-19 Thread Mike Wharton
Getting closer... have managed to create a list via webmin and including
listname, email and password... I added the required allias info into the
/etc/aliases file restarted the system and then went to the link in the
email received from the new list creation...

What I get is...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.

More information about this error may be available in the server error log.

Any suggestions?  



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mark Sapiro
Sent: Saturday, 19 November 2005 1:06 PM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:

>OK... thanks for spelling that out for a newbie like me... I continued 
>to get nothing in the Command Shell of webmin so I used telnet to 
>telnet to the server and it all worked as expected in the shell there. 
>I must be a problem with webmin (or maybe webmin is not meant to be 
>used in this way...)


Yes, it seems like you can't run interactive commands via Webmin.


>Anyway, I got all the expected results... the 'print x' resulted in
>
>answer
>>>>
>
>What does this suggest to you? Should I try to run the required 
>commands for mailman in the telnet session rather than from the command
shell in webmin?


Yes. As long as you can login via telnet as a user (mailman ?) with the
required access, that would be the way to run the bin/* tools, or you may be
able to run them via Webmin by including all required arguments on the
command line, so no prompting occurs. E.g.,

bin/newlist list_name owner_email list_pw

-- 
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/mwharton%40presdata.com
.au

Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-18 Thread Mike Wharton
OK... thanks for spelling that out for a newbie like me... I continued to
get nothing in the Command Shell of webmin so I used telnet to telnet to the
server and it all worked as expected in the shell there. I must be a problem
with webmin (or maybe webmin is not meant to be used in this way...)

Anyway, I got all the expected results... the 'print x' resulted in 

answer
>>>

What does this suggest to you? Should I try to run the required commands for
mailman in the telnet session rather than from the command shell in webmin?

Thanks again...

Mike

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mark Sapiro
Sent: Saturday, 19 November 2005 12:13 PM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:
>
>I am a total newbie when it comes to linix and am learning as I go so I may
>not have fully understood your suggestion. I typed these into the command
>line in the webmin interface on my server.

That's the problem. Sorry I wasn't more specific about what to do.
Here's another try:

At the shell (command line) prompt, type 'python' and see the following
where '$' represents the shell prompt to which you're typing:

$ python
Python 2.4.1 (#1, May 27 2005, 18:02:40) [GCC 3.3.3 (cygwin special)] on
cygwin Type "help", "copyright", "credits" or "license" for more
information.
>>> 

The '>>> ' is the interactive prompt from Python. The other stuff is
from Python and probably won't be exactly the same.

then type "x = raw_input('Prompt: ')" in response to the prompt and it
should look like

>>> x = raw_input('Prompt: ')
Prompt: 

at that point. Type "answer" (followed by enter) and you should get
another '>>> ' prompt to which you type "print x".

If you are not seeing the '>>> ' prompt, or you see it, but it is
immediately followed by another shell prompt without your typing
anything, there is some issue in the shell or the invocation of python
such all input requests are receiving an end_of_file 'automatic
response.

This could be caused for example by 'python' being aliased in your
shell to 'pythonThe 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/mwharton%40presdata.com
.au

Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-18 Thread Mike Wharton
When I enter the suggested commands I get comprehensive details of python
using 'help', however 'copyright' and others return 'command not found'


> python
> Python 2.4.1 (#1, May 27 2005, 18:02:40)
> [GCC 3.3.3 (cygwin special)] on cygwin
> copyright
sh: line 1: copyright: command not found
> help
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
These shell commands are defined internally.  Type `help' to see this list.
Type `help name' to find out more about the function `name'.
Use `info bash' to find out more about the shell in general.
Use `man -k' or `info' to find out more about commands not in this list.


Following is the result of the x = prompt... etc

> copyright
sh: line 1: copyright: command not found
> x = raw_input('Prompt: ')
> answer
sh: line 1: answer: command not found
> x = raw_input('Prompt: ')
> Prompt: answer
sh: line 1: Prompt:: command not found
> print x
sh: line 1: print: command not found


I am a total newbie when it comes to linix and am learning as I go so I may
not have fully understood your suggestion. I typed these into the command
line in the webmin interface on my server.

Still no luck.

Mike

 

-Original Message-
From: Mark Sapiro [mailto:[EMAIL PROTECTED] 
Sent: Saturday, 19 November 2005 7:38 AM
To: [EMAIL PROTECTED]; mailman-users@python.org
Subject: Re: [Mailman-Users] setting up mailman

Mike Wharton wrote:
>
>When I attempt to run /var/mailman/bin/newlist mailman  to create the 
>newsite I get the following error...
>
>> /var/mailman/bin/newlist mailman
>Enter the email of the person running the list: Traceback (most recent 
>call
>last):
>  File "/var/mailman/bin/newlist", line 219, in ?
>main()
>  File "/var/mailman/bin/newlist", line 139, in main
>owner_mail = raw_input(
>EOFError: EOF when reading a line
>
>Can anyone offer a suggestion as to what I might have missed?

This error occurs because the Python raw_input() function received an end of
file. Did you type control-D instead of an email address followed by ?
It doesn't look like it in the above, but is it possible that your shell has
somehow redirected standard input to a file or /dev/null instead of the
terminal?

Can you successfully run the following:

$ python
Python 2.4.1 (#1, May 27 2005, 18:02:40) [GCC 3.3.3 (cygwin special)] on
cygwin Type "help", "copyright", "credits" or "license" for more
information.
>>> x = raw_input('Prompt: ')
Prompt: answer
>>> print x
answer
>>>


-- 
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=show&file=faq01.027.htp


Re: [Mailman-Users] setting up mailman

2005-11-17 Thread Mike Wharton

Thanks Con, I did this and the result was

> /var/mailman/bin/check_perms
No problems found

Any other thoughts?


Mike


>I believe you'll find it's a permissions issue. Try running ~mailman/ 
>bin/check_perms and see what it says

>Con Wieland
>University of California at Irvine
>Network and Academic Computing
>Network and Support Programming

>[EMAIL PROTECTED]
>949.824.6134
>949.824.2270 fax


>On Nov 17, 2005, at 12:20 AM, Mike Wharton wrote:

>
> Hi,
>
> I am trying to set up mailman on my server running Fedora 2. I have
> installed Mailman 2.1.5-10.fc2.
>
> I have followed the setup instruction contained in the Install  
> document
> included with the install. I have done the following...
>
> Set the mailman.confg file /etc/httpd/config.d to point to my domain
>
> Stopped and restarted apache
>
> Set the site password using the /var/mailman/bin/mmsitepass
>
> Set the DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST (to a virtual  
> domain on the
> server) in /var/mailman/Mailman/mm_cfg.py
>
> And here is where the problem occurs...
>
> When I attempt to run /var/mailman/bin/newlist mailman  to create the
> newsite I get the following error...
>
>> /var/mailman/bin/newlist mailman
> Enter the email of the person running the list: Traceback (most  
> recent call
> last):
>   File "/var/mailman/bin/newlist", line 219, in ?
> main()
>   File "/var/mailman/bin/newlist", line 139, in main
> owner_mail = raw_input(
> EOFError: EOF when reading a line
>
> Can anyone offer a suggestion as to what I might have missed?
>
> TIA
>
> Mike

--
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=show&file=faq01.027.htp


[Mailman-Users] setting up mailman

2005-11-17 Thread Mike Wharton

Hi,

I am trying to set up mailman on my server running Fedora 2. I have
installed Mailman 2.1.5-10.fc2.

I have followed the setup instruction contained in the Install document
included with the install. I have done the following...

Set the mailman.confg file /etc/httpd/config.d to point to my domain 

Stopped and restarted apache

Set the site password using the /var/mailman/bin/mmsitepass

Set the DEFAULT_URL_HOST and DEFAULT_EMAIL_HOST (to a virtual domain on the
server) in /var/mailman/Mailman/mm_cfg.py 

And here is where the problem occurs...

When I attempt to run /var/mailman/bin/newlist mailman  to create the
newsite I get the following error...

> /var/mailman/bin/newlist mailman
Enter the email of the person running the list: Traceback (most recent call
last):
  File "/var/mailman/bin/newlist", line 219, in ?
main()
  File "/var/mailman/bin/newlist", line 139, in main
owner_mail = raw_input(
EOFError: EOF when reading a line

Can anyone offer a suggestion as to what I might have missed?

TIA

Mike


 

  PresData Services


  Mike Wharton 

  22 Barkly St, Mordialloc, Victoria, 3195
  Phone: (03) 9580 5940  -  Mobile 0413 189 198

  Firefly Phone: 80189198

 

 


--
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=show&file=faq01.027.htp