Merge from vendor branch SENDMAIL:
[dragonfly.git] / contrib / sendmail-8.13.4 / cf / feature / redirect.m4
1 divert(-1)
2 #
3 # Copyright (c) 1998, 1999 Sendmail, Inc. and its suppliers.
4 #       All rights reserved.
5 # Copyright (c) 1983 Eric P. Allman.  All rights reserved.
6 # Copyright (c) 1988, 1993
7 #       The Regents of the University of California.  All rights reserved.
8 #
9 # By using this file, you agree to the terms and conditions set
10 # forth in the LICENSE file which can be found at the top level of
11 # the sendmail distribution.
12 #
13 #
14
15 divert(0)
16 VERSIONID(`$Id: redirect.m4,v 8.15 1999/08/06 01:47:36 gshapiro Exp $')
17 divert(-1)
18
19 LOCAL_RULE_0
20 # addresses sent to foo@host.REDIRECT will give a 551 error code
21 R$* < @ $+ .REDIRECT. >         $: $1 < @ $2 . REDIRECT . > < ${opMode} >
22 R$* < @ $+ .REDIRECT. > <i>     $: $1 < @ $2 . REDIRECT. >
23 R$* < @ $+ .REDIRECT. > < $- >  $#error $@ 5.1.1 $: "551 User has moved; please try " <$1@$2>
24
25 LOCAL_CONFIG
26 CPREDIRECT