On 1/7/2011 4:36 PM, Victor Duchovni wrote:
On Fri, Jan 07, 2011 at 04:22:52PM -0600, Noel Jones wrote:
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.
Yes, the sender macros is not always available. You should use conditional
macros:
${sender? ... ${sender} ...} to
to interpolate information that may not always be present.
I see. Something like
= Data: servertime=($localtime)
client=($client_address|$client_port)
${sender?from=($sender)}
Am I correct assuming the time and client should always be
available?
I don't think that state->recipient is ever set to what you want when
a reply to a failed RCPT TO is being sent.
Well, looks as if the sender/recipient macros are unsupported
for now regardless of our clever expansion.
-- Noel Jones