Last active
January 3, 2019 21:53
-
-
Save p3x-robot/082801a642e3a28e0f0c3997bb47db91 to your computer and use it in GitHub Desktop.
Debian Testing / Buster / Bullseye MSMTP / MSMTP-MTA not working, here how to build it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# it will mirror the debian msmtp-mta, but works with TLS!!! | |
# based on | |
# https://gitlab.marlam.de/marlam/msmtp/issues/24 | |
sudo -i | |
cd /root | |
git clone https://gitlab.marlam.de/marlam/msmtp.git | |
cd msmtp | |
git checkout tags/msmtp-1.8.1 | |
# i removed the msmtp msmtp-mta, because it replaces | |
apt remove msmtp msmtp-mta | |
# is is possible that it is missing a few packages, because i built a few other before | |
# but it is to most essential | |
apt install -y build-essential autoconf gettext texinfo libgnutls28-dev libsecret-1-dev | |
autoreconf --install | |
# more options | |
# ./configure --help | |
./configure --prefix=/usr --sysconfdir=/etc | |
make clean | |
make -j$(grep -c ^processor /proc/cpuinfo) | |
make install | |
ln -s /usr/bin/msmtp /usr/sbin/sendmail | |
# this is for testing | |
sendmail [email protected] < /root/test.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment