LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 10-24-2004, 12:10 AM   #1
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93
Blog Entries: 1

Rep: Reputation: 15
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.
 
Old 10-24-2004, 11:05 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You will need to remove the " " (space) just after the word PATH.

Once you save the file then the process should just start automatically.
 
Old 10-24-2004, 11:04 PM   #3
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 10-24-2004, 11:11 PM   #4
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 10-25-2004, 07:56 AM   #5
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 10-26-2004, 12:07 AM   #6
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 10-26-2004, 02:39 AM   #7
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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
 
Old 10-29-2004, 04:20 AM   #8
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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
 
Old 10-29-2004, 06:58 AM   #9
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
Old 11-01-2004, 07:27 AM   #10
mchitrakar
Member
 
Registered: Mar 2004
Posts: 93

Original Poster
Blog Entries: 1

Rep: Reputation: 15
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.
 
Old 11-01-2004, 11:28 AM   #11
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Qmail installation problem. Peingune Linux - Newbie 10 07-06-2010 11:57 AM
Qmail (Qmail-pop3d) pop login problem Punker51 Linux - Software 2 07-22-2004 02:52 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
qmail installation problem stormblast Debian 3 06-14-2004 05:45 AM
qmail installation deepagodkhindi Linux - Networking 7 07-21-2003 11:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 AM.

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