LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   qmail installation problem (https://www.linuxquestions.org/questions/linux-software-2/qmail-installation-problem-246568/)

mchitrakar 10-24-2004 12:10 AM

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.

david_ross 10-24-2004 11:05 AM

You will need to remove the " " (space) just after the word PATH.

Once you save the file then the process should just start automatically.

mchitrakar 10-24-2004 11:04 PM

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

mchitrakar 10-24-2004 11:11 PM

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

Donboy 10-25-2004 07:56 AM

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.

mchitrakar 10-26-2004 12:07 AM

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

Donboy 10-26-2004 02:39 AM

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

mchitrakar 10-29-2004 04:20 AM

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

Donboy 10-29-2004 06:58 AM

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.

mchitrakar 11-01-2004 07:27 AM

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.

Donboy 11-01-2004 11:28 AM

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 09:21 PM.