Sremove_local
which is called by
check_rcpt
has no explicit support for hosts which are connected
via UUCP.
There are several ways how to add those hosts:
RelayTo
(the test must be enabled with
HACK(use_relayto)
in the HACKs provided in
check.tar.)
as
host1.UUCP host2.UUCP
*** check_rcpt4.m4.orig Wed Nov 19 12:18:48 1997
--- check_rcpt4.m4 Wed Nov 19 12:19:04 1997
***************
*** 70,73 ****
--- 70,76 ----
# remove RelayTo part (maybe repeatedly)
R$*<@$*$={RelayTo}.>$* $>3 $1 $4
R$*<@$=w.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=U.UUCP.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=Y.UUCP.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=Z.UUCP.>$* $: $>remove_local $>3 $1 $3
)dnl
*** check_rcpt5.m4.orig Wed Nov 19 12:20:43 1997
--- check_rcpt5.m4 Wed Nov 19 12:21:37 1997
***************
*** 93,96 ****
--- 93,99 ----
# remove RelayTo part (maybe repeatedly)
R$*<@$*$={RelayTo}.>$* $>3 $1 $4
R$*<@$=w.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=U.UUCP.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=Y.UUCP.>$* $: $>remove_local $>3 $1 $3
+ R$*<@$=Z.UUCP.>$* $: $>remove_local $>3 $1 $3
)dnl
m4/proto.m4
I came up with this
ruleset:
Sremove_local
# remove local part (maybe repeatedly)
ifdef(`_USE_RELAYTO_',
R$*<@$*$={RelayTo}.>$* $>3 $1 $4
R$*<@$=w.>$* $: $>remove_local $>3 $1 $3,
R$*<@$=w.>$* $>3 $1 $3)
ifdef(`_CLASS_U_',
`R$*<@$=U.UUCP.>$* $: $>remove_local $>3 $1 $3',`dnl')
ifdef(`_CLASS_V_',
`R$*<@$=V.UUCP.>$* $: $>remove_local $>3 $1 $3',`dnl')
ifdef(`_CLASS_W_',
`R$*<@$=W.UUCP.>$* $: $>remove_local $>3 $1 $3',`dnl')
ifdef(`_CLASS_X_',
`R$*<@$=X.UUCP.>$* $: $>remove_local $>3 $1 $3',`dnl')
ifdef(`_CLASS_Y_',
`R$*<@$=Y.UUCP.>$* $: $>remove_local $>3 $1 $3',`dnl')
R$*<@$*>$* $@ $1<@$2>$3
# dequote local part
R$- $: $>3 $(dequote $1 $)
R$*<@$*>$* $: $>remove_local $1<@$2>$3
This has been
integrated
in the current
check_rcpt
version.
It might be necessary to put HACK(check_rcpt4) after the definition of the UUCP mailer.