LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-20-2004, 12:51 AM   #1
bLaDe
Member
 
Registered: May 2003
Location: Adelaide, Australia
Distribution: Fedora Core 3
Posts: 52

Rep: Reputation: 15
Qmail won't start


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.

Thanks
Cheers
Darren
 
Old 12-20-2004, 01:58 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
i prefer www.qmailrocks.org to install qmail. i can advice u to follow that guide for qmail.

good luck.
 
Old 12-20-2004, 02:38 AM   #3
bLaDe
Member
 
Registered: May 2003
Location: Adelaide, Australia
Distribution: Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
I have just tried that myself to no avail, when I get so far you have to stop qmail which comes back with exactly the same error.
 
Old 12-20-2004, 08:43 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

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

good luck.
 
Old 12-20-2004, 07:52 PM   #5
bLaDe
Member
 
Registered: May 2003
Location: Adelaide, Australia
Distribution: Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
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.

Cheers
Darren
 
Old 12-21-2004, 01:36 AM   #6
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
if "/downloads/qmailrocks/scripts/util/check_perlmods.script" shows u those perl modules installed, u can go with
rpm -Uvh --nodeps spamassassin-tools

good luck.
 
Old 12-21-2004, 03:10 AM   #7
bLaDe
Member
 
Registered: May 2003
Location: Adelaide, Australia
Distribution: Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
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.
 
Old 12-21-2004, 06:15 AM   #8
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
hmm. im not familiar to clamav. i use kaspersky antivrus.
it seems that it is a clam trouble.
what does "qmailctl stat" show?

also try to change following line in /var/qmail/bin/qmail-scanner-queue.pl to make sure that clam causes that.
Code:
 my @scanners_installed=("clamdscan_scanner","spamassassin","perlscan_scanner");
to
my @scanners_installed=("spamassassin","perlscan_scanner");
there can be permission trouble with clam.

Last edited by maxut; 12-21-2004 at 06:16 AM.
 
Old 12-21-2004, 01:02 PM   #9
bLaDe
Member
 
Registered: May 2003
Location: Adelaide, Australia
Distribution: Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
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.

Last edited by bLaDe; 12-21-2004 at 06:47 PM.
 
Old 02-27-2005, 03:18 PM   #10
rajbaxi
Member
 
Registered: Jul 2003
Location: MI
Distribution: redhat,mandrake,debian
Posts: 68

Rep: Reputation: 15
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.
 
Old 02-28-2005, 09:06 AM   #11
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
isnt it too much for softlimit?


from lifewithqmail.org:

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

try raising it to 3000000 or 4000000.

good luck.
 
  


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 /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 20 04-19-2016 11:27 PM
Need help with /var/qmail/supervise/qmail-smtpd/run coolamit78 Linux - Networking 4 02-02-2012 10:50 AM
Open Webmail / Mailfront / smtpfront-qmail / qmail-smtpd Apollo77 Linux - Software 2 01-20-2009 03:33 AM
Can't start qmail-smtpd Madrinator Linux - Networking 6 01-06-2006 11:06 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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