This is the adapter.
You could wire that up however you wanted in terms of the pins to the DB9 connector. As long as you matched it on the other end you would have a straight serial cable.
I keep a sheet in onenote that reminds me how ive done it so every job is the same.
RJ45 Pin 1-blue of DB9
RJ45 Pin 2-orange of DB9
RJ45 Pin 3-black of DB9
RJ45 Pin 4-red of DB9
RJ45 Pin 5-green of DB9
RJ45 Pin 6-yellow of DB9
RJ45 Pin 7-brown of DB9
RJ45 Pin 8-white of DB9
So at this point blue is pin1 at each end orange is pin 2 at each end and so on and so forth. So you could take those anywhere you want into the DB9 adapter as long as your 2,3&5 (and anything else) match at each end.