LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2005, 08:16 PM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Q-Mail


NOTE: I am new to qmail but not linux
I am following qmailrocks.org and everything was find till step 7, but at step8(qmailadmin)

when i run

http://192.168.1.3/cgi-bin/qmailadmin then it says

--------------------------------------------------
Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster

Error 403

192.168.1.3
Mon 03 Jan 2005 07:29:17 AM IST
Apache/2.0.40 (Red Hat Linux)


For reference.
-------------------

Apache Access Log
===================
192.168.1.3 - - [29/Dec/2004:04:00:51 +051800] "GET /webmail/images/sm_logo.png HTTP/1.1" 304 0 "http://192.168.1.3/webmail/src/redirect.php" "Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U Gecko/20030131"
192.168.1.3 - - [03/Jan/2005:07:24:53 +051800] "GET / HTTP/1.1" 302 14 "-" "Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U Gecko/20030131"
192.168.1.3 - - [03/Jan/2005:07:24:53 +051800] "GET /src/login.php HTTP/1.1" 200 2137 "-" "Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U Gecko/20030131"
192.168.1.3 - - [03/Jan/2005:07:25:04 +051800] "GET /cgi-bin/qmailadmin HTTP/1.1" 403 1053 "-" "Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U Gecko/20030131"
192.168.1.3 - - [03/Jan/2005:07:29:17 +051800] "GET /cgi-bin/qmailadmin HTTP/1.1" 403 1053 "-" "Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U Gecko/20030131"

Permissions
-------------------------
# ls -l /var/www/cgi-bin/
total 324
-rwxr-xr-x 1 root root 101608 Jan 26 2003 htsearch
-rwxr-xr-x 1 root root 48772 Jan 25 2003 namazu.cgi
-rwsr-sr-x 1 vpopmail vchkpw 120316 Jan 3 07:28 qmailadmin
-rwxr-xr-x 1 root root 42748 Jan 26 2003 qtest
drwxr-xr-x 3 vpopmail vchkpw 4096 Dec 19 07:46 vqadmin

# ls -l /var/www/
total 28
drwxr-xr-x 3 root root 4096 Jan 3 07:28 cgi-bin
drwxr-xr-x 3 root root 4096 Sep 8 17:18 error
drwxr-xr-x 7 root root 4096 Dec 18 01:05 html
drwxr-xr-x 3 root mailman 4096 Sep 8 19:19 icons
drwxr-xr-x 13 root root 4096 Sep 8 17:18 manual
drwxr-xr-x 2 root root 4096 Sep 8 19:10 nut-cgi-bin
drwxr-xr-x 6 root root 4096 Sep 8 21:21 wordtrans


-----------------------
links http://192.168.1.3/webmail/ , http://192.168.1.3/cgi-bin/vqadmin/vqadmin.cgi

are working fine.

#vi httpd.conf

<Directory "/var/www/cgi-bin">
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>


--------------------------
Apache Error Log
=========================

[Mon Jan 03 07:25:04 2005] [error] [client 192.168.1.3] client denied by server configuration: /var/www/cgi-bin/qmailadmin
[Mon Jan 03 07:29:17 2005] [error] [client 192.168.1.3] client denied by server configuration: /var/www/cgi-bin/qmailadmin



Apache access logs

[Mon Jan 03 07:25:04 2005] [error] [client 192.168.1.3] client denied by server configuration: /var/www/cgi-bin/qmailadmin
[Mon Jan 03 07:29:17 2005] [error] [client 192.168.1.3] client denied by server configuration: /var/www/cgi-bin/qmailadmin
 
Old 01-03-2005, 01:52 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Re: Q-Mail

Quote:
Originally posted by emailssent

#vi httpd.conf

<Directory "/var/www/cgi-bin">
deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>
remove those lines in httpd.conf, and if have /var/www/cgi-bin/.htaccess file, remove it too.

good luck.
 
Old 01-03-2005, 01:59 AM   #3
brettcave
LQ Newbie
 
Registered: Aug 2004
Location: Johannesburg, South Africa
Distribution: Mandrake, RH, Fedora
Posts: 22

Rep: Reputation: 15
or change the "deny from all" to "allow from all" (and check for .htaccess files)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Configure & Connect a Linux mail server from a windows mail clients digihall7 Linux - Networking 4 10-23-2006 12:21 PM
sendmail error Fetching mail could not lock /var/spool/mail/username sukhdev50 Linux - Networking 0 05-04-2005 03:41 AM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 12:53 PM
parsing mail.log with perl and calculate mail traffic on domain base markus1982 Programming 1 03-18-2003 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration