I have a Postfix server which receives mail for EXAMPLE.COM (bogasified); for for specific addresses I need to send that mail to another SMTP server. So transform_maps!

I have "transport_maps = hash://map-path" and If I "postmap -q u...@example.com hash://map-path" it returns "smtp:[other.smtp.server]".

However when I send a message through the server ... it is still delivered using the local transport.

I have cranked up the debugging level for the host I am sending the test from. I see in the log:

...
postfix/smtpd[22474]: rewrite_clnt: local: a...@example.com-> a...@example.com
postfix/smtpd[22474]: event_request_timer: reset 0xf6f310 0x8e015e0 100
postfix/smtpd[22474]: send attr request = resolve
postfix/smtpd[22474]: send attr sender =
postfix/smtpd[22474]: send attr address = a...@example.com
postfix/smtpd[22474]: vstream_fflush_some: fd 14 flush 52
postfix/smtpd[22474]: private/rewrite socket: wanted attribute: flags
postfix/smtpd[22474]: vstream_buf_get_ready: fd 14 got 108
postfix/smtpd[22474]: input attribute name: flags
postfix/smtpd[22474]: input attribute value: 0
postfix/smtpd[22474]: private/rewrite socket: wanted attribute: transport
postfix/smtpd[22474]: input attribute name: transport
postfix/smtpd[22474]: input attribute value: error
postfix/smtpd[22474]: private/rewrite socket: wanted attribute: nexthop
postfix/smtpd[22474]: input attribute name: nexthop
postfix/smtpd[22474]: input attribute value: User unknown in virtual alias table
postfix/smtpd[22474]: private/rewrite socket: wanted attribute: recipient
postfix/smtpd[22474]: input attribute name: recipient
...

Is this "wanted attribute: transport" a checking of the transport map? Or something else?

I never see it explicitly checking the transport map.

Aside - is there a diagram somewhere of the sequencing of all the table lookups?

Thank you.

Reply via email to