![]() | old files |
UserPreferences |
GMS NOC Docs | FrontPage | RecentChanges | TitleIndex | Help |
Daemons on each SyncFep continually search for files in various directories that have been sitting there "too long". Sometimes this is normal and can be ignored; other times it is a symptom that message processing is not proceeding correctly and some action is required.
There are several different "old files" situations, and each is handled differently.
Message files on SyncFep boxes come in pairs; the actual message, and an associated TAG, which is a sort of index file. If a message is not received in its entirety, the TAG will not be properly created.
gaf -ux filename | pg
It would be nice if someone implemented OldFileMover.
echo "mv \$1 /usr/\$2/savefiles/status CURDIR=\`pwd\` echo "On" \`uname\` \"moved \$1 from \$CURDIR to /usr/\$2/savefiles/status\"" > /usr/bin/sast chmod u+x /usr/bin/sast cat > /usr/bin/lsline #!/bin/sh find /usr/line$1/backup -type f -size -200c -exec rm {} \; find /usr/spool/line$1/output -type f -size -200c -exec rm {} \; echo "files in /usr/line$1/backup" ls -l /usr/line$1/backup echo " === " echo "files in /usr/spool/line$1/output" ls -l /usr/spool/line$1/output
If we do not initiate sessions to the client, this is not a problem. In general, /usr/mail/account file are NOT sent out actively -- they are only pulled by the client.
Zero length files may be mercilessly deleted, either by hand or using the .rm0len script.
Messages which were not processed correctly on the first try may be retried with dlsend filename. You will be placed into vi with your cursor positioned on the first offending line.
Quaker:
The client quaker often sends invalid headers. The following script will take a message filename as its argument and convert that message file in-place to a nondelivery message:
FROMLINE=`grep "^From: " $1` FROMLINE=`echo $FROMLINE | sed 's/From: //'` echo "Message-Version: 2 To:" $FROMLINE " From: !attmail (Junkmail Admin ) Date:" `date` " Subject: Undeliverable ATT-Mail End-of-Protocol: The attached message was rejected by ATTMAIL. Invalid address specified. ============================================================== " > /tmp/$1.tmp cat $1 | sed 's/^From: />From: /' | sed 's/^Received: />Received: /' | sed 's/^To: />To: /' >> /tmp/$1.tmp mv /tmp/$1.tmp $1
a-* files (mail bag acknowledgements) may be removed if several hours old.
azyu_root-> date Mon Nov 4 14:59:55 GMT 1996 azyu_root-> ls -al /usr/advanet/msgq total 18 drwxrwxrwx 2 advanet other 3936 Nov 4 14:52 . drwxrwxrwx 13 advanet other 2032 Nov 4 14:50 .. -rw-r--r-- 1 root other 15 Nov 4 14:52 K18258340 -rw-r--r-- 1 root other 0 Nov 4 14:52 K18258340.TAG -rw-r--r-- 1 root other 145 Nov 4 14:47 TMPMSG -rw-r--r-- 1 root other 15 Nov 4 14:46 U18258009 -rw-r--r-- 1 root other 0 Nov 4 14:46 U18258009.TAG -rw-r--r-- 1 root other 97 Nov 4 07:24 a-327d9a4a -rw-r--r-- 1 root other 15 Nov 4 14:49 e18258159 -rw-r--r-- 1 root other 0 Nov 4 14:49 e18258159.TAG -rw-r--r-- 1 root other 15 Nov 4 14:50 y18258248 -rw-r--r-- 1 root other 0 Nov 4 14:50 y18258248.TAG azyu_root-> rm a-327d9a4a
If other files do not go out, and there is a file in the schedq w/account name and a byte count (not 0) then either rm or 0 out.
> grep DED /usr/account/config DEDICATED_PORT=no
> cat /usr/account/AC* line10.0 > cd line10.0
> cat sending /usr/account/sendq/M-31b077aa 2745
> ls -al /usr/account/sendq/M-31b077aa -rw-r--r-- 2 root other 18737 Jun 1 17:02 /usr/account/sendq/M-31b077
> tail -f /usr/line10.0/logs/c* 19:35:58 Sending 7000th Block to HOST 19:42:35 Sending 8000th Block to HOST 19:49:16 Sending 9000th Block to HOST
NOAU and SIAU are SMTP gateways. When this error occurs, it usually means that there's one or more bad files holding up the entire queue. Try moving the first message file in the directory (usually, but not always, the oldest) out of the way -- the rest should be processed and disappear quickly.
It's sometimes/often the case that the bad message is SPAM. If so, there might be a few dozen nearly-identical files, each of which is going to halt processing. It might be a good idea, at your discretion, to remove all of these SPAM files (grep for a unique phrase):
Again, use this at your discretion.