At 01:11 -0600 7/2/2001, Leonard Spell opined:
>I installed Machttp, MacPerl, on the SIMS machine and did get it to launch -
>however I don't think I have the changes in the script correct. Also, I
>took some instructions from your html login - but aren't there other pages
>that are needed?
It should be as simple as installing MacPerl and a web server,
putting the modified AtDot files into a directory accessible by your
web server, customizing the config.pl file, and surfing to
http://www.yourdomain.com/atdotDirectoy/login.acgi
Oh, there is one gotcha, which might be where the problem is coming
from. So let's walk through the config.pl file:
>############################################################################
># config.pl - Common variables and functions used by AtDot. This should
># be the only file that needs to be edited.
>###########################################################################
>
># The directory separator character rr000804
> # "/" for un*x
> # "\" for MS-DOS and hacks thereto
> # ":" for Mac OS
>$dirsep = ":";
Don't change this!!
>
># The site administrator
>$admin = "webmaster\@UCDhousestaff.com";
An email address that will reach you.
>
># The form method used here (GET or POST)
>$method = 'POST';
>
># The directory to store all the information in
>$dbdir = '::::cgidata:atdot:';
Ahhh, the tricky part. Since most Mac OS web servers don't have
separate directories for cgi's vs. HTML pages, a stock installation
of AtDot would leave everyone's account data accessible to anyone on
the Net who knew where to look. The string of : characters tells the
scripts to look *above* the root directory that the web server sees.
This gets a bit confusing. In my case, the directory in which the
AtDot files resided looked like
HD:HTTP:cgi:email:
Where HTTP is the root folder for the web server (and should also be
the *only* folder on the machine that is guest-readable). I created a
folder called cgidata at the root level of the hard disk with a
folder called atdot inside it:
HD:cgidata:atdot:
If you don't touch the $dbdir value, then what you want to do is
create the cgidata:atdot: folders at the same level as your server
root (HTTP) directory.
Hope this makes sense; I'm getting a little confused just writing it.
>
># Wher to log (malicious?) attempts to hack other accounts
>$logfile = $dbdir . "log";
The rest of these need customization, which should be obvious:
># The local domain
>$domain = "UCDhousestaff.com";
>
># The SMTP server to use
>$smtpserver = "smtp.risley.net";
>
># The version of the program; goes in X-Mailer header
>$version = "UCDhousestaff.com Email (after AtDot 2.0.1)";
>
># The URL to put in X-URL mail header
>$x_url = "http://www.UCDhousestaff.com/";
>
># The title for the web pages
>$title = "UCDhousestaff.com Email Service";
>
># How long until sessions expire, in seconds
>$expire_time = 3600;
>
># The base location of the cgi scripts for AtDot
>$cgidir = "http://UCDhousestaff.com/cgi/email";
># Change these if you need to have, for example, .cgi instead of .pl
>$addbook_pl = $cgidir . "/addbook.acgi";
>$changeacct_pl = $cgidir . "/changeacct.acgi";
>$changepass_pl = $cgidir . "/changepass.acgi";
>$changesig_pl = $cgidir . "/changesig.acgi";
>$checkmail_pl = $cgidir . "/checkmail.acgi";
>$common_pl = $cgidir . "/common.pl";
>$delete_pl = $cgidir . "/delete.acgi";
>$folder_pl = $cgidir . "/folder.acgi";
>$login_pl = $cgidir . "/login.acgi";
>$messact_pl = $cgidir . "/messact.acgi";
>$mime_pl = $cgidir . "/mime.acgi";
>$newuser_pl = $cgidir . "/newuser.acgi";
>$options_pl = $cgidir . "/options.acgi";
>$send_pl = $cgidir . "/send.acgi";
>
># The URL of the homepage
>$homepage_url = "http://www.UCDhousestaff.com/";
>
># The URL of the logo
>$logo_url = "http://www.UCDhousestaff.com/ucd/ucdhousestaff.gif";
>
># Colors for the list of mail
>$odd_row_color = "#E0E0FF";
>$even_row_color = "#E0FFE0";
>
>###########################################################################
># Features to turn on or off
>###########################################################################
>
># Mail forwarding: 0 = local delivery, 1 = create aliases
># If this is set to 0, AtDot will act like HotMail
># If this is set to 1, AtDot will make fake addresses (e.g. [EMAIL PROTECTED]
># gets forwarded to [EMAIL PROTECTED])
>$feature_forward = 1;
I never debugged the software for when feature_forward was off. There
are problems, as I recall.
>
># Where sendmail does alias stuff
># If feature_forward is 0, this will be ignored
># If feature_forward is 1, this should be something like
>/etc/mail/virtusertable
>$usertable = '/etc/mail/virtusertable';
>
>
># 990204 - jrtietsort - since this runs on a web server and not a mail hub
># we don't want to mess with the sendmail stuff
># Set this to 1 if you are not running on a sendmail host
>$dont_mess_with_sendmail = 1;
>
># Address books: 0 = none, 1 = use address books
>$feature_abook = 1;
>
># Message folders: 0 = none, 1 = use folders
>$feature_folders = 0;
>
># POP server setting: 0 = let user specify server, 1 = admin specify server
># This is ignored if feature_forward is set to 0
># If this is set to 0, users can specify their own POP server
># If this is set to 1, specify the POP server below
>$feature_pop = 0;
>
># admin supplied POP server
>$singlepop = "pop.risley.net";
>
The rest of the file has error messages and some HTML templates. They
need to be modified as appropriate for your site, but the software
should at least run okay with them as-is.
Hope this is helpful.
--Ron
--
Ron Risley || To learn, and from time to time apply what
[EMAIL PROTECTED] || one has learned -- isn't that a pleasure?
www.risley.net || --Confucius
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>