Weird error with qmail email server

Posted on 2007-11-20
Last Modified: 2013-12-02
Hey guys

I got this error when trying to start qmail

qmailctl start
Starting qmail...

svok: fatal: unable to chdir to /service/qmail-send: file does not exist
qmail-send supervise not running
svok: fatal: unable to chdir to /service/qmail-smtpd: file does not exist
qmail-smtpd supervise not running
svok: fatal: unable to chdir to /service/qmail-pop3d: file does not exist
qmail-pop3d supervise not running

Now this is all well and good, the folders are meant to be where they should be so it cant be that

The symbolic links are as they should be, because I traced other people having this same issue, and they fixed it but mine is still broken :(

are the Symbolic links broken or corrupt or something? I really have no other leads what it could be so im a bit stuck you see :)

please help me
Question by:thechase22
  • 3
  • 2

Expert Comment

ID: 20324094
/service/qmail-send ,/service/qmail-smtpd, and /service/qmail-send  should all be symlinks pointing to their respective directories found in /var/qmail/supervise/  .

Can you manually  "cd /service/qmail-send"  and end up inside /var/qmail/supervise/qmail-send ?

If you're missing the structure inside /var/qmail/supervise, it should look something like
and so on, where run is the relevant service run script.

Author Comment

ID: 20326637
Hey thanks very much for your reply, here is what I got for your first question

cd /service/qmail-send
-bash: cd: /service/qmail-send: No such file or directory
[root@s15260266 html]# cd /service/
[root@s15260266 service]# ls
qmail-pop3d  qmail-send  qmail-smtpd
[root@s15260266 service]# cd qmail-send
-bash: cd: qmail-send: No such file or directory

and here is the othe thing:

 cd /var/qmail
[root@s15260266 qmail]# cd supervise
[root@s15260266 supervise]# ls
qmail-pop3d  qmail-send  qmail-smtpd
[root@s15260266 supervise]# pwd

This may also help u:

[root@s15260266 supervise]# cd qmail-pop3d
[root@s15260266 qmail-pop3d]# cd ../
[root@s15260266 supervise]# cd qmail-send
[root@s15260266 qmail-send]# cd ../
[root@s15260266 supervise]# cd qmail-smtpd
[root@s15260266 qmail-smtpd]#


ohh and before I forget, yes run directory in all the directorys I just mentioned.


Accepted Solution

nagehmai earned 500 total points
ID: 20329489
It sounds like your symbolic links in your /services directory are bad as you can't cd into them.  Your supervise installation sounds like it's good to go though.

Recreate the symlinks:

cd /services
rm *
ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /var/qmail/supervise/qmail-pop3d /service

The last line will recreate your symbolic links in /service pointing to the correct supervise directories.

Author Comment

ID: 20329691
ok I got this

It dont look happy chappy though

cd /service
[root@s15260266 service]# ls
qmail-pop3d  qmail-send  qmail-smtpd
[root@s15260266 service]# rm *
rm: remove symbolic link `qmail-pop3d'?
rm: remove symbolic link `qmail-send'?
rm: remove symbolic link `qmail-smtpd'?
[root@s15260266 service]# ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /var/qmail/supervise/qmail-pop3d /service
ln: creating symbolic link `/service/qmail-send' to `/var/qmail/supervise/qmail-send': File exists
ln: creating symbolic link `/service/qmail-smtpd' to `/var/qmail/supervise/qmail-smtpd': File exists
ln: creating symbolic link `/service/qmail-pop3d' to `/var/qmail/supervise/qmail-pop3d': File exists

Author Comment

ID: 20333528
I was desperate for your reply again last nite and this morning.

But I managed to have another go at it, your code was totally right, but when it asked me to remove the link, I pressed enter, as apposed to y.

I just re did this and I did qmailctrl start and its GROOVEY!!!

Thanks so muck for putting me in the right direction :)

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now