RS-232 Wiring
I use Cat5 network patch cables for much of my serial port wiring, with RJ-45 to DB-9 or DB-25 adapeters at each end.
All my Ethernet cables are wired to the EIA-568B standard. This means that an RJ45 connector is wired as follows (looking down on the connector, with the hook on the underside and the cable coming in from the bottom of the picture, numbered from left to right):
Pin | Wire Color |
1 | White/Orange |
2 | Orange |
3 | White/Green |
4 | Blue |
5 | White/Blue |
6 | Green |
7 | White/Brown |
8 | Brown |

I haven't found any standard mapping of wire color to pin number for the modular RJ45 to DB-9 adapters that I use, so this is what I came up with. Note that it cleverly appears to wire the two connectors with exactly opposite pin numbers. Oh, well...
Pin | Signal | Adapter Wire Color | EIA-568B Wire Color |
1 | DCD | White | Brown |
2 | RXD | Brown | Brown/White |
3 | TXD | Yellow | Green |
4 | DTR | Green | Blue/White |
5 | Ground | Red | Blue |
6 | DSR | Black | Green/White |
7 | RTS | Orange | Orange |
8 | CTS | Blue | Orange/White |
9 | RI | N/C | N/C |