|-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:<firstname.lastname@example.org> <<< 250 <email@example.com>... Sender ok >>> RCPT TO:<firstname.lastname@example.org> <<< 550 <email@example.com>... 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 <firstname.lastname@example.org> $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|