Forum Discussion
Thanks for your answer, nitass.
I tried below: when CLIENT_ACCEPTED { NAME::lookup @210.141.48.50 [IP::client_addr] } when NAME_RESOLVED { set ptr [string tolower [NAME::response]] log local0. "[IP::client_addr]:[TCP::client_port]: Lookup result: $ptr" if { $ptr ends_with ".jp" } { pool SMTP_AUTH_Pool } else { pool SMTP_Fallback_Pool } }
but the log below appeared. Apr 16 14:44:18 local/tmm info tmm[5276]: Rule dns_reverse_lookup_test : XXX.XXX.XXX>XXX:15751: Lookup result: ****.jp Apr 16 14:44:18 local/tmm err tmm[5276]: 01220001:3: TCL error: dns_reverse_lookup_test - Address in use (line 1) invoked from within "pool SMTP_AUTH_Pool"
Maybe when CLIENT_ACCEPTED the SMTP connection is forwarded to real server, but try to be re-forwarded to real server at NAME_RESOLVED.
Is there a way to it works ?
-- thank you for your help!