Alabama does allow you to have a real estate salesperson license if you are not an Alabama resident. However, you must be a U.S. citizen or be legally present in the U.S. You’ll have to show proof of U.S. residency as part of your application.
The Alabama Real Estate Commission has compiled all the Alabama real estate-related license laws with its references, articles, sections, and chapters on its website.