At Palma de Mallorca airport, passengers connecting between two international flights can usually stay in the transit area without going through immigration.
The airport has 5 terminals or concourses (Terminal Principal, Módulo A, Módulo B, Módulo C, Módulo D). All of them are connected after security, so you do not need to clear security again to change.