Skip to content

Instantly share code, notes, and snippets.

@p3x-robot
Last active January 3, 2019 21:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save p3x-robot/082801a642e3a28e0f0c3997bb47db91 to your computer and use it in GitHub Desktop.
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
# 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 yours@domain.com < /root/test.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment