Zaslat SMS: Electron beam relaxation in inhomogeneous plasmas