Skip to content

Instantly share code, notes, and snippets.

@p3x-robot
Last active January 3, 2019 21:53
Show Gist options
  • Select an option

  • Save p3x-robot/082801a642e3a28e0f0c3997bb47db91 to your computer and use it in GitHub Desktop.

Select an option

Save p3x-robot/082801a642e3a28e0f0c3997bb47db91 to your computer and use it in GitHub Desktop.

Revisions

  1. p3x-robot revised this gist Jan 3, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions debian-testing-build-msmtp-mta.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,8 @@ 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
  2. p3x-robot revised this gist Jan 3, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion debian-testing-build-msmtp-mta.sh
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,10 @@ cd /root
    git clone https://gitlab.marlam.de/marlam/msmtp.git
    cd msmtp
    git checkout tags/msmtp-1.8.1
    apt install -y gettext texinfo libgnutls28-dev libsecret-1-dev

    # 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
  3. p3x-robot revised this gist Jan 3, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions debian-testing-build-msmtp-mta.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,15 @@
    # 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
    apt install -y 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)
  4. p3x-robot renamed this gist Jan 3, 2019. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions build-msmtp-mta.sh → debian-testing-build-msmtp-mta.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    # it will mirror the debian msmtp-mta, but works with TLS!!!
    sudo -i
    cd /root
    git clone https://gitlab.marlam.de/marlam/msmtp.git
    cd msmtp
    git checkout tags/msmtp-1.8.1
    @@ -9,4 +11,6 @@ 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
  5. p3x-robot created this gist Jan 3, 2019.
    12 changes: 12 additions & 0 deletions build-msmtp-mta.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # it will mirror the debian msmtp-mta, but works with TLS!!!
    git clone https://gitlab.marlam.de/marlam/msmtp.git
    cd msmtp
    git checkout tags/msmtp-1.8.1
    apt install -y gettext texinfo libgnutls28-dev libsecret-1-dev
    autoreconf --install
    ./configure --prefix=/usr --sysconfdir=/etc
    make clean
    make -j$(grep -c ^processor /proc/cpuinfo)
    make install
    ln -s /usr/bin/msmtp /usr/sbin/sendmail
    sendmail [email protected] < /root/test.txt