[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] raq2 sendmail
- Subject: [cobalt-users] raq2 sendmail
- From: "RH Linux" <rhlinux@xxxxxxxxxxx>
- Date: Tue May 23 15:23:19 2000
I have always had the problem with sendmail on the raq2, it just dies
without cause (maybe high resources) but looking in the maillog, i see
nothing strange...so i put this script from Will in the
/etc/cron.quarter-hourly and added the last two lines myself....is there any
other way of trying to track down why sendmail is dying? its a pain to start
sending some email and then out of no-where i cant because i get "connection
refused" by the smtp server....i dont think this happens with my raq3, which
has 250 clients on it....and the raq2 only has about 60-80
i do try do top when the sendmail dies...i dont see anything major..
#!/usr/bin/perl
# Tests if poprelayd is running, starts it if not
my $poprelayd = 0; # Assume poprelayd is not running
open(PROCS, '/bin/ps auxwww |') || exit 0;
while(<PROCS>) { $poprelayd= 1 if (/poprelayd/); }
close(PROCS);
system('/etc/rc.d/init.d/poprelayd restart > /dev/null 2>&1') unless
($poprelayd);
system('/etc/rc.d/init.d/sendmail stop > /dev/null 2>&1') unless
($sendmail);
system('/etc/rc.d/init.d/sendmail start > /dev/null 2>&1') unless
($sendmail);