Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-24-2004, 12:10 AM
|
#1
|
Member
Registered: Mar 2004
Posts: 93
Rep:
|
qmail installation problem
dear friends,
I am isntalling a qmail in my computer. But I have faced some strange problems.
Installation was good and did it according to "livingwithqmail.org"--> good website. But even after following every steps, still the solution evades me. My problem when using
1) # qmailctl stat shows that:
/service/qmail-send: up (pid 3752) 1 seconds
/service/qmail-send/log: up (pid 3662) 356 seconds
/service/qmail-smtpd: up (pid 3663) 356 seconds
/service/qmail-smtpd/log: up (pid 3664) 357 seconds
messages in queue: 0
2) so i did used
./inst_check
but it said myLRQ isntallation ok...etc..
3) when manually started qmail-send's run script gave "env: PATH: No such file or directory"
run script is:
#!/bin/sh
exec /var/qmail/rc
rc script is
#!/bin/sh
exec env - PATH =" /var/qmail/bin : $PATH" \
qmail-start " `cat /var/qmail/control/defaultdelivery` "
4) then used
# ps -efl | grep "service errors" | grep -v grep
000 S root 775 749 0 75 0 - 326 pipe_w 10:06 ? 00:00:00
readproctitle service errors: ... No such file or directory?env: PATH: No such f[root@localhost qmail-send]# ps -efl | grep "service errors" | grep -v grep
000 S root 775 749 0 75 0 - 326 pipe_w 10:06 ? 00:00:00
e or directory?env: PATH: No such f
So, guyss do help me.
|
|
|
10-24-2004, 11:05 AM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You will need to remove the " " (space) just after the word PATH.
Once you save the file then the process should just start automatically.
|
|
|
10-24-2004, 11:04 PM
|
#3
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
thank you ross, but the prob still remains with followin message when running.
SO ran the "run" script manuallly which gave foll. messages:
./rc: line 3: exec: env - PATH=: not found
|
|
|
10-24-2004, 11:11 PM
|
#4
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
wait.../rc: line 3: exec: env -PATH=: not found was err messge for above
then gave "space in btwn - and PATH which resulted in mssg:
env: /var/qmail/bin : /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/lican:
No such file or directory
=============
by the way, my home directory is lica only, but how come it was lican..does this
has anything to do with my problem??
hope u guys out there will help me..bye
|
|
|
10-25-2004, 07:56 AM
|
#5
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
It looks like you still haev too many spaces... that line should look like this...
exec env - PATH="/var/qmail/bin:$PATH" \
Notice there are no spaces on either side of the colon.
|
|
|
10-26-2004, 12:07 AM
|
#6
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
dear friends,
i tried that too..but still problem...shows no PATH..while running "./rc"
env: /var/qmail/bin : /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/heena/bin:
No such file or directory
but i dont have a bin directory in lica..is this the problem...moreover i had isntalled as
root and how come a bin direcoty is for heena
pls. do reply
|
|
|
10-26-2004, 02:39 AM
|
#7
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
I'm no expert in this area, but something still seems wrong...
env: /var/qmail/bin : /usr/local/bin:/usr
You've still got those ugly spaces in there. Maybe you need to logout and log back in and run it again to refresh your environment? (Don't know if that's really necessary or not.. I'm just playing a hunch)
>> but i dont have a bin directory
You mean your /bin doesn't exist? If so, you can remove that from your path which is under ~/.bash_profile
|
|
|
10-29-2004, 04:20 AM
|
#8
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
thnxs for replies..but
"env: /var/qmail/bin : /usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/heena/bin"
is the message I rcvd
when I typed the ./rc FOR TESTING. Moreover there is now no more space in
exec env - PATH="/var/qmail/bin:$PATH" \ of rc script. I think there is
someother problem. foR EG: THE mssg (see above lines) shows
"../home/heena/bin" --> my home directory, but I dont have bin directory in my
home directory. Is this the problem? IF may be, what steps shud i take to correct
this? thnxs
|
|
|
10-29-2004, 06:58 AM
|
#9
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Did you try logging out and back in again, as I suggested?
Also check the content of your /var/qmail/rc file. Here's mine..
Code:
#!/bin/sh
exec env - PATH="/var/qmail/bin:/usr/local/bin" \
qmail-start ./Maildir/
Of course your third line looks different from mine, but it's still OK. The line I'm concerned about is #2 with the PATH info. I suggest copying and pasting mine into yours and try again.
If you want to convince me that your /var/qmail/rc file is correct, run the command and paste the output...
cat /var/qmail/rc
I also suggest running the ps command you are showing in your first post and see if it looks any better. I suspect it is showing the same thing. Try restarting qmail also and see if this ps error goes away.
|
|
|
11-01-2004, 07:27 AM
|
#10
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
thnxs, donboy, contents noted. but still problem persisted. SO, did
in rc script:
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH"
qmail-start " `cat /var/qmail/control/defaultdelivery` "
when did ./rc gave:
PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/heena/bin
but I dont have a bin direcoty in /home/heena (???)
moreover "qmailctl stat" gave:
/service/qmail-send: up (pid 6851) 1 seconds
/service/qmail-send/log: up (pid 6084) 710 seconds
/service/qmail-smtpd: up (pid 6087) 710 seconds
/service/qmail-smtpd/log: up (pid 6088) 711 seconds
messages in queue: 5
messages in queue but not yet preprocessed: 5
pls. do help me.
|
|
|
11-01-2004, 11:28 AM
|
#11
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
It doesn't matter that you dont' have /home/heena. qmail will not be looking there for anything.
What about running your ps -efl | grep "service errors" | grep -v grep again and see what that says. It should no longer say anything about the path being wrong. Be sure to restart qmail before testing this.
|
|
|
All times are GMT -5. The time now is 02:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|