MailyGo is a simple SMTP server that allows you to send emails using your own server. In this tutorial, we'll show you how to install MailyGo on Fedora Server latest.
Before we begin, make sure you have the following:
We recommend updating the system before proceeding with the installation.
sudo dnf update
MailyGo is built with Go, so you'll need to install Go on your system if it's not already installed.
sudo dnf install golang
Clone the MailyGo repository using the following command:
git clone https://codeberg.org/jlelse/MailyGo.git
Once downloaded, navigate into the MailyGo directory:
cd MailyGo
Build MailyGo by running the following command:
go build
Create a new file in the MailyGo directory named config.toml
:
nano config.toml
Then, insert the following configuration:
[general]
listen-address = "localhost:25"
hostname = "yourserver.com"
relay-domain = "relay-server.com"
log-level = "debug"
[auth]
enabled = false
[database]
dsn = "sqlite:/var/lib/mailygo/database.sqlite3?cache=shared&mode=rwc"
[delivery]
delivery-method = "smtp"
delivery-options = "host=smtp-relay.gmail.com;username=your-username;password=your-password;port=465;ssl=true"
You should modify the hostname
and the relay-domain
variables with the appropriate values for your setup. Also, make sure to set up the delivery-options
parameter by using the correct values for your SMTP server.
Save the file by hitting CTRL+O
, CTRL+X
to exit.
To start MailyGo, run the following command:
./MailyGo
MailyGo should now be running.
To test if MailyGo is working properly, you can use a simple command-line tool called swaks
to send an email.
sudo dnf install swaks
Try sending a test email:
swaks --to test@gmail.com --from you@yourserver.com --server localhost:25
If the email sends successfully, MailyGo is configured and running as expected.
In this tutorial, you learned how to install MailyGo on Fedora Server latest. With MailyGo installed, you can use your own server to send emails reliably and with greater control over the process.
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!