FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi Guys,
I thought I had made a thread about this already but I don't seem to be able to find it so I'll pop it up again.
I have just followed through the guide QmailToaster Guide - Start to Finish, link here and everything went really well.
One tiny problem though whenever I attempt to start, restart or do anything with qmail I get the following (In the following I did a restart)
Code:
Restarting qmail:
* Stopping qmail-smtpd.
svc: warning: unable to chdir to /service/qmail-smtpd: file does not exist
svc: warning: unable to chdir to /service/qmail-smtpd/log: file does not exist
* Sending qmail-send SIGTERM and restarting.
svc: warning: unable to chdir to /service/qmail-send: file does not exist
svc: warning: unable to chdir to /service/qmail-send/log: file does not exist
* Sending qmail-pop3d SIGTERM and restarting.
svc: warning: unable to chdir to /service/qmail-pop3d: file does not exist
svc: warning: unable to chdir to /service/qmail-pop3d/log: file does not exist
* Restarting qmail-smtpd.
svc: warning: unable to chdir to /service/qmail-smtpd: file does not exist
svc: warning: unable to chdir to /service/qmail-smtpd/log: file does not exist
When I look in the above mentioned directory I see some links of some description pointing to /var/qmail/service/qmail-pop3d, /var/qmail/service/qmail-send etc
I am at a bit of a loss, I have tried going back over this to no avail, I really don't know what I'm missing.
I'm running FC3 with all the latest updates if that's of any help.
remove old packets first. if prevous installation was rpm based (i think it was), remove them with rpm command.
do
rpm -qa|grep toaster
so it will show u packets which includes "toaster" word. note that names. DO NOT note packets which are not related to qmail-toaster.
after that remove them like this:
rpm -e packet1-toaster packet2-toaster .... packet(x)-toaster
after that delete qmail and its softwares dir
rm -rf /var/qmail
rm -rf /var/log/qmail
rm -rf /home/vpopmail
also check last line of /etc/inittab file. it musnt have a line like this:
SV:123456:respawn:env .....
Thanks for that maxut, I went through and did as instructed removing anything to do with toaster and my failed qmailrocks install and went about installing from scratch.
I've run through all the way up to part 14 and despite getting stuck on some perl modules which have been installed but spamassassin-tools doesn't pick them up, nevertheless it's at least a lot happier.
Thanks once again, it's really put a smile on my face seeing some progress.
I tried that script as per the instructions, all passed with flying colours from what I can see and installed spamassassin-tools using --nodep which worked fine.
Although further down the track when I run
/downloads/qmailrocks/qmail-scanner-1.24/contrib/
./test_installation.sh I get the following
Code:
[root@test contrib]# /downloads/qmailrocks/qmail-scanner-1.24/contrib/./test_installation.sh -doit
QMAILQUEUE was not set, defaulting to /var/qmail/bin/qmail-scanner-queue.pl for this test...
Sending standard test message - no viruses...
done!
Sending eicar test virus - should be caught by perlscanner module...
qmail-inject: fatal: qq temporary problem (#4.3.0)
Bad error. qmail-inject died
Looking at the maillog file I see
Code:
Dec 21 18:54:21 test X-Antivirus-MYDOMAIN-1.24-st-qms: [test.justcommodores.com.au110361746176019702] clamdscan: corrupt or unknown clamd scanner error or memory/resource/perms problem - exit status 512/2
I receive the first email but none of the other 3.
I actually found a similar post in another language regarding changing the qmail-scanner-queue.pl file which as soon as I changed it everything worked as expected so as you were pointing it certainly is something to do with ClamAV which is great to know.
Running qmailctl stat I get
Code:
/service/qmail-send: up (pid 18427) 58620 seconds
/service/qmail-send/log: up (pid 18432) 58620 seconds
/service/qmail-smtpd: up (pid 18435) 58620 seconds
/service/qmail-smtpd/log: up (pid 18440) 58620 seconds
/service/qmail-pop3d: up (pid 18443) 58620 seconds
/service/qmail-pop3d/log: up (pid 18444) 58620 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0
Thanks for all your maxut, it's been very much appreciated!
EDIT
I am not sure what I did but I went back over anything that seemed relevant, rebooted the system and bob's your uncle it's now working.
Once again thank you very much maxut for all your help and answering all the questions I have put forward.
I think I saw this same problem, however, not during install. Assuming your qmail directory is, /var/qmail, check the /var/qmail//supervise/qmail-smtpd/run file. Check the size of the softlimit entry. I had mine set to 5000000 and I still had problems. I tried 10000000 as well. So, I decided to crank it up to like 50000000 and I haven't seen that problem again. So, try increasing the softlimit and see if that works.
Note: The memory limit specified in the softlimit command may need to be raised depending upon your operating system and hardware platform. If attempts to connect to port 25 fail or remote systems are unable to send you mail, or you see a message like:
/usr/local/bin/tcpserver: error while loading shared libraries:
libc.so.6: failed to map segment from shared object: Cannot
allocate memory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.