Let S be a semigroup. Our main results is that we describe the complex-valued solutions of the following functional equationswhere σ : S → S is an automorphism that need not be involutive. As a consequence we show that the first two equations are equivalent to their variants. We also give some applications.