NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
tarobun
Nov 24, 2012Tutor
New Transmission 2.84 add-on for ReadyNAS Duo/NV+ (sparc)
This is a newly compiled version for the Duo straight from source. It has been configured with "--disable-nls --enable-lightweight --enable-utp" and the default web interface port of 9091. If it do...
kels
Apr 24, 2014Aspirant
@emk
My email_alert file permissions are set as: -rwxrwxrwx+
Here's a copy of my file for exim:
Test exim emails get through - but nothing from Transmission!
My email_alert file permissions are set as: -rwxrwxrwx+
Here's a copy of my file for exim:
#!/bin/sh
NAIL=/usr/bin/nail
SMTP_SERVER=smtp.orange.fr
SUBJECT="Torrent Done!"
if [ -f /etc/frontview/alert.conf ]; then
EmailTo=`/bin/grep "email" /etc/frontview/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
else
EmailTo=`/bin/grep "email" /frontview/conf/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
fi
if [[ "$(readlink `which sendmail`)" = "/usr/bin/msmtp" ]]; then
EmailFrom=`/bin/grep '^from' /etc/msmtprc | /usr/bin/cut -f2 -d' '`
else
EmailFrom=`/bin/echo $EmailTo | awk '{ print $1 }'`
fi
echo "From:$EmailFrom To:$EmailTo"
# Create the email message
EmailFile=/tmp/tmp_email.txt
if [ -f "$EmailFile" ]; then
rm -f $EmailFile
fi
touch $EmailFile
# Create the message headers
echo "Date: `date -R`" >> $EmailFile
echo "From: $EmailFrom" >> $EmailFile
echo "To: $EmailTo" >> $EmailFile
echo "Subject:Torrent Done!" >> $EmailFile
echo "MIME-Version: 1.0" >> $EmailFile
echo "Content-Type: text/plain; charset=ISO-8859-1" >> $EmailFile
echo "" >> $EmailFile
# Create the message body
/bin/echo " Hostname: $HOSTNAME" >> $EmailFile
/bin/echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >> $EmailFile
/bin/echo "" >> $EmailFile
/bin/echo "----------------------------------------------------------------------" >> $EmailFile
/bin/echo "Your add-ons developer Super-Poussin" >> $EmailFile
/bin/cat $EmailFile |/usr/sbin/sendmail -f $EmailFrom $EmailTo
#$NAIL -v -S from="$EmailFrom" -S smtp -s "$SUBJECT" -S smtp=$SMTP_SERVER "$EmailTo" < $EmailFile
rm -f $EmailFile
#################################################################################################################
# you can use nail instead of readynas exim in this case : #
# uncomment the $NAIL line #
# comment the message header section #
# put a correct SMTP_SERVER value #
#################################################################################################################
#################################################################################################################
# this script will work with exim if you use custom parateters in frontview aka you specify : #
# username #
# smtp server ans so on #
#################################################################################################################
Test exim emails get through - but nothing from Transmission!
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!