0

My goal is to get the PHP mail() function to work on Amazon Linux. So the best option seems to be to install msmtp (found in EPEL repository) but I get a dependency error.

I run run sudo yum --enablerepo=epel install msmtp but then get:

Loaded plugins: priorities, update-motd, upgrade-helper
1053 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package msmtp.x86_64 0:1.4.32-1.el6 will be installed
--> Processing Dependency: libgsasl.so.7(LIBGSASL_1.1)(64bit) for package: msmtp-1.4.32-1.el6.x86_64
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: msmtp-1.4.32-1.el6.x86_64
--> Processing Dependency: libgsasl.so.7()(64bit) for package: msmtp-1.4.32-1.el6.x86_64
--> Running transaction check
---> Package libgsasl.x86_64 0:1.4.0-4.el6 will be installed
--> Processing Dependency: libntlm.so.0()(64bit) for package: libgsasl-1.4.0-4.el6.x86_64
---> Package msmtp.x86_64 0:1.4.32-1.el6 will be installed
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: msmtp-1.4.32-1.el6.x86_64
--> Running transaction check
---> Package libntlm.x86_64 0:1.3-2.2.amzn1 will be installed
---> Package msmtp.x86_64 0:1.4.32-1.el6 will be installed
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: msmtp-1.4.32-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: msmtp-1.4.32-1.el6.x86_64 (epel)
           Requires: libgnome-keyring.so.0()(64bit)

These are the details of the Amazon Linux instance:

NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"

According to /etc/yum.repos.d/epel.repo it uses EPEL 6.

2 Answers2

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/

Alassane
  • 11
  • 1
0

EPEL is not compatible with Amazon Linux. If you need to use packages from EPEL, you need to use a distribution compatible with it, such as CentOS or RHEL.

Michael Hampton
  • 252,907