Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* HELP! Update Problem!
@ 1999-10-10  4:00 4x4
  1999-10-10  4:00 ` 4x4
  1999-10-11  4:00 ` Marco Benton
  0 siblings, 2 replies; 4+ messages in thread
From: 4x4 @ 1999-10-10  4:00 UTC (permalink / raw)


Hi everyone, I just did an upgrade from DU 4.0 - 4.0d.... The only
problem is that my mail is not working at all. I get the message
unable to start mail service........

The script in /sbin/rc2.d/K30sendmail  will not start sendmail.......

The script*************

#!/sbin/sh

#
#
# OSF/1 Release 1.0

PATH=/sbin:/usr/sbin:/usr/bin
export PATH

ARGS=`rcmgr get SENDMAIL_ARGS`
ARGS=${ARGS:-"-om"}		# D'flt: send to sender too

MQUEUE=/var/spool/mqueue

#
# Number of days before pruning out dead files.
#
# TIMEOUT_QUEUERUN should be set to the number of days before a mail
#   message is rejected, with RFC 1123 recommending a minimum of 4-5
days.
#   This value should correspond (or be greater than) the value in the
#   sendmail.cf file.  By default, sendmail V8 uses 5 (O
Timeout.queuerun=5d),
#   while other sendmail pkgs typically used 3 (OT3d).
# CLEAN_MISC is used to clean out other queuefile cruft, while
# CLEAN_DEAD is used to clean out dead letters and core files.
#
# Note: find actually adds a day to these numbers, so if you specify
#   5, it will clean out files >= 6 days old.
#
TIMEOUT_QUEUERUN=5
CLEAN_MISC=2
CLEAN_DEAD=7

cleanqueue() {
    # Cleans out any old files from the Queue directory.
    #
    # If you wish to save any file, rename it or put it in a
subdirectory,
    # e.g. $MQUEUE/save.d/core

    # Find all the old files
    find $MQUEUE \( \( -name '[xtlnQT]f*' -mtime +$CLEAN_MISC \) -o \
    \( \( -name core -o -name dead.letter \) -mtime +$CLEAN_DEAD \) -o
\
    \( -name '[dq]f*' -mtime +$TIMEOUT_QUEUERUN \) \) -print |
	while read name; do
	    # Remove *only* the files directly in $MQUEUE
	    if [ `dirname $name` = $MQUEUE ]; then
		rm -f $name
	    fi
	done
}


case "$1" in
'start')
	set `who -r`
	if [ "$9" = "S" ]; then
		if [ -f /usr/sbin/sendmail ]; then 
			# cleanqueue
			# Frozen configs not supported
			# /usr/sbin/sendmail -bz
			/usr/sbin/sendmail -bi

			# Use rcmgr to modify the command line args;
			# if multiple "-q" args are given, the last
one wins
			/usr/sbin/sendmail -bd -q15m ${ARGS} &

			echo "SMTP Mail Service started"
		else
			echo "Unable to start SMTP Mail Service, No
/usr/sbin/sendmail"
			exit 1
		fi
	else
		echo "Unable to start SMTP Mail Service, Run level
must be S"
		exit 1
	fi
	;;
'stop')
	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
's/^  *//' -e 's/ .*//' | head -1`
	if [ "X$pid" != "X" ]; then
		/bin/kill $pid
	else
		echo "No pid for SMTP Mail Service found"
		exit 1
	fi
	;;
'restart')
	/sbin/init.d/sendmail stop
	if [ $? -ne 0 ]; then
		echo "  -- Could not find running sendmail -
attempting to restart..."
	fi
	sleep 2
	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
's/^  *//' -e 's/ .*//' | head -1`
	if [ "X$pid" != "X" ]; then
		sleep 3
		pid=`/bin/ps -e | grep sendmail | grep connection |
sed -e 's/^  *//' -e 's/ .*//' | head -1`
		if [ "X$pid" != "X" ]; then
			echo "Could not kill SMTP Mail Service" 
			echo "  -- Kill sendmail by hand then do a
start"
			exit 1
		fi
	fi
	/sbin/init.d/sendmail start | sed -e 's/start/restart/'
	;;
clean)
	cleanqueue
	;;
*)
	echo "usage: $0 {start|stop|restart|clean}"
	;;
esac




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HELP! Update Problem!
  1999-10-10  4:00 HELP! Update Problem! 4x4
@ 1999-10-10  4:00 ` 4x4
  1999-10-11  4:00   ` 4x4
  1999-10-11  4:00 ` Marco Benton
  1 sibling, 1 reply; 4+ messages in thread
From: 4x4 @ 1999-10-10  4:00 UTC (permalink / raw)


getting the following error:
Error connecting to mail server: Can't connect to xxx.xxx.xx,25:
Connectio

Is this a port problem???


On Sun, 10 Oct 1999 19:46:16 GMT, hx_101@hotmail.com (4x4) wrote:

>Hi everyone, I just did an upgrade from DU 4.0 - 4.0d.... The only
>problem is that my mail is not working at all. I get the message
>unable to start mail service........
>
>The script in /sbin/rc2.d/K30sendmail  will not start sendmail.......
>
>The script*************
>
>#!/sbin/sh
>
>#
>#
># OSF/1 Release 1.0
>
>PATH=/sbin:/usr/sbin:/usr/bin
>export PATH
>
>ARGS=`rcmgr get SENDMAIL_ARGS`
>ARGS=${ARGS:-"-om"}		# D'flt: send to sender too
>
>MQUEUE=/var/spool/mqueue
>
>#
># Number of days before pruning out dead files.
>#
># TIMEOUT_QUEUERUN should be set to the number of days before a mail
>#   message is rejected, with RFC 1123 recommending a minimum of 4-5
>days.
>#   This value should correspond (or be greater than) the value in the
>#   sendmail.cf file.  By default, sendmail V8 uses 5 (O
>Timeout.queuerun=5d),
>#   while other sendmail pkgs typically used 3 (OT3d).
># CLEAN_MISC is used to clean out other queuefile cruft, while
># CLEAN_DEAD is used to clean out dead letters and core files.
>#
># Note: find actually adds a day to these numbers, so if you specify
>#   5, it will clean out files >= 6 days old.
>#
>TIMEOUT_QUEUERUN=5
>CLEAN_MISC=2
>CLEAN_DEAD=7
>
>cleanqueue() {
>    # Cleans out any old files from the Queue directory.
>    #
>    # If you wish to save any file, rename it or put it in a
>subdirectory,
>    # e.g. $MQUEUE/save.d/core
>
>    # Find all the old files
>    find $MQUEUE \( \( -name '[xtlnQT]f*' -mtime +$CLEAN_MISC \) -o \
>    \( \( -name core -o -name dead.letter \) -mtime +$CLEAN_DEAD \) -o
>\
>    \( -name '[dq]f*' -mtime +$TIMEOUT_QUEUERUN \) \) -print |
>	while read name; do
>	    # Remove *only* the files directly in $MQUEUE
>	    if [ `dirname $name` = $MQUEUE ]; then
>		rm -f $name
>	    fi
>	done
>}
>
>
>case "$1" in
>'start')
>	set `who -r`
>	if [ "$9" = "S" ]; then
>		if [ -f /usr/sbin/sendmail ]; then 
>			# cleanqueue
>			# Frozen configs not supported
>			# /usr/sbin/sendmail -bz
>			/usr/sbin/sendmail -bi
>
>			# Use rcmgr to modify the command line args;
>			# if multiple "-q" args are given, the last
>one wins
>			/usr/sbin/sendmail -bd -q15m ${ARGS} &
>
>			echo "SMTP Mail Service started"
>		else
>			echo "Unable to start SMTP Mail Service, No
>/usr/sbin/sendmail"
>			exit 1
>		fi
>	else
>		echo "Unable to start SMTP Mail Service, Run level
>must be S"
>		exit 1
>	fi
>	;;
>'stop')
>	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
>'s/^  *//' -e 's/ .*//' | head -1`
>	if [ "X$pid" != "X" ]; then
>		/bin/kill $pid
>	else
>		echo "No pid for SMTP Mail Service found"
>		exit 1
>	fi
>	;;
>'restart')
>	/sbin/init.d/sendmail stop
>	if [ $? -ne 0 ]; then
>		echo "  -- Could not find running sendmail -
>attempting to restart..."
>	fi
>	sleep 2
>	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
>'s/^  *//' -e 's/ .*//' | head -1`
>	if [ "X$pid" != "X" ]; then
>		sleep 3
>		pid=`/bin/ps -e | grep sendmail | grep connection |
>sed -e 's/^  *//' -e 's/ .*//' | head -1`
>		if [ "X$pid" != "X" ]; then
>			echo "Could not kill SMTP Mail Service" 
>			echo "  -- Kill sendmail by hand then do a
>start"
>			exit 1
>		fi
>	fi
>	/sbin/init.d/sendmail start | sed -e 's/start/restart/'
>	;;
>clean)
>	cleanqueue
>	;;
>*)
>	echo "usage: $0 {start|stop|restart|clean}"
>	;;
>esac




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HELP! Update Problem!
  1999-10-10  4:00 ` 4x4
@ 1999-10-11  4:00   ` 4x4
  0 siblings, 0 replies; 4+ messages in thread
From: 4x4 @ 1999-10-11  4:00 UTC (permalink / raw)


This is the error message in the mailq....

AA01123        57 Mon Oct 11 00:15 root
                  (Operating system error)
                                   richard@pop
                                   mike@pop
AA01623        71 Mon Oct 11 00:20 root
                  (Operating system error)
                                   richard@pop
                                   mike@pop
AA05135        68 Mon Oct 11 02:21 root
                  (Operating system error)
                                   richard@pop
                                   mike@pop
AA06476        54 Mon Oct 11 02:31 root
                  (Operating system error)
                                   richard@pop
                                   mike@pop
AA26682   (no control file)


Thanks
On Sun, 10 Oct 1999 23:53:15 GMT, hx_101@hotmail.com (4x4) wrote:

>getting the following error:
>Error connecting to mail server: Can't connect to xxx.xxx.xx,25:
>Connectio
>
>Is this a port problem???
>
>
>On Sun, 10 Oct 1999 19:46:16 GMT, hx_101@hotmail.com (4x4) wrote:
>
>>Hi everyone, I just did an upgrade from DU 4.0 - 4.0d.... The only
>>problem is that my mail is not working at all. I get the message
>>unable to start mail service........
>>
>>The script in /sbin/rc2.d/K30sendmail  will not start sendmail.......
>>
>>The script*************
>>
>>#!/sbin/sh
>>
>>#
>>#
>># OSF/1 Release 1.0
>>
>>PATH=/sbin:/usr/sbin:/usr/bin
>>export PATH
>>
>>ARGS=`rcmgr get SENDMAIL_ARGS`
>>ARGS=${ARGS:-"-om"}		# D'flt: send to sender too
>>
>>MQUEUE=/var/spool/mqueue
>>
>>#
>># Number of days before pruning out dead files.
>>#
>># TIMEOUT_QUEUERUN should be set to the number of days before a mail
>>#   message is rejected, with RFC 1123 recommending a minimum of 4-5
>>days.
>>#   This value should correspond (or be greater than) the value in the
>>#   sendmail.cf file.  By default, sendmail V8 uses 5 (O
>>Timeout.queuerun=5d),
>>#   while other sendmail pkgs typically used 3 (OT3d).
>># CLEAN_MISC is used to clean out other queuefile cruft, while
>># CLEAN_DEAD is used to clean out dead letters and core files.
>>#
>># Note: find actually adds a day to these numbers, so if you specify
>>#   5, it will clean out files >= 6 days old.
>>#
>>TIMEOUT_QUEUERUN=5
>>CLEAN_MISC=2
>>CLEAN_DEAD=7
>>
>>cleanqueue() {
>>    # Cleans out any old files from the Queue directory.
>>    #
>>    # If you wish to save any file, rename it or put it in a
>>subdirectory,
>>    # e.g. $MQUEUE/save.d/core
>>
>>    # Find all the old files
>>    find $MQUEUE \( \( -name '[xtlnQT]f*' -mtime +$CLEAN_MISC \) -o \
>>    \( \( -name core -o -name dead.letter \) -mtime +$CLEAN_DEAD \) -o
>>\
>>    \( -name '[dq]f*' -mtime +$TIMEOUT_QUEUERUN \) \) -print |
>>	while read name; do
>>	    # Remove *only* the files directly in $MQUEUE
>>	    if [ `dirname $name` = $MQUEUE ]; then
>>		rm -f $name
>>	    fi
>>	done
>>}
>>
>>
>>case "$1" in
>>'start')
>>	set `who -r`
>>	if [ "$9" = "S" ]; then
>>		if [ -f /usr/sbin/sendmail ]; then 
>>			# cleanqueue
>>			# Frozen configs not supported
>>			# /usr/sbin/sendmail -bz
>>			/usr/sbin/sendmail -bi
>>
>>			# Use rcmgr to modify the command line args;
>>			# if multiple "-q" args are given, the last
>>one wins
>>			/usr/sbin/sendmail -bd -q15m ${ARGS} &
>>
>>			echo "SMTP Mail Service started"
>>		else
>>			echo "Unable to start SMTP Mail Service, No
>>/usr/sbin/sendmail"
>>			exit 1
>>		fi
>>	else
>>		echo "Unable to start SMTP Mail Service, Run level
>>must be S"
>>		exit 1
>>	fi
>>	;;
>>'stop')
>>	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
>>'s/^  *//' -e 's/ .*//' | head -1`
>>	if [ "X$pid" != "X" ]; then
>>		/bin/kill $pid
>>	else
>>		echo "No pid for SMTP Mail Service found"
>>		exit 1
>>	fi
>>	;;
>>'restart')
>>	/sbin/init.d/sendmail stop
>>	if [ $? -ne 0 ]; then
>>		echo "  -- Could not find running sendmail -
>>attempting to restart..."
>>	fi
>>	sleep 2
>>	pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
>>'s/^  *//' -e 's/ .*//' | head -1`
>>	if [ "X$pid" != "X" ]; then
>>		sleep 3
>>		pid=`/bin/ps -e | grep sendmail | grep connection |
>>sed -e 's/^  *//' -e 's/ .*//' | head -1`
>>		if [ "X$pid" != "X" ]; then
>>			echo "Could not kill SMTP Mail Service" 
>>			echo "  -- Kill sendmail by hand then do a
>>start"
>>			exit 1
>>		fi
>>	fi
>>	/sbin/init.d/sendmail start | sed -e 's/start/restart/'
>>	;;
>>clean)
>>	cleanqueue
>>	;;
>>*)
>>	echo "usage: $0 {start|stop|restart|clean}"
>>	;;
>>esac




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: HELP! Update Problem!
  1999-10-10  4:00 HELP! Update Problem! 4x4
  1999-10-10  4:00 ` 4x4
@ 1999-10-11  4:00 ` Marco Benton
  1 sibling, 0 replies; 4+ messages in thread
From: Marco Benton @ 1999-10-11  4:00 UTC (permalink / raw)


did you try starting sendmail manually? are there any other programs bound to this
port?

you know if mail works when you can telnet into port 25.

--

Marco Benton
eXpert Systems Solutions
http://www.xssnet.com
"Da Original - Bastard Operator from Hell"
      luser /loo'zr/ n.
      A user; esp. one who is also a loser. ( luser and loser are pronounced
identically.)


4x4 <hx_101@hotmail.com> wrote in message
news:3800eb8e.232267@news.accesscable.net...
> Hi everyone, I just did an upgrade from DU 4.0 - 4.0d.... The only
> problem is that my mail is not working at all. I get the message
> unable to start mail service........
>
> The script in /sbin/rc2.d/K30sendmail  will not start sendmail.......
>
> The script*************
>
> #!/sbin/sh
>
> #
> #
> # OSF/1 Release 1.0
>
> PATH=/sbin:/usr/sbin:/usr/bin
> export PATH
>
> ARGS=`rcmgr get SENDMAIL_ARGS`
> ARGS=${ARGS:-"-om"} # D'flt: send to sender too
>
> MQUEUE=/var/spool/mqueue
>
> #
> # Number of days before pruning out dead files.
> #
> # TIMEOUT_QUEUERUN should be set to the number of days before a mail
> #   message is rejected, with RFC 1123 recommending a minimum of 4-5
> days.
> #   This value should correspond (or be greater than) the value in the
> #   sendmail.cf file.  By default, sendmail V8 uses 5 (O
> Timeout.queuerun=5d),
> #   while other sendmail pkgs typically used 3 (OT3d).
> # CLEAN_MISC is used to clean out other queuefile cruft, while
> # CLEAN_DEAD is used to clean out dead letters and core files.
> #
> # Note: find actually adds a day to these numbers, so if you specify
> #   5, it will clean out files >= 6 days old.
> #
> TIMEOUT_QUEUERUN=5
> CLEAN_MISC=2
> CLEAN_DEAD=7
>
> cleanqueue() {
>     # Cleans out any old files from the Queue directory.
>     #
>     # If you wish to save any file, rename it or put it in a
> subdirectory,
>     # e.g. $MQUEUE/save.d/core
>
>     # Find all the old files
>     find $MQUEUE \( \( -name '[xtlnQT]f*' -mtime +$CLEAN_MISC \) -o \
>     \( \( -name core -o -name dead.letter \) -mtime +$CLEAN_DEAD \) -o
> \
>     \( -name '[dq]f*' -mtime +$TIMEOUT_QUEUERUN \) \) -print |
> while read name; do
>     # Remove *only* the files directly in $MQUEUE
>     if [ `dirname $name` = $MQUEUE ]; then
> rm -f $name
>     fi
> done
> }
>
>
> case "$1" in
> 'start')
> set `who -r`
> if [ "$9" = "S" ]; then
> if [ -f /usr/sbin/sendmail ]; then
> # cleanqueue
> # Frozen configs not supported
> # /usr/sbin/sendmail -bz
> /usr/sbin/sendmail -bi
>
> # Use rcmgr to modify the command line args;
> # if multiple "-q" args are given, the last
> one wins
> /usr/sbin/sendmail -bd -q15m ${ARGS} &
>
> echo "SMTP Mail Service started"
> else
> echo "Unable to start SMTP Mail Service, No
> /usr/sbin/sendmail"
> exit 1
> fi
> else
> echo "Unable to start SMTP Mail Service, Run level
> must be S"
> exit 1
> fi
> ;;
> 'stop')
> pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
> 's/^  *//' -e 's/ .*//' | head -1`
> if [ "X$pid" != "X" ]; then
> /bin/kill $pid
> else
> echo "No pid for SMTP Mail Service found"
> exit 1
> fi
> ;;
> 'restart')
> /sbin/init.d/sendmail stop
> if [ $? -ne 0 ]; then
> echo "  -- Could not find running sendmail -
> attempting to restart..."
> fi
> sleep 2
> pid=`/bin/ps -e | grep sendmail | grep connection | sed -e
> 's/^  *//' -e 's/ .*//' | head -1`
> if [ "X$pid" != "X" ]; then
> sleep 3
> pid=`/bin/ps -e | grep sendmail | grep connection |
> sed -e 's/^  *//' -e 's/ .*//' | head -1`
> if [ "X$pid" != "X" ]; then
> echo "Could not kill SMTP Mail Service"
> echo "  -- Kill sendmail by hand then do a
> start"
> exit 1
> fi
> fi
> /sbin/init.d/sendmail start | sed -e 's/start/restart/'
> ;;
> clean)
> cleanqueue
> ;;
> *)
> echo "usage: $0 {start|stop|restart|clean}"
> ;;
> esac
>





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-10-11  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-10  4:00 HELP! Update Problem! 4x4
1999-10-10  4:00 ` 4x4
1999-10-11  4:00   ` 4x4
1999-10-11  4:00 ` Marco Benton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox