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.
postconf snippit:
mail_version = 2.8-20110105
smtpd_reject_contact_information =
Data: servertime=($localtime)
client=($client_address|$client_port)
from=($sender) to=($recipient)
Telnet snippet (slightly redacted). This client is listed in
postscreen_whitelist_networks and mynetworks if that matters,
although I got similar results when testing from gmail.
mail from:<u...@example.org>
250 2.1.0 Ok
rcpt to:<unkn...@example.org>
550-5.1.1 <unkn...@example.org>: Recipient address rejected:
User unknown in local recipient table
550 5.1.1 Data: servertime=(Jan 07 16:04:25)
client=(10.1.0.157|4174) from=(u...@example.org) to=()
-- Noel Jones