The Printer is a Epson TM-T20.
At has a serial interface with a DB9F connector.
That would suggest DCE wiring.
DSD 1 0-1 chGND
DSR 2 2 DXD
TXD 3 3RXD
RXD 4 4RTS
RTS 5 5CTS
CTS 6 6DSR
It would _really_ have been helpful if you had posted the complete
pin-out for the RJ45. I also assume there's a typo in there: RJ45
pin 1 should be DCD (there is no DSD). As I suggested may be the
case, this follows no standard whatsoever. From this partial pin
out and the details of the cable I infer the following, but double
check it to make sure:
Pin 1 DCD
2 DSR
3 TxD
4 RxD
5 RTS
6 CTS
7 GND
8 DTR
From this I get the following wiring:
EPOS (RJ45) Printer (9 pin DCE)
1 1 *
2 6
3 3
4 2
5 7 *
6 8 *
7 5
8 4
Lines marked with an asterisk are ones not present in your existing
cable, which links ground, TxD & RxD, DSR & DTR only. With a
different printer it is possible the handshaking requirements are
different, so I would connect them up even if I didn't think they
were needed.