Expand the documentation about the new submission mode behaviour.
[exim.git] / src / util / unknownuser.sh
1 #! /bin/sh
2 # $Cambridge: exim/src/util/unknownuser.sh,v 1.1 2004/10/07 10:39:03 ph10 Exp $
3
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:
7
8 # unknownuser_pipe:
9 # driver = pipe;
10 # command = "/opt/exim/util/unknownuser.sh",
11 # ignore_status,
12 # return_output,
13 # user = nobody
14
15 # which is specified by a smartuser director set up like this:
16
17 # unknownuser:
18 # transport = unknownuser_pipe,
19 # no_verify,
20 # driver = smartuser;
21
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.
27
28 cat <<End
29 "$LOCAL_PART" is not a known user mailbox in the domain "$DOMAIN".
30 End
31
32
33