You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Noel J. Bergman" <no...@devtech.com> on 2002/08/18 01:02:45 UTC

[PATCH] Redirect.java/Forward.java

Redirect.java: Removed redundant <passThrough> tags, added
xml:space="preserve".

Forward.java:

Added:

if (mail.getSender() == null
    || getMailetContext().getMailServers(mail.getSender().getHost()).size()
!= 0) {

and logging when that fails.

If we do not do this check, and somone uses Forward in a processor initiated
by the SenderInFakeDomain matcher (e.g., the default spam processor), then a
fake sender domain will cause an infinite loop (the forwarded e-mail still
comes from a fake domain).  Although this can be viewed as a configuration
error, the consequences of such a mis-configuration are severe enough to
warrant protecting against the infinite loop.

	--- Noel