Noel Jones: > Unexpected behavior when testing smtpd_reject_contact_information. > > When sending to an unknown recipient, the $recipient macro > isn't expanded. Is this expected behavior? I haven't tested > with other reject reasons.
You know what? I wil have to remove sender/recipient from the manual page (i.e. it is NOT SUPPORTED) and postpone that for a later Postfix version. It may not seem obvious, but the code that prints the error to the client actually runs long after all the checking is done. In fact, if you have multiple recipients, and some later recipient rejected, it would probably expand $recipient to the first accepted recipient. Adding back the currently rejected sender/recipient just for printing the error message is going to require more changes than I am willing to make right before the stable release. Wietse