LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2003, 05:36 AM   #1
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
First qmail install...HELP!


Hello All,

I'm trying to get a qmail install up and running (first time), but came accross this problem...

By the way, I'm using this HOW_TO: http://lifewithqmail.org/lwq.html

I'm supposed to verify that the "qmailctl stop" script runs, but it doesn't kill the processes:

# netstat -a | grep smtp
tcp 0 0 localhost:smtp *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2808 private/smtp
unix 2 [ ACC ] STREAM LISTENING 2844 private/bsmtp

# qmailctl stop
Stopping qmail...
qmail-smtpd
qmail-send

# netstat -a | grep smtp
tcp 0 0 localhost:smtp *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 2808 private/smtp
unix 2 [ ACC ] STREAM LISTENING 2844 private/bsmtp

So I went to the script itself:

<----BEGIN----->
.....

PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`

case "$1" in
start)
.............
fi
;;
stop)
echo "Stopping qmail..."
echo " qmail-smtpd"
svc -d /service/qmail-smtpd /service/qmail-smtpd/log
echo " qmail-send"
svc -d /service/qmail-send /service/qmail-send/log
if [ -f /var/lock/subsys/qmail ]; then
rm /var/lock/subsys/qmail
fi
;;

<----END----->

I checked both /service/..../.../..../ locations and they are present.....

So, what is wrong with the script?? Why does't it stop qmail?
 
Old 05-22-2003, 11:38 AM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Are you sure you killed any running sendmail/postfix processes and their strartups?

What does 'qmailctl stat' return?
 
Old 05-22-2003, 11:47 AM   #3
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
# ps -ef | grep sendmail
root 17981 17561 0 18:44 pts/5 00:00:00 grep sendmail
# ps -ef | grep postfix
root 1535 1 0 10:02 ? 00:00:00 /usr/lib/postfix/master
postfix 1553 1535 0 10:02 ? 00:00:00 qmgr -l -t fifo -u
postfix 16646 1535 0 18:22 ? 00:00:00 pickup -l -t fifo -u

How do I kill these gracefully?

# qmailctl stat
/service/qmail-send: down 23782 seconds, normally up
/service/qmail-send/log: down 23782 seconds, normally up
/service/qmail-smtpd: down 23781 seconds, normally up
/service/qmail-smtpd/log: down 23782 seconds, normally up
messages in queue: 0
messages in queue but not yet preprocessed: 0
 
Old 05-22-2003, 12:19 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It looks like you can successfully stop qmail, so your install appears to be working.

You will need to find out where your system is starting postfix and sendmail. Your first stop should be in /etc/inetd.conf and comment out any smtp references there with a # at the start of the line. Then you will need to re-read the inetd.conf - just do a 'kill -HUP <PID of inetd>' to reload it.

Check that there are no smtp lines (other than for qmail) in your /etc/inittab. If there are, comment them out and 'kill -HUP <PID of inittab>' (should be a PID of 1)

Since you're using SuSE you can use YaST to either remove sendmail and postfix or stop them from loading up at boot. Note that if you made the sendmail compatibily changes as outlined in the lifewithqmail docs that you may need to repeat the steps to create the symbolic links for sendmail compatibility.
 
Old 05-23-2003, 03:28 AM   #5
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
# grep "smtp" *.*
inetd.conf:# smtp stream tcp nowait root /usr/sbin/sendmail sendmail -L sendmail -Am -bs

I couldn't find any enabled entry for smtp in the /etc dir......???? Strange huh?

Any other thoughts where it could be starting from?
 
Old 05-23-2003, 03:45 AM   #6
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
Let me know if I am in the right track....

I tried this:

# find / -name "postfix"
/etc/sysconfig/postfix
/etc/init.d/postfix <----- went here
/etc/permissions.d/postfix
/etc/postfix
/lib/scpm/resource_types/service/get_deps/postfix
/var/adm/SuSEconfig/md5/etc/postfix
/var/spool/postfix
/usr/lib/postfix
/usr/sbin/postfix
/usr/share/doc/packages/postfix

This file /etc/init.d/postfix has all the initialization info.

Then I found this:

/etc/init.d/rc3.d/S14postfix

# ls -la S14postfix
lrwxrwxrwx 1 root root 10 Mar 13 17:03 S14postfix -> ../postfix

So as far as I understand...this is the one that's starting it....right?

What is the standard practice? Rename, edit....

So what should I do now?
 
Old 05-23-2003, 03:52 AM   #7
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
Hmmmm, I now tried this:


<---------------BEGIN--------------------->

# find / -name "*postfix*"
/etc/sysconfig/postfix
/etc/init.d/rc3.d/K08postfix
/etc/init.d/rc3.d/S14postfix <---- 1
/etc/init.d/rc5.d/K08postfix
/etc/init.d/rc5.d/S14postfix <----- 2....???
/etc/init.d/postfix
/etc/permissions.d/postfix
/etc/postfix
/etc/postfix/postfix-script
/etc/postfix/postfix-files
/lib/scpm/resource_types/service/get_deps/postfix
/var/adm/fillup-templates/sysconfig.mail-postfix
/var/adm/fillup-templates/rc.config.postfix.del
/var/adm/fillup-templates/sysconfig.postfix
/var/adm/backup/postfix-20030408-0.tar.gz
/var/adm/SuSEconfig/md5/etc/postfix
/var/lib/YaST2/you/i386/update/8.1/patches/postfix-9660
/var/lib/YaST2/you-installed/postfix-9660
/var/spool/postfix
/usr/lib/postfix
/usr/sbin/postfix
/usr/share/doc/sdb/en/html/kngu_postfix_myorigin.html
/usr/share/doc/packages/postfix
/usr/share/doc/packages/postfix/html/postfix.1.html
/usr/share/doc/packages/postfix/pfixtls/contributed/make-postfix-cert.sh
/usr/share/man/man1/postfix.1.gz
/usr/share/susehelp/meta/Manuals/Productivity/postfix.desktop
/usr/share/susehelp/meta/Manuals/Productivity/amavis-postfix.desktop
/usr/share/YaST2/scrconf/cfg_postfix.scr
/sbin/rcpostfix
/sbin/conf.d/SuSEconfig.postfix


<---------------END--------------------->


Why are there 2 start scripts? One at level 3 and one at 5?

Are there more scripts that I should be hunting for? How can I know for sure that I have cancelled out all the scripts?
 
Old 05-23-2003, 04:12 AM   #8
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
mcleodnine: YaST2 rocks!!!!!

I went with YaST2 to the runlevel editor and
found the entry for postfix.

Then Set/reset: disable
service;

Then Start/Stop/refresh stop service...done.
It saved the config....and that was it!


# netstat -a | grep smtp
#

Clean!

Last edited by vous; 05-23-2003 at 04:14 AM.
 
Old 05-23-2003, 04:51 AM   #9
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
TESTING.....

I have tried this in two ways:

#1 echo to: this_local_user | /var/qmail/bin/qmail-inject

#2 echo to: <xuserx>@yahoo.com | /var/qmail/bin/qmail-inject


And then I check....

# qmailctl stat
/service/qmail-send: up (pid 13441) 110 seconds
/service/qmail-send/log: up (pid 13443) 110 seconds
/service/qmail-smtpd: up (pid 13446) 110 seconds
/service/qmail-smtpd/log: up (pid 13451) 110 seconds
messages in queue: 2
messages in queue but not yet preprocessed: 0


But they are stuck in that queue and I'm not getting the email.....?!
 
Old 05-23-2003, 12:41 PM   #10
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Then we need to look in the logs. Try 'tail -100f /var/log/qmail/current | tai64nlocal' and see if you can get any hints as to why your mail is stuck.
 
Old 05-24-2003, 03:48 AM   #11
vous
Member
 
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Original Poster
Rep: Reputation: 30
# pwd
/var/log/qmail


# ls -la
total 17
drwxr-xr-x 3 qmaill root 144 May 22 12:01 .
drwxr-xr-x 7 root root 816 May 24 10:04 ..
-rw-r--r-- 1 qmaill nofiles 14286 May 24 10:04 current
-rw------- 1 qmaill nofiles 0 May 22 12:01 lock
drwxr-xr-x 2 qmaill root 264 May 23 10:07 smtpd
-rw-r--r-- 1 qmaill nofiles 0 May 22 12:01 state

I believe the logs are not "enabled"....is this the case? How would I enable them?
 
Old 05-24-2003, 04:08 AM   #12
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
[
Quote:
/service/qmail-send/log: up (pid 13443) 110 seconds
looks like your logging is running fine. Did you try 'tail -100 /var/log/qmail/current' (the tai64nlocal just pretty-prints the datestamp format used by the ucspi-tcp logging)
Quote:
-rw-r--r-- 1 qmaill nofiles 14286 May 24 10:04 current
looks like you have about 14k of logfiles you might want to invstigate.
 
  


Reply



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 install Salihou Linux - Software 1 04-18-2005 08:20 AM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM
Qmail Install erva Linux - Newbie 0 10-24-2003 12:40 AM
How do I install qmail-queue patch post install of qmail? cmisip Linux - Software 0 04-28-2003 11:10 PM
How to install Qmail and which version jolly Linux - Software 1 01-16-2003 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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