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: Center panel module disassembly/assembly
Caution
Before disassembling the center panel module, spread a cloth on the floor to
put the disassembled parts on. This protects the surface of the panel from
scratches or dirt.
1. Remove the center panel module. (See CENTER PANEL MODULE
REMOVAL/INSTALLATION.)
2. Remove in the order i ...
Mazda 6 Owners Manual: Sunroof relay inspection
Note
Sunroof relay is built in the sunroof motor.
1. Remove the headliner. (See HEADLINER REMOVAL/INSTALLATION.)
2. Connect the sunroof switch connector.
3. Measure the voltage at the sunroof relay terminals as indicated below.
4. Disconnect the sunroof relay connector before inspecting fo ...