install msmtp amazon linux

Solution 1:

I know this is old. But I ran into same issue. Managed to find a way. So I'm sharing solution just in case someone is looking for a solution: you can install epel repo with "sudo amazon-linux-extras install epel -y" on amazon linux 2. Then you should be able to "yum install msmtp" Details here: https://aws.amazon.com/fr/premiumsupport/knowledge-center/ec2-enable-epel/