This can be caused by excessive use of detergents, always using low temperature wash cycles & leaving door closed between uses.
Run a number of wash cycles at 90°C without any laundry in the machine, add a cup of sodium carbonate to reduce mould build up on door seal.