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. |
You will need to remove the " " (space) just after the word PATH.
Once you save the file then the process should just start automatically. |
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 |
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 |
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. |
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 |
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 |
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 |
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 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. |
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. |
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. |