2
I want to be able to access the recipient email address (or local part, it does not matter which) during ACL as a variable (for instance, I want to be able to use "$local_part")
The documentation seems to imply that the variable $local_part is available during acl, however it is not for me.
Inside the data ACL, as well as the rcpt
warn condition = true
log_message = A
warn condition = true
log_message = $local_part
warn condition = true
log_message = B
produces these log lines
2011-03-31 16:12:00 1Q5ODo-0000iy-9q H=.net (.com) [.150] Warning: A
2011-03-31 16:12:00 1Q5ODo-0000iy-9q H=.net (.com) [.150] Warning: B
2011-03-31 16:12:00 1Q5ODo-0000iy-9q <= no@.com H=.net (.com) [.150] P=esmtp S=679 id=4b3c3206d41afeed@.com from <no@.com> for dude@.com
2011-03-31 16:12:01 1Q5ODo-0000iy-9q => dude@.com R=dnslookup T=remote_smtp H=aspmx.l.google.com [.27] C="250 2.0.0 OK"
2011-03-31 16:12:01 1Q5ODo-0000iy-9q Completed
There should have been an additional log line "Warning: dude" but there is not.
Anyone know why this may be happening?