Email provider mailgun

before

    'email' => [
        'transport' => [
            'host' => 'smtp.eu.mailgun.org',
            'port' => 587,
            'security' => 'tls',
            'auth' => true,
            'username' => 'postmaster@mg.domain.com',
            'password' => 'KEY',
            ],
        ],

After (correct)

    'email' => [
        'transport' => [
            'type' => 'smtp',
            'host' => 'smtp.eu.mailgun.org',
	    'port' => 587,
            'security' => 'true',
            'auth' => true,
            'username' => 'postmaster@mg.domain.fr',
            'password' => 'KEY',
            ],      
        ],

add 'type' => 'smtp', and change 'security' => 'true',

Thanks @texnixe It was my fault. I had already changed several times in more than a year the smtp config because sometimes it didn’t work anymore.