Almost regular automorphisms of Lie algebras