A non-standard boundary value problem related to geomagnetism