greetdelay is a program to introduce a small delay before an SMTP greeting for qmail. It also enforce RFC 2821's recommendation that SMTP clients not send any commands before receiving the greeting message.
If RELAYCLIENT is set in environment variable, greetdelay will be skipped. Set environment variable GREETDELAY to any numberic value greater than 0 to enable greetdelay to wait for the set value before executing other program.
If SMTP clients send any commands during the greet delay period, "554 smtp protocol violation (#5.5.1)" will be responsed with "premature input on stdin" will be printed in stderr and exit with exit code 111.