On 1/7/2011 4:33 PM, Wietse Venema wrote:
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
That's fine. Repeating the sender/recipient adds a little
value to the contact info, but is not critical.
Thanks.
-- Noel Jones