2 # $Cambridge: exim/src/util/unknownuser.sh,v 1.1 2004/10/07 10:39:03 ph10 Exp $
4 # This is a sample script for demonstrating how to handle unknown users in
5 # a more friendly way than just returning a "user unknown" error. It can
6 # be called from a pipe transport set up like this:
10 # command = "/opt/exim/util/unknownuser.sh",
15 # which is specified by a smartuser director set up like this:
18 # transport = unknownuser_pipe,
22 # Any output generated by this script is then returned to the sender of
23 # the message. You can run any commands you like at this point, for example,
24 # to attempt fuzzy matches on the local part of the address. Here we just
25 # give a bland message, demonstrating the availability of the variables
26 # $LOCAL_PART and $DOMAIN.
29 "$LOCAL_PART" is not a known user mailbox in the domain "$DOMAIN".