1. If not as specified, loosen the fuel-filler lid installation bolts, and reposition the fuel-filler lid.
2. Measure the gap and height between the fuel-filler lid and the body.
Clearance
a: 1.7-3.7 mm {0.067-0.145 in} b: -0.5-1.5 mm {-0.019-0.059 in}
3. Tighten the bolts.

Fuel-filler lid and opener removal/installation
BumperMazda 6 Service Manual: Immobilizer system reprogram procedure
Note
When an error occurs during the reprogram procedures, except when
the PCM is replaced, repeat the procedure from Step 1. If you still cannot
reprogram, confirm how many keys can start the engine. Then, perform the key
replacement or addition reprogram procedure according to the val ...
Mazda 6 Service Manual: Keyless Entry System
This system uses the key buttons to remotely lock and unlock the doors and the
trunk lid, and opens the trunk lid.
The system can start the engine without having to take the key out of your purse
or pocket.
It can also help you signal for attention or help.
Operating the theft-deterrent syste ...