Combination of abduction, external rotation, and extension cause the humeral head to move anterior and put stress on anterior capsule/stabilisers.
Posterior dislocation is caused by locked elbows pushing against heavy weight, causing humeral head to translate posterior and pushing against posterior capsule. Linemen and bench pressers.