On Thu, Nov 29, 2001 at 07:40:18PM -0500, David T-G wrote: > Cristian, et al -- > > Welcome to the list! > > ...and then Cristian said... > % > ... > % To tell the truth, my line actually reads, > % "|IFS=' ' && p=/usr/bin/procmail && test -f $p && exec $p -Yf- || exit 75 #cris" > % where chris is my login. I don't think this complicated stuff is > % really necessary. > > If you're the only user on the box, that's moderately safe to say, but > it's really there for a reason. You wouldn't want your MTA to try to > deliver to a nonexistent program, so it's safest to test to make sure > the file is there before you exec it, and you might as well set a nice, > short variable name to the full path (because it might not be in the MTA's > shell path, either) and save yourself some typing. If you're not using > mbox format, you don't need the Yf options, but your can get messed up > otherwise. Finally, if the file doesn't exist or the exec fails you want > to exit with a meaningful exit status. Finally, since lots of people > logically use the same procmail invocation, it's best to put a comment > and your login name after the exit to ensure that the invocation line is > unique so that a smart MTA doesn't skip delivering to you right after > having delivered to someone else with an identical invocation (when > neither of you has the comment at the end).
I would suggest you also use the "-t" flag on procmail, which invokes "soft-bounces" with mail delivery problems (see man procmail for details). -- Regards Cliff