Hi everyone,
In my /etc/rc.d/init.d/sendmail file, this is what there was originally
start() { # Start daemons.
echo -n $"Starting $prog: " /usr/bin/newaliases > /dev/null 2>&1 if test -x /usr/bin/make -a -f /etc/mail/Makefile ; then make all -C /etc/mail -s else for i in virtusertable access domaintable mailertable ; do if [ -f /etc/mail/$i ] ; then makemap hash /etc/mail/$i < /etc/mail/$i fi done fi daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) $([ -n "$QUEUE" ] && echo -q$QUEUE) RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sendmail
if ! test -f /var/run/sm-client.pid ; then echo -n $"Starting sm-client: " touch /var/run/sm-client.pid chown smmsp:smmsp /var/run/sm-client.pid daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac -q $SMQUEUE RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client fi
return $RETVAL }
I added the following line because the sm-client.pid file was being created and it's always empty, so when I shut sendmail down or restart it, it would fail, and I would have to kill manually. I added this right after the daemon sm-client line.
ps waux | grep '^smmsp' | cut -d ' ' -f 5 > /var/run/sm-client.pid
This worked, but could someone show me what your files contain. The way I did it probably isn't the best way to fix this.
Thanks, Jake McHenry
MIS Coordinator Nittany Travel http://www.nittanytravel.com 570.748.6611 x108
Am Sa, den 31.07.2004 schrieb Jake McHenry um 6:17:
In my /etc/rc.d/init.d/sendmail file, this is what there was originally
start() {
if ! test -f /var/run/sm-client.pid ; then echo -n $"Starting sm-client: " touch /var/run/sm-client.pid chown smmsp:smmsp /var/run/sm-client.pid daemon --check sm-client /usr/sbin/sendmail -L sm-msp-queue -Ac -q $SMQUEUE RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/sm-client fi
I added the following line because the sm-client.pid file was being created and it's always empty, so when I shut sendmail down or restart it, it would fail, and I would have to kill manually. I added this right after the daemon sm-client line.
Hm, you then broke something. The daemon line quoted above fills the pid file with the content.
ps waux | grep '^smmsp' | cut -d ' ' -f 5 > /var/run/sm-client.pid
This worked, but could someone show me what your files contain. The way I did it probably isn't the best way to fix this.
$ cat /var/run/sm-client.pid 16419 /usr/sbin/sendmail -L sm-msp-queue -Ac -q 1h
$ cat /var/run/sendmail.pid 16410 /usr/sbin/sendmail -bd -q1h
Jake McHenry
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 9:24 AM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
OK, I found this. /etc/rc.d/init.d/functions creates killproc to look in /var/run for the pid file, which exists but was empty. I don't see the /var/spool directory in any of the /etc/rc.d files.. where would this be stored?
[root@ntlh root]# locate sm-client.pid /var/run/sm-client.pid /var/spool/clientmqueue/sm-client.pid
[root@ntlh root]# cat /var/spool/clientmqueue/sm-client.pid 2308 /usr/sbin/sendmail -L sm-msp-queue -Ac -q 1h
Thanks, Jake McHenry
MIS Coordinator Nittany Travel http://www.nittanytravel.com 570.748.6611 x108
Am Sa, den 31.07.2004 schrieb Jake McHenry um 18:53:
OK, I found this. /etc/rc.d/init.d/functions creates killproc to look in /var/run for the pid file, which exists but was empty. I don't see the /var/spool directory in any of the /etc/rc.d files.. where would this be stored?
[root@ntlh root]# locate sm-client.pid /var/run/sm-client.pid /var/spool/clientmqueue/sm-client.pid
[root@ntlh root]# cat /var/spool/clientmqueue/sm-client.pid 2308 /usr/sbin/sendmail -L sm-msp-queue -Ac -q 1h
Very strange. Neither on FC1, FC2 nor on Redhat 9 the queue runner pid file is created in it's spool directory. That is indeed the wrong place for it. You will have to find out what causes that.
find /etc -print0 | xargs -0 grep "/var/spool/clientmqueue"
find /etc -print0 | xargs -0 grep "sm-client.pid"
Please tell me, did you upgrade from a former Redhat release, maybe even a 7.x version? Did you install non Fedora stuff related to mail services either by RPM or by source?
Jake McHenry
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 1:09 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
Looks like it's in the submit.mc file. I'm going to try to change it to /var/run/sm-client.pid. Here is the output
[root@ntlh root]# find /etc -print0 | xargs -0 grep /var/spool/clientmqueue /etc/mail/submit.cf:O QueueDirectory=/var/spool/clientmqueue /etc/mail/submit.cf:O StatusFile=/var/spool/clientmqueue/sm-client.st /etc/mail/submit.cf:O PidFile=/var/spool/clientmqueue/sm-client.pid /etc/mail/submit.cf.bak:O QueueDirectory=/var/spool/clientmqueue /etc/mail/submit.cf.bak:O StatusFile=/var/spool/clientmqueue/sm-client.st [root@ntlh root]# find /etc -print0 | xargs -0 grep sm-client.pid /etc/rc.d/init.d/sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/init.d/sendmail: touch /var/run/sm-client.pid /etc/rc.d/init.d/sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/init.d/sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/init.d/sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6
/var/run/sm-client.pid
/etc/rc.d/init.d/sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/init.d/sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc0.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc0.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc0.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc0.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc0.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc0.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc0.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc1.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc1.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc1.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc1.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc1.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc1.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc1.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc2.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc2.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc2.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc2.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc2.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc2.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc2.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc3.d/S80sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc3.d/S80sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc3.d/S80sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc3.d/S80sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc3.d/S80sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc3.d/S80sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc3.d/S80sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc4.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc4.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc4.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc4.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc4.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc4.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc4.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc5.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc5.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc5.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc5.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc5.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc5.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc5.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/rc.d/rc6.d/K30sendmail: if ! test -f /var/run/sm-client.pid ; then /etc/rc.d/rc6.d/K30sendmail: touch /var/run/sm-client.pid /etc/rc.d/rc6.d/K30sendmail: chown smmsp:smmsp /var/run/sm-client.pid /etc/rc.d/rc6.d/K30sendmail: chmod go-rwx /var/run/sm-client.pid /etc/rc.d/rc6.d/K30sendmail: ps waux | grep '^smmsp' | cut -d ' ' -f 6 > /var/run/sm-client.pid /etc/rc.d/rc6.d/K30sendmail: if test -f /var/run/sm-client.pid ; then /etc/rc.d/rc6.d/K30sendmail: [ $RETVAL -eq 0 ] && rm -f /var/run/sm-client.pid /etc/mail/submit.cf:O PidFile=/var/spool/clientmqueue/sm-client.pid /etc/mail/submit.mc:define(`confPID_FILE', `/var/run/sm-client.pid')dnl /etc/mail/submit.cf.bak:O PidFile=/var/run/sm-client.pid
Am Sa, den 31.07.2004 schrieb Jake McHenry um 20:39:
Looks like it's in the submit.mc file. I'm going to try to change it to /var/run/sm-client.pid. Here is the output
[root@ntlh root]# find /etc -print0 | xargs -0 grep /var/spool/clientmqueue /etc/mail/submit.cf:O QueueDirectory=/var/spool/clientmqueue /etc/mail/submit.cf:O StatusFile=/var/spool/clientmqueue/sm-client.st /etc/mail/submit.cf:O PidFile=/var/spool/clientmqueue/sm-client.pid
As I said in my reply in the other thread: you have no Fedora Sendmail.
Alexander
On Sat, Jul 31, 2004 at 10:21:21PM +0200, Alexander Dalloz wrote:
Looks like it's in the submit.mc file. I'm going to try to change it to /var/run/sm-client.pid. Here is the output
[root@ntlh root]# find /etc -print0 | xargs -0 grep /var/spool/clientmqueue /etc/mail/submit.cf:O QueueDirectory=/var/spool/clientmqueue /etc/mail/submit.cf:O StatusFile=/var/spool/clientmqueue/sm-client.st /etc/mail/submit.cf:O PidFile=/var/spool/clientmqueue/sm-client.pid
As I said in my reply in the other thread: you have no Fedora Sendmail.
Or he has not looked at rpm config files like this one:
/etc/mail/submit.cf.rpmnew
It is so important after updates to look at and resolve the changes in all the rpmnew and rpmsave files.
$ locate rpmsave $ locate rpmnew
Then run a diff on the old and the new:
# diff /etc/mail/submit.cf.rpmnew /etc/mail/submit.cf
and yes, upgraded from redhat 9
Thanks, Jake McHenry
MIS Coordinator Nittany Travel http://www.nittanytravel.com 570.748.6611 x108
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 1:09 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
Am Sa, den 31.07.2004 schrieb Jake McHenry um 20:40:
and yes, upgraded from redhat 9
Jake McHenry
A broken upgrade! Check each and every package you have on the system and make sure it is the current Fedora version! Else there is a hight risk you run vulnerable services (though the RH9 Sendmail 8.12.8 is patched against the serious bugs from last year). But the system is not correct and you don't know what might happen.
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 4:23 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
Just did a disk check, it says the fedora cd's I have are not right. Reinstalling RedHat 9 for now. Is there anyone still on the shrike list? To help with the SMTP-AUTH, or is there a different way of doing it? The link you sent me said it would work with RedHat 9 and fedora....
Thanks, Jake McHenry
MIS Coordinator Nittany Travel http://www.nittanytravel.com 570.748.6611 x108
Am Sa, den 31.07.2004 schrieb Jake McHenry um 22:34:
Just did a disk check, it says the fedora cd's I have are not right. Reinstalling RedHat 9 for now. Is there anyone still on the shrike list? To help with the SMTP-AUTH, or is there a different way of doing it? The link you sent me said it would work with RedHat 9 and fedora....
Jake McHenry
The setup steps are equal as it is both Sendmail version 8.12.
Be sure to install the latest update packages for RH9! this is very important in your case for Sendmail. Go to www.fedoralegacy.org and install yum and their repository to get even fixes for bugs which were fixed after EOL of RH9.
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 4:56 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
I've always used apt-get, is yum basically the same thing?
Am Sa, den 31.07.2004 schrieb Jake McHenry um 23:27:
I've always used apt-get, is yum basically the same thing?
http://www.fedoralegacy.org/docs/apt-rh9.php
So you can use apt too. The target of apt and yum as update and install tools handling dependencies is the same.
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 5:36 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
Ok, this is all done. I sent an email to the shrike list, but no one has answered.. not much talk on that list. Should I try to do SMTP AUTH again? Even if fedora didn't upgrade completely before, why didn't smtp-auth work? I reinstalled rh9, up and running, all updated packages, and configured some other things.. drac is running again... hopefully this works
Am Sa, den 31.07.2004 schrieb Jake McHenry um 23:42:
Ok, this is all done. I sent an email to the shrike list, but no one has answered.. not much talk on that list. Should I try to do SMTP AUTH again? Even if fedora didn't upgrade completely before, why didn't smtp-auth work? I reinstalled rh9, up and running, all updated packages, and configured some other things.. drac is running again... hopefully this works
If it runs ... I prefer SMTP AUTH. Your decision. You have the documentation links, and settings for Sendmail 8.12.8 on RH9 are equal to those on Fedora with Sendmail 8.12.10/11.
Alexander
----- Original Message ----- From: "Alexander Dalloz" alexander.dalloz@uni-bielefeld.de To: "For users of Fedora Core releases" fedora-list@redhat.com Sent: Saturday, July 31, 2004 1:09 PM Subject: Re: Sendmail Starting
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
Ok, I rebuilt the submit.mc file and it removed that entry. Really odd. It seems to be working fine now.