LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-18-2002, 03:58 PM   #1
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Rep: Reputation: 16
qmail /service/qmail-send: unable to open supervise


I did everything as explaind in "life with qmail" http://www.lifewithqmail.org/lwq.html but when I type "qmailctl start" i got:

Starting qmail
qmail-send supervise not running
qmail-smtpd supervise not running

------------------------------------

When I type "qmailctl stat" I got:
/service/qmail-send: unable to open supervise/ok: file does not exist
/service/qmail-send/log: unable to open supervise/ok: file does not exist
/service/qmail-smtpd: unable to open supervise/ok: file does not exist
/service/qmail-smtpd/log: unable to open supervise/ok: file does not exist

-------------------------------------------------------
Here is the structure of my "/var/qmail/supervise" directory:
supervise
|-- qmail-send
| |-- log
| | `-- run
| `-- run
`-- qmail-smtpd
|-- log
| `-- run
`-- run

All this tree is owned by the user root and group qmail
All permission in this tree is 755

Help me please!
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-18-2002, 07:43 PM   #2
champ
Member
 
Registered: Jul 2002
Distribution: Slackware 10.0
Posts: 46

Rep: Reputation: 16
This is propably not the best solution, but try this script.
You have to change the uid and guid on the qmaild to what you have.
This also require that you have made a tcp.smtp.cdb file. This is used for access control(limit who can use your box as a relay)
If you havent made that file just remove "-x .....".

# Starting Qmail SMTP services
#

case $1 in
start)
echo "Starting QMAIL Server... "
/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -v -u 1004 -g 103 0smtp \
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &

/var/qmail/rc &
;;
stop)
echo "Stopping QMAIL Server... "
killall -9 tcpserver 2>&1
killall -9 qmail-lspawn 2>&1
;;
*)
echo "Syntax is: $0 {start|stop}"

esac

exit 0
 
1 members found this post helpful.
Old 07-18-2002, 07:45 PM   #3
champ
Member
 
Registered: Jul 2002
Distribution: Slackware 10.0
Posts: 46

Rep: Reputation: 16
just forgot to say that you also have to change the path to the tcpserver program and the qmail stuff if you have installed it another place....
 
Old 07-18-2002, 08:01 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,263

Rep: Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921
Do you have the following two symlinks?

/service/qmail-smtpd -> /var/qmail/supervise/qmail-smtpd
/service/qmail-send -> /var/qmail/supervise/qmail-send

--jeremy
 
Old 07-19-2002, 08:21 AM   #5
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
I have the links
here is my directory structure:

/var/qmail
drwxr-xr-x 11 root qmail 4096 Jul 18 18:32 qmail

/var/qmail/*
total 40
drwxr-sr-x 2 alias qmail 4096 Jul 18 16:08 alias
drwxr-xr-x 2 root qmail 4096 Jul 18 18:35 bin
drwxr-xr-x 2 root qmail 4096 Jul 18 14:26 boot
drwxr-xr-x 2 root qmail 4096 Jul 18 15:31 control
drwxr-xr-x 2 root qmail 4096 Jul 18 15:56 doc
drwxr-xr-x 10 root qmail 4096 Jul 18 16:14 man
drwxr-x--- 11 qmailq qmail 4096 Jul 18 11:48 queue
-rwxr-xr-x 1 root qmail 214 Jul 18 14:09 rc
drwxr-xr-x 4 root qmail 4096 Jul 18 15:17 supervise
drwxr-xr-x 2 root qmail 4096 Jul 18 11:48 users

there is no files in alias, at least I can't see them, but when Igive permissions an make symbolic links to supost files inh it there are no errors.

/var/qmail/bin
total 732
-rwxr-xr-x 1 root qmail 9208 Jul 18 11:48 bouncesaying
-rwxr-xr-x 1 root qmail 16212 Jul 18 11:48 condredirect
-rwxr-xr-x 1 root qmail 126 Jul 18 11:48 datemail
-rwxr-xr-x 1 root qmail 114 Jul 18 11:48 elq
-rwxr-xr-x 1 root qmail 9208 Jul 18 11:48 except
-rwxr-xr-x 1 root qmail 16028 Jul 18 11:48 forward
-rwxr-xr-x 1 root qmail 19116 Jul 18 11:48 maildir2mbox
-rwxr-xr-x 1 root qmail 8836 Jul 18 11:48 maildirmake
-rwxr-xr-x 1 root qmail 17420 Jul 18 11:48 maildirwatch
-rwxr-xr-x 1 root qmail 179 Jul 18 11:48 mailsubj
-rwxr-xr-x 1 root qmail 115 Jul 18 11:48 pinq
-rwxr-xr-x 1 root qmail 13032 Jul 18 11:48 predate
-rwxr-xr-x 1 root qmail 13136 Jul 18 11:48 preline
-rwxr-xr-x 1 root qmail 115 Jul 18 11:48 qail
-rwxr-xr-x 1 root qmail 11936 Jul 18 11:48 qbiff
-rwx--x--x 1 root qmail 10324 Jul 18 11:48 qmail-clean
-rwxr-xr-x 1 root qmail 2877 Jul 18 14:56 qmailctl
-rwxr-xr-x 1 root qmail 803 Jul 18 18:35 qmaildeamon
-rwx--x--x 1 root qmail 5848 Jul 18 11:48 qmail-getpw
-rwxr-xr-x 1 root qmail 35880 Jul 18 11:48 qmail-inject
-rwx--x--x 1 root qmail 36376 Jul 18 11:48 qmail-local
-rwx------ 1 root qmail 17600 Jul 18 11:48 qmail-lspawn
-rwx------ 1 root qmail 16448 Jul 18 11:48 qmail-newmrh
-rwx------ 1 root qmail 12340 Jul 18 11:48 qmail-newu
-rwxr-xr-x 1 root qmail 21592 Jul 18 11:48 qmail-pop3d
-rwx--x--x 1 root qmail 12480 Jul 18 11:48 qmail-popup
-rwx--x--x 1 root qmail 17228 Jul 18 11:48 qmail-pw2u
-rwxr-xr-x 1 root qmail 13272 Jul 18 11:48 qmail-qmqpc
-rwxr-xr-x 1 root qmail 16468 Jul 18 11:48 qmail-qmqpd
-rwxr-xr-x 1 root qmail 22416 Jul 18 11:48 qmail-qmtpd
-rwxr-xr-x 1 root qmail 16724 Jul 18 11:48 qmail-qread
-rwxr-xr-x 1 root qmail 371 Jul 18 11:48 qmail-qstat
-rws--x--x 1 qmailq qmail 12800 Jul 18 11:48 qmail-queue
-rwx--x--x 1 root qmail 26832 Jul 18 11:48 qmail-remote
-rwx--x--x 1 root qmail 16800 Jul 18 11:48 qmail-rspawn
-rwx--x--x 1 root qmail 40352 Jul 18 11:48 qmail-send
-rwxr-xr-x 1 root qmail 16844 Jul 18 11:48 qmail-showctl
-rwxr-xr-x 1 root qmail 27292 Jul 18 11:48 qmail-smtpd
-rwx------ 1 root qmail 5728 Jul 18 11:48 qmail-start
-rwxr-xr-x 1 root qmail 9200 Jul 18 11:48 qmail-tcpok
-rwxr-xr-x 1 root qmail 11344 Jul 18 11:48 qmail-tcpto
-rwxr-xr-x 1 root qmail 21924 Jul 18 11:48 qreceipt
-rwxr-xr-x 1 root qmail 11424 Jul 18 11:48 qsmhook
-rwxr-xr-x 1 root qmail 9584 Jul 18 11:48 sendmail
-rwx--x--x 1 root qmail 7128 Jul 18 11:48 splogger
-rwxr-xr-x 1 root qmail 17272 Jul 18 11:48 tcp-env

/var/qmail/boot
total 40
-rwxr-xr-x 1 root qmail 347 Jul 18 11:48 binm1
-rwxr-xr-x 1 root qmail 431 Jul 18 11:48 binm1+df
-rwxr-xr-x 1 root qmail 316 Jul 18 11:48 binm2
-rwxr-xr-x 1 root qmail 400 Jul 18 11:48 binm2+df
-rwxr-xr-x 1 root qmail 314 Jul 18 11:48 binm3
-rwxr-xr-x 1 root qmail 398 Jul 18 11:48 binm3+df
-rwxr-xr-x 1 root qmail 204 Jul 18 11:48 home
-rwxr-xr-x 1 root qmail 292 Jul 18 11:48 home+df
-rwxr-xr-x 1 root qmail 223 Jul 18 11:48 proc
-rwxr-xr-x 1 root qmail 309 Jul 18 11:48 proc+df


/var/qmail/boot
total 28
-rw-r--r-- 1 root root 3 Jul 18 15:31 concurrencyincoming
-rw-r--r-- 1 root root 11 Jul 18 14:52 defaultdelivery
-rw-r--r-- 1 root root 10 Jul 18 11:48 defaultdomain
-rw-r--r-- 1 root root 10 Jul 18 11:48 locals
-rw-r--r-- 1 root root 10 Jul 18 11:48 me
-rw-r--r-- 1 root root 10 Jul 18 11:48 plusdomain
-rw-r--r-- 1 root root 10 Jul 18 11:48 rcpthosts

/var/qmail/doc
/var/qmail/man
no need to show those

/var/qmail/queue
total 36
drwx------ 2 qmails qmail 4096 Jul 18 11:48 bounce
drwx------ 25 qmails qmail 4096 Jul 18 11:48 info
drwx------ 2 qmailq qmail 4096 Jul 18 11:48 intd
drwx------ 25 qmails qmail 4096 Jul 18 11:48 local
drwxr-x--- 2 qmailq qmail 4096 Jul 18 11:48 lock
drwxr-x--- 25 qmailq qmail 4096 Jul 18 11:48 mess
drwx------ 2 qmailq qmail 4096 Jul 18 11:48 pid
drwx------ 25 qmails qmail 4096 Jul 18 11:48 remote
drwxr-x--- 2 qmailq qmail 4096 Jul 18 11:48 todo
if you want I can show the rest of the "queue" tree

/var/qmail/supervise
is all owned by root:qmail

/var/qmail/users
total 0
 
Old 07-19-2002, 08:22 AM   #6
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
ps ax |grep supervise
2664 pts/1 R 0:00 grep supervise

ps aux show nothing
 
Old 07-19-2002, 09:46 AM   #7
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
Is anyone going to help me or not? this is big problem dude!
 
Old 07-19-2002, 09:59 AM   #8
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,263

Rep: Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921
It's only been an hour since your last post. Anyway - What does a ls -l /service show?

--jeremy
 
Old 07-19-2002, 10:18 AM   #9
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
Thanks to starting helping me out

lrwxrwxrwx 1 root root 32 Jul 18 19:19 qmail-send -> /var/qmail/supervise/qmail-send/
lrwxrwxrwx 1 root root 33 Jul 18 19:19 qmail-smtpd -> /var/qmail/supervise/qmail-smtpd/

it was iwthout the final "/" before and not working in both ways
 
Old 07-19-2002, 10:35 AM   #10
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,263

Rep: Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921
Is svscan running? Do you have the appropriate line in /etc/inittab?

--jeremy
 
Old 07-19-2002, 10:53 AM   #11
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
How do I knwo if svcscan is running and what is it?

I did not entered anything on my inittab
/etc/inittab
#
# inittab This file describes how the INIT process should set up
# the system in a certain run-level.
#
# Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Marc Ewing and Donnie Barnes
#

# Default runlevel. The runlevels used by RHS are:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
# 4 - unused
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
id:3:initdefault:

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit

l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

# Things to run in every runlevel.
ud::once:/sbin/update

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

# When our UPS tells us power has failed, assume we have a few minutes
# of power left. Schedule a shutdown for 2 minutes from now.
# This does, of course, assume you have powerd installed and your
# UPS connected and working correctly.
pf::powerfail:/sbin/shutdown -f -h +2 "Power Failure; System Shutting Down"

# If power was restored before the shutdown kicked in, cancel it.
pr:12345:powerokwait:/sbin/shutdown -c "Power Restored; Shutdown Cancelled"


# Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

# Run xdm in runlevel 5
# xdm is now a separate service
x:5:respawn:/etc/X11/prefdm -nodaemon
 
Old 07-19-2002, 11:12 AM   #12
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,263

Rep: Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921Reputation: 3921
Whats is svscan - http://cr.yp.to/daemontools/svscan.html

Sounds like daemontools may not be installed correctly. Make sure you followed http://cr.yp.to/daemontools/install.html

--jeremy
 
Old 07-19-2002, 12:45 PM   #13
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
This is what happens when I run svscan inside /var/qmail/supervise

\supervise: fatal: unable to start supervise/run: file does not exist
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
supervise: fatal: unable to start supervise/run: file does not exist
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
supervise: fatal: unable to start supervise/run: file does not exist
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
supervise: fatal: unable to start supervise/run: file does not exist
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
multilog: fatal: unable to lock directory /var/log/qmail: temporary failure
 
Old 07-19-2002, 01:04 PM   #14
mangueJOE
Member
 
Registered: Nov 2001
Location: Brazil
Distribution: Ubuntu, Debian
Posts: 66

Original Poster
Rep: Reputation: 16
Do you recomend de use of the qinstall packge to install qmail and other addons?
 
Old 09-29-2004, 11:18 PM   #15
mylilalien
LQ Newbie
 
Registered: Sep 2003
Posts: 2

Rep: Reputation: 3
This is for reference purposes for those who get the error:

# qmailctl start
qmail-send supervise not running
qmail-smtpd supervise not running


Though the solution for me was simple, it took quite a while to track down.

The problem was during my install of daemontools, I did not want to restart my server (don't like resetting my uptime :-p ), even though the instructions said I should. This caused the problem that 'svscanboot' was not running, though it would have been started after a reboot. Well, I saved my uptime and solved the problem with one simple command:

# svscanboot &

Now when I start and stop qmail I get:
# qmail start
Starting qmail
# qmail stop
Stopping qmail...
qmail-smtpd
qmail-send



Hope this helps others solve their problem :-)
 
4 members found this post helpful.
  


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
Need help with /var/qmail/supervise/qmail-smtpd/run coolamit78 Linux - Networking 4 02-02-2012 11:50 AM
Open Webmail / Mailfront / smtpfront-qmail / qmail-smtpd Apollo77 Linux - Software 2 01-20-2009 04:33 AM
Qmail: unable to open pipe... Hackiller Linux - Software 0 11-17-2004 10:39 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM
/service/qmail-send/log: up (pid 1924) 20682 seconds, want down fuzzyash Linux - Software 0 02-18-2004 09:42 PM

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

All times are GMT -5. The time now is 02:46 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