All doors lock automatically when the lock side is pressed. They unlock when the unlock side is pressed.
Driver's door

Front passenger's door

To lock all the doors from an open front door, press the lock side of the door lock switch and then close the door.
NOTE
When locking the doors this way, be careful not to leave the key inside the vehicle.
Locking, Unlocking with Transmitter
Auto Lock/Unlock FunctionMazda 6 Owners Manual: Rear shock absorber removal/installation
Caution
Performing the following procedures without first removing the ABS
wheel-speed sensor may possibly cause an open circuit in the harness if it
is pulled by mistake. Before performing the following procedures, remove the
ABS wheel-speed sensor (axle side) and fix it to an appropri ...
Mazda 6 Owners Manual: Climate control unit disassembly/assembly
1. Disassemble in the order indicated in the table.
2. Assemble in the reverse order of disassembly.
Wire Disassembly Note
Disassemble the wires in the shown in the figure.
Wire Assembly Note
Assemble the wires to the position as shown in the figure.
...