I maintain a few Majordomo based mailing lists. Some of my users have 
complained about the cryptic nature of interacting w/Majordomo.

As a result, I've been tinkering w/MailServ v4.4 for 
~2mths. Most GUI front-ends are Perl based. There aren't any user 
mailiing list for users who were having problems configuring the pkg. 
So, I figured I'd send a note asking for assistance. 


I imagine that I have missed something fairly obvious. Hopefully, my 
questions are intelligible ;)
Any help you can provide would be greatly appreciated. 

I thank you in advance for your time. 


Problem:

I am unable to run/administrate Mailserv script via browser.
Per the installation directions that were included in the tarball, I set 
up a simple form.

Here is what I've done thus far:

/* begin mserv.html */

<html>
<head>
<title>TEST</title></head>
<body>
<form method="POST" action="/cgi-bin/MailServ/majordomo" TARGET="_blank">
<input type="SUBMIT" value="nerds">
<input type="HIDDEN" name="to" value="[EMAIL PROTECTED]">
<input type="HIDDEN" name="list" value="nerds">
</form>
</body></html>

/* end mserv.html*/

You can see the output here ->
http://bencarsonscholars.com/cgi-bin/MailServ/mserv.html

I consistently receive Internal Server Error 500. Already checked the 
permissions in my /cgi-bin/ directory. I can run other perl scripts w/o 
issue.  

Additionally, I can't seem to run majordomo script from the browser, it 
appears that the environment variable 'HTTP_REFERER' is not being set 
properly. The domain below is a virtual domain on a RedHat box.
See the output here -> 
http://bencarsonscholars.com/cgi-bin/MailServ/majordomo

However, after checking syntax with the Perl interpreter, the 'majordomo' 
the syntax reads OK. 

Below is the output of the modifed 'Mailserv' script.
I renamed the script 'majordomo'.
 
***********************************************
$perl -c majordomo 2&> script.out
**********************************************

Useless use of hash element in void context at majordomo line 382.
Use of $* is deprecated at majordomo line 520.
Use of implicit split to @_ is deprecated at majordomo line 587.
Useless use of hash element in void context at majordomo line 1004.
\1 better written as $1 at majordomo line 1338.
Name "config::noList" used only once: possible typo at majordomo line 459.
Name "config::name" used only once: possible typo at majordomo line 227.
Name "config::noBody" used only once: possible typo at majordomo line 955.
majordomo syntax OK

/* end of script.out */

Second:
I ran the script from install dir. './majordomo'

/* begin output of ./majordomo snippet */

[EMAIL PROTECTED]/mainwebsite_cgi/MailServ$more script.test
Content-type: text/html


<!-- This source generated by the majordomo script -->

<!-- Debug information:
  Form input:
        from = ''
  Process environment:
        BASH_ENV = '/home/bcls/.bashrc'
        HISTSIZE = '1000'
        HOME = '/home/bcls'
        HOSTNAME = 'bencarsonscholars.com'
        HOSTTYPE = 'i386'
        INPUTRC = '/etc/inputrc'
        LOGNAME = 'bcls'
        MACHTYPE = 'i386-redhat-linux-gnu'
        MAIL = '/var/spool/mail/bcls'
        OLDPWD = '/home/bcls/mainwebsite_cgi/MailServ/config'
        OSTYPE = 'linux-gnu'
        PATH = 
'/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/bcls/bin'
 PWD = '/home/bcls/mainwebsite_cgi/MailServ'
        SHELL = '/bin/bash'
        SHLVL = '1'
        SSH_TTY = '/dev/pts/0'
        TERM = 'xterm'
        USER = 'bcls'
        USERNAME = ''
        _ = './majordomo'
  -->

<HTML>
<HEAD>
  <TITLE>MailServ by Patrick Fitzgerald</TITLE>
</HEAD>
<BODY>
<!-- BEGIN header -->
<TABLE WIDTH=100% BORDER=4>
 <TR>
  <TH ALIGN=left WIDTH=100%>
   <A HREF="http://csicop.org/~fitz/www/mailserv/";>MailServ</A> for 
Majordomo mailing lists
  </TH>

/* end ./majordomo output snippet */


I also took a look at the httpd error logs 
Turning on the the #!/usr/bin/perl -w flag generates these warnings

/* begin error log output */

Use of uninitialized value in substitution (s///) at majordomo line 1270.
Use of uninitialized value in substitution (s///) at majordomo line 1271.
Use of uninitialized value in substitution (s///) at majordomo line 1272.
Use of uninitialized value in substitution (s///) at majordomo line 1273.
Use of uninitialized value in concatenation (.) or string at majordomo 
line 1116.
Use of uninitialized value in pattern match (m//) at majordomo line 304.
Use of uninitialized value in concatenation (.) or string at majordomo 
line 310.
failed to open log file
fopen: Permission denied
[Fri Nov 28 09:46:01 2003] [error] [client 68.41.85.195] Premature end of 
script headers: 
/home/virtual/site46/fst/var/www/cgi-bin/MailServ/mserv.html

/* end of error log output */

Below is my modified majordomo script. Per the install instructions, I 
renamed the Mailserv script to 'majordomo'.

/* begin majordomo script snippet */

#!/usr/bin/perl -w
## $Id: mailserv,v 3.29 2002/10/23 00:51:32 fitz Exp $
##
## MailServ - displays and processes forms for mailing list manager 
commands
## Copyright (C) 1996,1997 Patrick Fitzgerald <[EMAIL PROTECTED]>
## See end of file for GNU Public License information.
##
## Complete documentation is provided at the following URL:
## http://csicop.org/~fitz/www/mailserv/

 # modified 10/25/03 -AG
#  use strict;
#  use CGI;

# $CGI::DISABLE_UPLOADS = 1;
# $CGI::POST_MAX        = 102_400; # 100 KB

# my $q = new CGI;

 # end modification

 # Version of MailServ

 # logfile
 # If you want to log the use of MailServ on your system,
 # (useful for hunting down certain problems)
 # specify the filename here.  If MailServ cannot write
 # the file, it just ignores it and continues.

$logfile = "/var/www/cgi-bin/MailServ/error/";


@referrer_regexp =
  (
   'www\.bencarsonscholars\.com'
  );

/* end of majordomo script snippet */



AG




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to