LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   problem with qmail (https://www.linuxquestions.org/questions/linux-networking-3/problem-with-qmail-223902/)

egyptian 08-29-2004 10:51 AM

problem with qmail
 
i've installed qmail for the first time,configured it from Life With Qmail
i faced a problem can't solve it myself:
first:
[root@localhost root]#nmap <my ip address>
(The 1656 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
110/tcp open pop3
111/tcp open rpcbind

Nmap run completed -- 1 IP address (1 host up) scanned in 1.505 seconds
###########
as you see smtp does not started


[root@localhost root]#svscan
supervise: fatal: unable to start qmail/run: file does not exist
supervise: fatal: unable to start Desktop/run: file does not exist
supervise: fatal: unable to start lwq_files/run: file does not exist
supervise: fatal: unable to start evolution/run: file does not exist
supervise: fatal: unable to start qmail/run: file does not exist
supervise: fatal: unable to start Desktop/run: file does not exist
supervise: fatal: unable to start lwq_files/run: file does not exist
supervise: fatal: unable to start evolution/run: file does not exist
supervise: fatal: unable to start qmail/run: file does not exist
supervise: fatal: unable to start Desktop/run: file does not exist
.
.
.
[root@localhost root]#ps -ef | grep qmail

root 2611 1 0 18:13 tty1 00:00:00 /usr/local/bin/tcpserver 0 pop3 /var/qmail/bin/qmail-popup sys1.value.com /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
root 4812 4811 0 18:30 ? 00:00:00 supervise qmail-smtpd
root 4816 4811 0 18:30 ? 00:00:00 supervise qmail-send
root 4820 4809 0 18:30 ? 00:00:01 readproctitle service errors: ...rvise/run: file does not exist?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?supervise: fatal: unable to start supervise/run: file does not exist?multilog: fatal: unable to lock directory /var/log/qmail: temporary failure?
qmails 5307 4816 0 18:34 ? 00:00:00 qmail-send
root 5309 5307 0 18:34 ? 00:00:00 qmail-lspawn ./Mailbox
qmailr 5310 5307 0 18:34 ? 00:00:00 qmail-rspawn
qmailq 5311 5307 0 18:34 ? 00:00:00 qmail-clean
qmaill 5313 4814 0 18:34 ? 00:00:00 /usr/local/bin/multilog t /var/log/qmail/smtpd
qmaill 5314 4818 0 18:34 ? 00:00:00 /usr/local/bin/multilog t /var/log/qmail
qmaill 7120 4812 0 18:47 ? 00:00:00 [multilog] <defunct>
root 7122 3383 0 18:47 pts/2 00:00:00 grep qmail

jamrock 08-29-2004 02:11 PM

qmail uses several scripts to control its behaviour. These are called run files. Did you create them?

egyptian 08-30-2004 01:18 AM

yes

maxut 08-30-2004 01:32 AM

u can install qmail by reading the guide at www.qmailrocks.org

DrNeil 08-30-2004 06:37 PM

optionally go for a decent mailer :D

just trying to get my live customer system on scamd and clamd and im patching myself mad :mad:

littleking 08-30-2004 09:44 PM

qmail rocks, you my friend look like you missed a couple of the installation steps... as our friend above mentioned... use www.qmailrocks.org to re-do your installation and be on your way.

Sutekh 08-30-2004 10:47 PM

svscan from memory tries to run a supervise thingy for every file in the current directory. Now if it is already running (resonably likely) then i'm pretty sure it will fail (because of file locks and the like).

Try running svstat * instead to see if they are already running.

This will tell you what is going and what it not (the ps is also helpful, but supervise is quite aggresive at getting things running so if it fails it tends to try again straight away meaning you pretty much always have a process for each of the progs (if you run ps a few times in a row you may notice the pid's changing)). Anyway run svstat to see what is going on. If there is anything that has been running for 0 or 1 second then check the logs to work out why it is failing. You can try svc -d <service> to stop it and then try to run it manually if you like, a good start if there is a prob.

The other thing is that it looks like you tried to run svscan in a user directory (only a guess but Desktop, evolution et al were a sign i was on the right track). The actual files are probably stored in /service/ so chdir there first before you do the above tests.

See how you go

egyptian 08-31-2004 01:24 AM

thanks for all
i'll try it later and send you the results:cool:

DrNeil 08-31-2004 03:46 AM

Quote:

Originally posted by littleking
qmail rocks, you my friend look like you missed a couple of the installation steps... as our friend above mentioned... use www.qmailrocks.org to re-do your installation and be on your way.
I didn't miss nothing as I took over from some numpty who installed that piece of mta junk without the sources. :mad: Now I am patching and patching. Too many patched variants. qmailrocks is an excellent guide, but if you take over from someone who did something its a horrible piece of software. It's running fine as it is. :) But upgrading to get spamd, clamd is just argghhhh.


All times are GMT -5. The time now is 10:24 AM.