[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some comments...



Tom Samplonius wrote:
> On Tue, 28 Feb 1995, Matti Aarnio wrote:
> > >   Is there a good way of emulating Smail's smart_user directive (directs 
> > > local mail that doesn't match a local mailbox, somewhere else)?
> > 
> > 	I am not sure of this, but I think the PUNTHOST is for this ?
...
>   Nope, not what I want.  Smail's smart_user directive directs mail to a 
> *user* not to a host.  That user can be local.

	Ah, I see..

	Something in this manner:

----- fragment of  $MAILSHARE/cf/aliases.cf --------
        # oh well... give up
+	if [ "$PUNTUSER" ]; then
+		return $(rrouter "$PUNTUSER" "$user" $attr)
+       elif [ "$PUNTHOST" ]; then
-       if [ "$PUNTHOST" ]; then
                return $(rrouter "$user"@$PUNTHOST "$user" $attr)
        elif [ $didexpand ]; then
----------------------------------------------------

(This is NOT a diff, just something I cooked up while editing this reply,
 but you can get the idea, I hope..)

It is a matter of style if the PUNT*-vars should be called SMART*...

> Tom

	/Matti Aarnio	<mea@utu.fi> <mea@nic.funet.fi>

PS: Editing/rewriting the config scripts may feel a bit like rocket-science,
    but it is not that difficult :-)