>>>>> On Thu, 20 Jul 2000, "PH" = Philip Hazel wrote:
PH> Write yourself a custom router for messages with empty senders
PH> (i.e. bounce messages) and make it deliver them to you.
Excellent - works a treat. Thanks, Philip.
I now just have one (probably stupid) query: I'm using the following
director:
# First check whether this is an error/warning, and if so deliver it to
# postmaster on the local machine.
checkerr:
driver = smartuser
condition = ${if eq {$sender_address}{} {yes}{no}}
new_address = cjk
and the following router:
# First check whether this is an error/warning, and if so deliver it on
# the local machine. (It will then get picked up by the checkerr director
# and delivered to postmaster).
checkerr:
driver = domainlist
condition = ${if eq {$sender_address}{} {yes}{no}}
route_list = * localhost byname
self = local
This works fine with "new_address" as above; however, I'd ideally like to
be able to say "new_address = postmaster". When I try that, though, I get:
2000-07-27 13:52:15 13Hn95-0001XH-00 ** postmaster@??? <root@???>: unknown local-part "postmaster" in domain "mymachine.mydomain"
2000-07-27 13:52:15 13Hn95-0001XH-00 Frozen (delivery error message)
Normal deliveries to postmaster get aliased fine. (I've tried setting
"new_director = system_aliases" in the director, too, which didn't
help...not that I really expected it to).
Thanks,
Chris.