relaytest(1) attempt to use SMTP to relay to a DSBL-compliant host

SYNOPSIS

relaytest [-v] <ip address[:port]>

DESCRIPTION

relaytest attempts to connect to the specified <ip address> on the specified port (default is port 25) and uses a variety of tests to attempt to relay through the host.

In the tests below, source.com is sender_domain from dsbl.conf(5) and sender is sender_user.

Non-domain-specific tests:

MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]>
RCPT TO:<"[email protected]">

MAIL FROM:<[email protected]>
RCPT TO:[email protected]

MAIL FROM:<[email protected]>
RCPT TO:<dsbl.org!listme>

MAIL FROM:<nobody>
RCPT TO:<[email protected]>

MAIL FROM:<nobody>
RCPT TO:<"[email protected]">

MAIL FROM:<nobody>
RCPT TO:[email protected]

MAIL FROM:<nobody>
RCPT TO:<dsbl.org!listme>

MAIL FROM:<source.com!sender>
RCPT TO:<[email protected]>

MAIL FROM:<source.com!sender>
RCPT TO:<"[email protected]">

MAIL FROM:<source.com!sender>
RCPT TO:[email protected]

MAIL FROM:<source.com!sender>
RCPT TO:<dsbl.org!listme>

MAIL FROM:<>
RCPT TO:<[email protected]>

MAIL FROM:<>
RCPT TO:<"[email protected]">

MAIL FROM:<>
RCPT TO:[email protected]

MAIL FROM:<>
RCPT TO:<dsbl.org!listme>

relaytest then builds a list of possible domains, including "[127.0.0.1]", "localhost", [<ip address>], and any other domains that can be derived from reverse DNS of the IP or the SMTP greeting.

Domain specific tests:

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<"[email protected]">

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:[email protected]

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<listme%[email protected]DOMAIN>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<listme%dsbl.org>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<"listme%dsbl.org">

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]@DOMAIN>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<"[email protected]"@DOMAIN>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<@DOMAIN:[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<dsbl.org!listme>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]DOMAIN>

MAIL FROM:<DOMAIN!nobody>
RCPT TO:<dsbl.org!listme>

MAIL FROM:<DOMAIN!nobody>
RCPT TO:<[email protected]DOMAIN>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

MAIL FROM:<[email protected]DOMAIN>
RCPT TO:<[email protected]>

relaytest then tries a variety of SMTP AUTH methods to try to relay a message through the target server.

The envelopes used for these tests are always:

MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>

The SMTP AUTH methods tried are as follows:

AUTH LOGIN, user=/webmaster, password=(null)
AUTH LOGIN, user=admin, password=admin
AUTH LOGIN, user=administrator, password=(null)
AUTH LOGIN, user=test, password=test
AUTH NTLM (anonymous)

OPTIONS

-v
Verbose mode. Details of the SMTP transaction are written to standard output.

AUTHOR

Ian Gulliver <[email protected]>