class RemoteAddrNotInNetwork extends AbstractNetworkMatcher {

    @Override
    public Collection<MailAddress> match(Mail mail) {
        if (! matchNetwork(mail.getRemoteAddr())) {
            return mail.getRecipients();
        }
        return null;
    }

}