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