Skip to content

Instantly share code, notes, and snippets.

@johndaley-me
Last active August 29, 2015 14:27
Show Gist options
  • Save johndaley-me/7bbc69f3ec7965c549c0 to your computer and use it in GitHub Desktop.
Save johndaley-me/7bbc69f3ec7965c549c0 to your computer and use it in GitHub Desktop.
Exim On Linux with Yum
# Add EPEL repository needed for exim
sudo curl -LO https://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo rm -f epel-release-6-8.noarch.rpm
sudo yum -y install exim
# Edit the configuration file at /etc/exim/exim.conf
# Do something like the following for small, automated configuration tweaks:
# sed -ie 's/domainlist relay_to_domains =/domainlist relay_to_domains = example.com/' /etc/exim/exim.conf
# test
sudo yum -y install mail
echo "test" |mail -s "test subject" -r [email protected] [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment