relaytest(1)

relaytest1

Attempt to use smtp to relay to a dsbl-compliant host

Usage

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

Overview

relaytest attempts to connect to the specified <ip address> on the specifiedport (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:<nobody@DOMAIN>
RCPT TO:<[email protected]>

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

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

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

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

MAIL FROM:<nobody@DOMAIN>
RCPT TO:<"listme%dsbl.org">

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

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

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

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

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

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

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

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

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

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

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

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

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

MAIL FROM:<listserv@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.

Releases

Unchanged in 5 releases since Debian 4.0 (Etch).

  1. 4.0–8

Author

Ian Gulliver <[email protected]>

From dsbltesters 0.9.5-4 in Debian 8 (Jessie). Parsed by carta from the page's man source.