From owner-freebsd-questions Sat Jan 29 17:26:49 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.alpha.net.au (mail2.alpha.net.au [203.41.44.8]) by hub.freebsd.org (Postfix) with ESMTP id 0426B15908 for ; Sat, 29 Jan 2000 17:26:26 -0800 (PST) (envelope-from dannyh@alpha.net.au) Received: from dogbert ([203.41.44.172]) by mail.alpha.net.au (8.9.3/8.9.3) with SMTP id MAA03336 for ; Sun, 30 Jan 2000 12:27:28 +1100 Message-Id: <3.0.6.32.20000131122653.007b0dd0@192.168.1.194> X-Sender: dannyh@192.168.1.194 X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Mon, 31 Jan 2000 12:26:53 +1100 To: freebsd-questions@freebsd.org From: danny Subject: Why doesn't this *.pl work properly? Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_949242413==_" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" Hello, -I changed the settings in config.pl. - the pop settings are corrected - Followed the instruction in the README file -As shown in the attachment. Question 1) why do I get "Invalid username or password. Please try again." Looking forward to your feedback. --=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" Content-Disposition: attachment; filename="config.pl" #!/usr/bin/perl ########################################################################### # config.pl - Common variables and functions used by AtDot. This should # be the only file that needs to be edited. ########################################################################### # The site administrator $admin = "enquires\@alpha.net.au"; # The form method used here (GET or POST) $method = 'POST'; # The directory to store all the information in $dbdir = '/usr/home/fluffy/public_html/atdot/data'; # Wher to log (malicious?) attempts to hack other accounts $logfile = $dbdir . "log"; # The local domain $domain = "alpha.net.au"; # The SMTP server to use $smtpserver = "192.168.1.194"; # The version of the program; goes in X-Mailer header $version = "AtDot 2.0.1"; # The URL to put in X-URL mail header $x_url = "http://www.alpha.net.au/"; # The title for the web pages $title = "Alpha Dot Net"; # How long until sessions expire, in seconds $expire_time = 3600; # The base location of the cgi scripts for AtDot $cgidir = "http://192.168.1.195/cgi-bin/cgiwrap/~fluffy"; # Change these if you need to have, for example, .cgi instead of .pl $addbook_pl = $cgidir . "/addbook.pl"; $changeacct_pl = $cgidir . "/changeacct.pl"; $changepass_pl = $cgidir . "/changepass.pl"; $changesig_pl = $cgidir . "/changesig.pl"; $checkmail_pl = $cgidir . "/checkmail.pl"; $common_pl = $cgidir . "/common.pl"; $delete_pl = $cgidir . "/delete.pl"; $folder_pl = $cgidir . "/folder.pl"; $login_pl = $cgidir . "/login.pl"; $messact_pl = $cgidir . "/messact.pl"; $mime_pl = $cgidir . "/mime.pl"; $newuser_pl = $cgidir . "/newuser.pl"; $options_pl = $cgidir . "/options.pl"; $send_pl = $cgidir . "/send.pl"; # The URL of the homepage $homepage_url = "http://www.alpha.net.au/"; # The URL of the logo #$logo_url = "http://www.atdot.org/images/atdot/logo.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. user@atdot.org # gets forwarded to real@email.com) $feature_forward = 0; # 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 = '0'; # 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 = 0; # Address books: 0 = none, 1 = use address books $feature_abook = 1; # Message folders: 0 = none, 1 = use folders $feature_folders = 1; # POP server setting: 1 = 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 = 1; # admin supplied POP server $singlepop = "192.168.1.194"; ########################################################################### # Messages to show when a user does something ########################################################################### # When account information has been changed $accnt_change_info = "

Your account information has been successfully updated.

"; # Wrong password $wrong_pass_info = "

You entered the wrong password. Please try again.

"; # Not the same password twice $diff_pass_info = "

You didn't enter the same password twice.

"; # Password has a space or comma $pass_invalid_info= "

Your password can't have a space or comma in it.

"; # Password has been changed $pass_change_info = "

Your password has been changed.

"; # Missing field $missing_field_info = "

You missed a field.

"; # Wrong POP information $pop_wrong_info = "

You have entered the wrong POP username or password. Please try again.

"; # Can't delete $delete_no_info = "

You aren't allowed to delete this user.

"; # Account delete $delete_acct_info = "

Your account has been deleted

"; # No hint for user $hint_none_info = "

No such user or no hint.

"; # Hint information $hint_info = "

Your hint for yourself was:

"; # Wrong username or password $bad_login_info = "

Invalid username or password. Please try again.

"; # Good login $good_login_info = "

Login successful.

"; # Message deletion confirmation $mess_del_ask_info = "

Are you sure you want to delete the message(s)?

"; # Message deleted $message_delete_info = "

The message(s) has(have) been deleted.

"; # Username is in use $username_used_info = "

That username is currently in use. Try again.

"; # Bad username $bad_username_info = "

Your username must only have letters, numbers, hyphens, underscores, and dots in it, and must begin with a letter.

"; # New account $account_made_info = "

Your account has been created.

"; # Delete account confirmation $del_acct_ask_info = "

Are you sure you want to delete your account?

"; # Message sent $message_sent_info = "

The following message has been sent.

"; # Address book delete confirmation $abook_del_ask_info = "

Are you sure you want to delete the address book entry?

"; # Address book entry deleted $abook_del_info = "

The address book entry has been deleted.

"; # Address book entry added $abook_add_info = "

Your entry has been added to your address book.

"; # Address book entry updated $abook_update_info = "

The address book entry has been updated.

"; # An error encountered sending mail $no_send_info = "

An error was encountered sending your mail. Please try again.

"; # Message moved to a different folder $moved_info = "

The message has been moved.

"; # When a new folder has been created $folder_add_info = "

Folder created.

"; # When a user wants to delete a folder $folder_del_ask_info = "

Are you sure you want to delete this folder?

"; # When the folder is deleted $folder_del_info = "

The folder has been deleted.

"; # When a folder is renamed $folder_ren_info = "

The folder has been renamed.

"; # After logout $thank_you_info = "

Thank you for using the Mail Gateway. Please return to Alpha Dot Net

."; # After a cancel $cancel_info = "

Action cancelled.

"; # Session time out $timed_out_info = "

Your session has timed out. Please log back in.

"; # A hacker $hack_info = "

You may be attempting to abuse this service. Your attempt has been logged. Note: you may be getting this message because you are going through a proxy server and/or have a different IP address now than when you logged on. If so, please contact $admin.

"; # Button labels - Try to keep these unique, as name collisions could cause # problems. $login_button = "Login"; $forgot_button = "Forgotten Password"; $sendmsg_button = "Send a Message"; $chacct_button = "Change Options"; $chpass_button = "Change Password"; $delacct_button = "Delete Account"; $logout_button = "Logout"; $abook_button = "Address Book"; $check_button = "Check Mail (Inbox)"; $folder_button = "Folders"; $delmarked_button = "Delete Marked Messages"; $clrcheck_button = "Clear Check Marks"; $movemarked_button = "Move Marked Messages To:"; $movemsg_button = "Move Message To:"; $send_button = "Send"; $reset_button = "Reset Form"; $cancel_button = "Cancel"; $change_button = "Change"; $yes_button = "Yes"; $no_button = "No"; $newentry_button = "New Entry"; $delete_button = "Delete"; $modify_button = "Modify"; $sendto_button = "Send Mail To"; $openfolder_button = "Open Folder"; $newfolder_button = "New Folder"; $renfolder_button = "Rename Folder"; $delfolder_button = "Delete Folder"; $add_button = "Add"; $update_button = "Update"; $read_button = "Read"; $delmsg_button = "Delete"; $reply_button = "Reply"; $forward_button = "Forward"; $redirect_button = "Redirect"; $create_button = "Create"; $rename_button = "Rename"; ########################################################################### # Names of input fields, and various other small bits ########################################################################### $name_input = "Name:"; $email_input = "E-mail Address:"; $from_input = "From:"; $to_input = "To:"; $cc_input = "CC:"; $bcc_input = "BCC:"; $subj_input = "Subject:"; $mess_input = "Message:"; $foldname_input = "Folder Name:"; $username_input = "Username:"; $pass_input = "Password:"; $poppass_input = "POP Password:"; $curpass_input = "Current Password:"; $newpass_input = "New Password:"; $verify_input = "Verify New Password:"; $newhint_input = "New Hint:"; $hint_input = "Password Hint:"; $popserv_input = "POP Server:"; $popname_input = "POP Username:"; $sig_input = "Signature:"; $attach_input = "Attachment:"; $header_input = "Header Style:"; $adpass_input = "Password:"; $button_input = "Button Location:"; $default_input = "Default From: Address:"; # These next three are for redirected, forwarded, and replied to messages $resent_input = "Resent-From:"; $forward_input = "Forwarded message follows:"; $youwrote_input = "You wrote:"; # These next few are for listing and displaying messages $total_mess_info = "Total Messages"; $from_info = "From"; $subj_info = "Subject"; $date_info = "Date"; $size_info = "Size"; $mark_info = "Mark"; $status_info = "Status"; $new_info = "New!"; $nosubj_info = "No Subject Given"; $unknown_attach_info = "Unknown"; $fullhead_info = "Full"; $shorthead_info = "Short"; $topb_info = "Top of Screen"; $botb_info = "Bottom of Screen"; $both_info = "Both"; ########################################################################### # print_header - give all the pages a common header ########################################################################### sub print_header{ print $query->header; print $query->start_html(-title=>$title, -background=>'..grafix/main_bg2.gif'); print "
"; print "Mail Gateway"; print "
"; print "
"; } ########################################################################### # print_footer - give all the pages a common footer ########################################################################### sub print_footer{ print "
All enquries can be directed to"; print "Alpha Dot Net
"; print ""; } --=====================_949242413==_ Content-Type: text/plain; charset="us-ascii" --=====================_949242413==_-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message