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 don't think that state->recipient is ever set to what you want when
a reply to a failed RCPT TO is being sent.

-- 
        Viktor.

Reply via email to