EmailRelay is a lightweight email filtering and forwarding tool used to filter spam and prevent your email server from getting blacklisted. Here's how to install it on Elementary OS Latest:
sudo apt-get update
sudo apt-get install build-essential libsasl2-dev libgnutls28-dev libwrap0-dev libpcre3-dev libdb-dev libexpat-dev
wget https://downloads.sourceforge.net/project/emailrelay/emailrelay/1.9.8/emailrelay-1.9.8.tar.gz
tar zxvf emailrelay-1.9.8.tar.gz
cd emailrelay-1.9.8
./configure
make
sudo make install
sudo nano /etc/emailrelay.conf
# Gmail server configuration
SMTP_SERVER="smtp.gmail.com"
SMTP_PORT=587
SMTP_LOGIN="your_email_address@gmail.com"
SMTP_PASSWORD="your_email_password"
# EmailRelay configuration
LISTEN_IP="127.0.0.1"
LISTEN_PORT=8025
FORWARD_TO="you@example.com"
Note: Replace the values for SMTP_LOGIN, SMTP_PASSWORD, and FORWARD_TO with your own values.
Save and close the configuration file.
Start the EmailRelay server by running the following command:
emailrelay -c /etc/emailrelay.conf
http://127.0.0.1:8025
in your web browser. You should see a page that says "EmailRelay".Congratulations, you have successfully installed EmailRelay on Elementary OS Latest!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!