LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-17-2002, 04:44 AM   #1
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
qmail


Hi all. I have been trying for almost a week now to get my email system up and running. I have decided to install qmail because i read that the configuation was preatty easy, and it's secure. My problem is that i don't really understand how all of these programs are working together.

My main problem right now is as follows:

I wrote the start-up script and linked to it from /etc/rc.d/init.d
in the file it calls for "svc /service/qmail-smptd" and what not a bunch of times. these files are in /var/qmail/supervise, so i created the directory /service and linked it to /var/qmail/supervise

when i run /etc/rc.d/init.d/qmail start, I get this message:
Starting qmail
qmail-send supervise not running
qmail-smtpd supervise not running

I have installed fcron ucspi-tcp and daemon tools, but I don't understand to make it all work the way i want.

I have a small network in my house behind a lynksys router going to a dsl connection. I at least want to be able to check my email accounts with mutt. I don't know how the hell i ended up playing around w/ the server stuff, but now i have to finish the job so i can get rid of redhat. Any help would be a lot of help. thanks for your time
 
Old 08-17-2002, 05:12 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
well, i just linked the files to /etc/services and edited the qmailctl startup script to point there, now it starts up o.k. ONWARD HO!...
 
Old 08-17-2002, 06:28 AM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
I am still having trouble w/ the log stuff though, when i do stat, it says they've been up for either 1 or 0 seconds, but no more:

[/usr/sbin][03:28:14]> qmailctl stat
/etc/service/qmail-send: up (pid 1323) 1020 seconds
/etc/service/qmail-send/log: up (pid 3548) 1 seconds
/etc/service/qmail-smtpd: up (pid 1329) 1020 seconds
/etc/service/qmail-smtpd/log: up (pid 3549) 1 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0

Any suggestions?
 
Old 08-17-2002, 10:01 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,626

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Sounds like either your log service scripts are broken or the log dir doesn't exist or is unwriteable. Stop qmail (qmailctl stop) and then post your log/run scripts and the output of running the log/run scripts manually.

--jeremy
 
Old 08-18-2002, 12:27 AM   #5
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
Yeah, thanks i checked out the files and they needed to point to /usr/sbin rather than /usr/bin. Thanks for the tip.

What i really want to know (sorry if it's a dumb question, but i need an overall picture of what is going on), is how it all runs together.

I figure i have to configure mutt to check the correct format of mailboxes (right now, it says "/var/mail/root is not a mailbox" . Anywase, i got qmail-send and qmail-smpt working ... now what? where does ucspi-tcp and daemontools come in? can i configure so that users on my network send all mail through my isp's mail server (linux box is not a gateway). Do i still need something like fetchmail, or is that included with qmail?

Well, i'll be working away at this, so any help you guys could give me would be appreciated very much.

thank you
 
Old 08-18-2002, 12:12 PM   #6
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,626

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
Not sure what you mean by overall picture. Most mail clients will need to be configured to use Maildirs. From the daemontools site - "daemontools is a collection of tools for managing UNIX services". ucspi-tcp contains tcpserver which qmail uses to accept incoming tcpconnections.

--jeremy
 
Old 10-08-2002, 08:19 PM   #7
Geronimoo
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 7.2
Posts: 5

Rep: Reputation: 0
Hi.
I have the exact same problem as you described, but I dont understand what you mean by:

Quote:
well, i just linked the files to /etc/services and edited the qmailctl startup script to point there, now it starts up o.k.
Can you or someone who knows elaborate that so I can get my stuff running please?
Thanks in advance!
 
Old 10-09-2002, 04:07 AM   #8
RKris
Member
 
Registered: May 2002
Location: UK
Distribution: Mandriva linux
Posts: 152

Rep: Reputation: 15
hi,
Just follow this Howto.
http://www.flounder.net/qmail/qmail-howto.html

regards
Krishna
 
Old 10-09-2002, 09:59 AM   #9
Geronimoo
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 7.2
Posts: 5

Rep: Reputation: 0
Hello!
After applying my n00bish skillz on the problem, and with the help of that link, I concluded that the problem lies in the program "svscanboot" not being run at boot. When run from the commandline, qmail came up like a boner in the morning!
So the subsequent question is, why dosent it start at boot? How do I make it happen? I did install daemontools, latest edition with source, twice, but still no go.
Thanks!
 
Old 10-09-2002, 01:31 PM   #10
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
did you put the startup scripts in rc.d/init.d? have you checked out "life with qmail"?
 
Old 10-09-2002, 04:49 PM   #11
Geronimoo
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 7.2
Posts: 5

Rep: Reputation: 0
There is no problem with the startupscript qmailctl. Its linked to all the nice rc.d directories and if I start svscanboot and then use the script, qmail pops up and down at my command with logs and all. I followed the "life with qmail" thing first, however it gave an error on the qmail-smtpd/run file (missing ']') in the script. Then I took the run scripts from the link that RKris gave me and those worked fine. BUT the svscanboot dosent load at boot!
I have these entries in the inittab file:

SV:2345:respawn:/usr/bin/svscan-start /service
SX:S016:wait:/usr/bin/svscan-stopall /service
and at the last line:
SV:123456:respawn:/command/svscanboot

The problem is that the files the first two lines refer to do not exist at all in my computer. However, the last line should start it up shouldnt it? Also in rc.d the last line is :
csh -cf '/command/svscanboot &'
And that should also start it up! (I think)

How do I start it up? And why are those files missing? How do I uninstall daemontools and install it again?
 
Old 10-09-2002, 05:06 PM   #12
Geronimoo
LQ Newbie
 
Registered: Oct 2002
Distribution: Red Hat 7.2
Posts: 5

Rep: Reputation: 0
Huhu, after reading my own post I thought something was fishy in suburbia. Those mysterious first two lines in inittab were from my first attempt to install qmail and it was with some "supervise-scripts" wich I subsequently removed. So I just deleted those lines, moved up the /svscanboot to take their places, deleted the rc.d reference and voila! It runs smoothly as a river with no water!
 
Old 03-24-2004, 10:45 AM   #13
wmchew
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Hi Experts,

I have installed netqmail-1.05. Faced the same problems as you guys. I <qmailctl start>. It prompted me with this errors:

/usr/bin/qmailctl: line 16: svok: command not found
qmail-send supervise not running
/usr/bin/qmailctl: line 21: svok: command not found
qmail-smtpd supervise not running

then when i did a instchk(a script to check the functionality of qmail), i got these errors:-

/var/qmail/rc has bad magic cookie
...try: dos2unix /var/qmail/rc
! Couldn't find /usr/local/bin/multilog from daemontools
! Couldn't find /usr/local/bin/softlimit from daemontools
! Couldn't find /usr/local/bin/setuidgid from daemontools
! Couldn't find /usr/local/bin/supervise from daemontools
! Couldn't find /usr/local/bin/svok from daemontools
! Couldn't find /usr/local/bin/svscan from daemontools
! Couldn't find /usr/local/bin/tai64nlocal from daemontools
! Couldn't find SV entry in inittab
'! svscan /service' doesn't seem to be running
! Couldn't find /var/qmail/control/defaultdelivery
! /etc/tcp.smtp is missing
...try: echo '127.:allow,RELAYCLIENT=""' >>/etc/tcp.smtp
! /etc/tcp.smtp.cdb is missing
...try: /var/qmail/bin/qmailctl cdb

Thanks. Pls advices me.
 
Old 03-24-2004, 12:07 PM   #14
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
there s a cool web site about qmail installation at www.qmailrocks.org .. they have the best installation guide i have ever seen..

if u wanna get src.rpm files, visit www.qmailtoaster.com they support some of distro. so u wont spend much time to install qmail..
 
Old 04-07-2004, 03:53 AM   #15
mostafa_magdy
LQ Newbie
 
Registered: Apr 2004
Distribution: fedora core1,RHEL 3.0
Posts: 2

Rep: Reputation: 0
Exclamation Qmail is driving me crazy !!!!

Hi there !!!
i successfully installed net-qmail on fedora core1 and i didn't get any of your problems guys i got what you can call a CATASTROFE !!!
everything went fine untill i rebooted !! now smtp isn't working !!!!
i tried telnet on port 25 and i typed helo i got the response after ! MINUTE !!! the logs show no error !!!
someone told me maybe coz i didn't setup my DNS "although i did edit /etc/hosts" so, i configured bind "dig and dig - x work just fine"
BUT STILL THE PROBLEM REMAINS
 
  


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 /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 19 12-13-2008 07:14 PM
Qmail (Qmail-pop3d) pop login problem Punker51 Linux - Software 2 07-22-2004 03:52 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 12:29 PM


All times are GMT -5. The time now is 05:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration