mailx mails not sent out or not arriving?

From: Gold Sun (goldsun8@yahoo.com.sg)
Date: Sat Aug 27 2005 - 08:30:34 EDT


Hi,
 
The same server which has probably a million log files has
not been mailing reports for the last few days.
 
any troubleshooting suggestions will be appreciated.
 
I've tried the following & would conclude the problem does
not lie with the network or mail gateways but localized
within this Sun server (as it can email to own local user) :
 
# uuencode t1.dat t2.dat | mailx -s "Testg mail" root@localhost
# mailx
No mail for root
# mail
No mail.

So the above test shows that even sending small file (t1.dat)
to the root id on the local server doesn't work so it's got
nothing to do with the network/external mail gateway.
 
Has the million log files got to do with this?
 
 
Thanks
G Sun
 
 
=========================================
#!/usr/bin/ksh
# script to autosend customer report to Ops & Sys Admin
 
BASEDIR=/usr/local/mrtg/customer
ZIP=/usr/bin/zip
UUENCODE=/usr/bin/uuencode
MAILTO="opsgroup@abc.com sysadm@abc.com"

TODAY=`date +"%d%m%y"`
cd $BASEDIR
for DIR in `ls -l | egrep "^d" | awk '{ print $9 }'`;
do
        FILENAME=$DIR$TODAY
        $ZIP -r $FILENAME $DIR > /dev/null 2>&1
        $UUENCODE $FILENAME.zip $FILENAME.zip | mailx -s "MRTG Report for $DIR -
 $TODAY" $MAILTO
        rm $FILENAME.zip
done

 
 

Send instant messages to your online friends http://asia.messenger.yahoo.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:24 EDT