2

I have set up my pi to be a media server and a seed box. I have the transmission daemon running in the background. I am able to successfully access the transmission web gui from my laptop. Now I am trying to make the daemon send an email automatically on torrent completion. Here is the script I wrote,

#!/bin/bash
/usr/bin/esmtp username@gmail.com <<EOF
Subject: "$TR_TORRENT_NAME" finished.
This is an automatic message from your friendly transmission-daemon
($TR_APP_VERSION), your files are in $TR_TORRENT_DIR .
Have a nice day!
EOF

To be honest, I found this online. So I installed esmtp. I configured it and made sure the script send email and it works! However I do not get an email when a torrent is completed.

Things I have already done,

  • I have also changed the group ownership of /usr/bin/esmtp and the script to debian-transmission.
  • Made the script executable
  • Enabled run script after torrent finishes in the settings.json file. Gave it the exact path
  • Checked if running the script manually sends an email.

But this still does not work. Please help.

Nik
  • 129
  • 4

0 Answers0