jamesf@ibmpcug.UUCP (James Fielding) (07/29/89)
Does anyone know how to set up SCO Xenix so that any incoming UUCP/Usenet mail which is not addressed properly and gets bounced, is also copied to the uucp account mail box on my system. Also, we sometimes get mail coming in which has the receipients user name in the wrong case (ie FRED instead of fred). Is there anyway of ensuring that this is delivered to the correct person ? I run SCO Xenix 386 with SMAIL. -- Automatic Disclaimer: The views expressed above are those of the author alone and may not represent the views of the IBM PC User Group.
skrenta@blekko.UUCP (Rich Skrenta) (07/30/89)
In article <11116@ibmpcug.UUCP>, jamesf@ibmpcug.UUCP (James Fielding) writes: > Also, we sometimes get mail coming in which has the receipients user > name in the wrong case (ie FRED instead of fred). Is there anyway of > ensuring that this is delivered to the correct person ? > > I run SCO Xenix 386 with SMAIL. #define LOWERLOGNAME in defs.h (assuming that you're running smail 2.5). Rich -- Rich Skrenta "If I ever put ascii graphics in my ...{cbmvax,snark}!blekko!skrenta signature, shoot me."
chip@ateng.com (Chip Salzenberg) (08/01/89)
[Followups to comp.mail.misc] According to jamesf@ibmpcug.UUCP (James Fielding): >Does anyone know how to set up SCO Xenix so that any incoming >UUCP/Usenet mail which is not addressed properly and gets bounced, is >also copied to the uucp account mail box on my system. You can probably do this with Deliver, which is typically used as a back end for Smail. (You recompile Smail to run /usr/bin/deliver for local mail.) With Deliver, you write a "system delivery file" -- a shell script -- to control where mail goes. But of course, since it's a shell script, you can do other things besides control the delivery process. Since Smail does the aliasing, any names handed to deliver should be valid user names from /etc/passwd. So, then, here is a sample delivery file that sends a list of invalid addresses, along with the message itself, to "uucp": : deliver.sys # Collect invalid addresses invalid= for u do if grep "^${u}:" /etc/passwd >/dev/null then : no problem else invalid="$invalid $u" fi echo $u done # Note: if any invalid addresses are found, deliver will exit(1), # causing Smail to bounce the message. # Our only job here is to send the administrator some hate mail. if [ "$invalid" ] then ( echo "Mail was sent to the following invalid address(es):" echo " $invalid" echo "The mail has been bounced. Here is a copy of it." echo "===================================================" cat $HEADER $BODY ) | mail -s 'Boing' uucp fi Of course, further elaboration is possible. Also, be sure that "uucp" is a valid address, or you'll have an infinite mail loop. -- You may redistribute this article only to those who may freely do likewise. Chip Salzenberg | <chip@ateng.com> or <uunet!ateng!chip> A T Engineering | Me? Speak for my company? Surely you jest!