|-f sender_addr||Specifies the (MAIL FROM) email address to use on the probe. By default, rlytest tries to calculate an email address in the target domain. This is to ensure that the host is not using simple (and easily defeated) envelope checks for anti-relay protection.|
|-u recip_addr||Specifies the (RCPT TO) email address to use on the probe. By default, rlytest tries to calculate your email address and use that. A host that is susceptible to relay will deliver a probe message to this address.|
|-c comment||Embed comment in the body of the test message. This may be useful, for instance, if you are doing some automatic testing and want to insert cookies into the messages.|
|-t timeout||Sets the timeout value (default is 60 seconds) for certain operations.|
rlytest: relay rejected - status code 571
If the message was accepted, the program will terminate with an exit status of 2 and display a message to stderr similar to:
rlytest: relay accepted - status code 221
Any other (non-zero) exit status indicates a program error, such as a bad hostname or host not resopnding.
Here is an example, showing a host that refuses third-party relay:
$ ./rlytest mail.example.dom Connecting to mail.example.dom ... <<< 220 mail.example.dom ready >>> HELO garcon.unicom.com <<< 250 Hello garcon.unicom.com, pleased to meet you >>> MAIL FROM:<email@example.com> <<< 250 <firstname.lastname@example.org>... Sender ok >>> RCPT TO:<email@example.com> <<< 550 <firstname.lastname@example.org>... Relaying Denied rlytest: relay rejected - status code 550
There is no reliable and portable method to determine the local hosts fully qualified domain name. If the utility bombs out complaining about FQDN problems, read the host name configuration information near the top of the script.
mail(1), sendmail(8), smtpd(8)
Chip Rosenthal Unicom Systems Development <email@example.com> $Id: rlytest,v 1.22 2001/10/22 22:02:48 chip Exp $ See http://www.unicom.com/sw/#rlytest for latest version.
|perl v5.20.3||RLYTEST (1)||2016-03-18|