Email logging not working
Posted: 09 Oct 2016, 02:31
I'm trying to enable email logging, however, nothing seems to be coming through. I have an smtp server running on my network which i'm trying to send the mail through. If I open a telnet connection to the smtp server from the box which is running filebot I am able to successfully send mail but nothing seems to happen when filebot tries to send mail.
Below is the filebot command i'm running, the log output and the output of the sysinfo script:
this is the mail sending component: --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain>
and this the full script:
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
FB_DIR=/mnt/btdownloads/filebot
MEDIA_DIR=/mnt/media
if [ "$TORRENT_LABEL" == "auto_name" ]; then
$FB_DIR/filebot.sh -script fn:amc --output $MEDIA_DIR --filter "(n != 'American Dad!' || s == 14)" --log-file amc.log --action copy --conflict skip -non-strict --def clean=y --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain> "seriesFormat=tv/{n}/Season {s}/{n}.{s00e00}.{t}" "movieFormat=movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" xbmc=192.168.0.100 "exec=chmod 777 '{folder}' ; chmod 777 '{file}'" &
fi
this is a sample log output:
Run script [fn:amc] at [Sat Oct 08 14:20:42 BST 2016]
Parameter: clean = y
Parameter: mail = *****
Parameter: mailto = *****
Parameter: seriesFormat = tv/{n}/Season {s}/{n}.{s00e00}.{t}
Parameter: movieFormat = movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}
Parameter: ut_dir = /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_kind = multi
Parameter: ut_title = Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_label = auto_name
Parameter: xbmc = 192.168.0.100
Parameter: exec = chmod 777 '{folder}' ; chmod 777 '{file}'
Read archive [van.helsing.s01e04.hdtv.x264-fleet.rar] and extract to [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET]
Extracting files [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Input: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r11
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r02
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r08
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r05
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r12
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r01
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r06
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r04
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r10
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.nfo
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r07
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.sfv
Group: [tvs:van helsing] => [Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Van Helsing]
Fetching episode data for [Van Helsing]
Fetching episode data for [Demons]
Apply Filter: {(n != 'American Dad!' || s == 14)}
Include [Van Helsing - 1x01 - Help Me]
Include [Van Helsing - 1x02 - Seen You]
Include [Van Helsing - 1x03 - Stay Inside]
Include [Van Helsing - 1x04 - Coming Back]
Include [Van Helsing - 1x05 - Fear Her]
Include [Van Helsing - 1x06 - Nothing Matters]
Include [Van Helsing - 1x07 - For Me]
Include [Demons - 1x01 - They Bite]
Include [Demons - 1x02 - The Whole Enchilada]
Include [Demons - 1x03 - Saving Grace]
Include [Demons - 1x04 - Suckers]
Include [Demons - 1x05 - Smitten]
Include [Demons - 1x06 - Nothing Like Nebraska]
[COPY] Rename [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv] to [/mnt/media/tv/Van He
lsing/Season 1/Van Helsing.S01E04.Coming Back.mkv]
Processed 1 files
Execute: chmod 777 '/mnt/media/tv/Van Helsing/Season 1' ; chmod 777 '/mnt/media/tv/Van Helsing/Season 1/Van Helsing.S01E04.Coming Back.mkv'
Notify Kodi: 192.168.0.100:8080
GET: http://192.168.0.100:8080/jsonrpc?reque ... message%22
%3A%22Van.Helsing.S01E04.HDTV.x264-FLEET%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
GET: http://192.168.0.100:8080/jsonrpc?reque ... %22%3A1%7D
3
Clean temporary extracted files
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet
Done \xe3\x83\xbe(\xef\xbc\xa0\xe2\x8c\x92\xe3\x83\xbc\xe2\x8c\x92\xef\xbc\xa0)\xe3\x83\x8e
output from sysinfo script:
FileBot 4.7.2 (r4334)
JNA Native: 4.0.0
MediaInfo: 0.7.85
7-Zip-JBinding: 9.20
Chromaprint: 1.3.1
Extended Attributes: DISABLED
Script Bundle: 2016-09-30 (r406)
Groovy: 2.4.7
JRE: OpenJDK Runtime Environment 1.8.0_102 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 17 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
Data: /mnt/btdownloads/filebot
uname: FreeBSD hawking 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+9bbba48(9.10-STABLE): Mon Sep 26 21:03:32 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64
Done ヾ(@⌒ー⌒@)ノ
Thanks for creating a really useful piece of software. Any assistance you can offer with my issue would be much appreciated.
Below is the filebot command i'm running, the log output and the output of the sysinfo script:
this is the mail sending component: --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain>
and this the full script:
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
FB_DIR=/mnt/btdownloads/filebot
MEDIA_DIR=/mnt/media
if [ "$TORRENT_LABEL" == "auto_name" ]; then
$FB_DIR/filebot.sh -script fn:amc --output $MEDIA_DIR --filter "(n != 'American Dad!' || s == 14)" --log-file amc.log --action copy --conflict skip -non-strict --def clean=y --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain> "seriesFormat=tv/{n}/Season {s}/{n}.{s00e00}.{t}" "movieFormat=movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" xbmc=192.168.0.100 "exec=chmod 777 '{folder}' ; chmod 777 '{file}'" &
fi
this is a sample log output:
Run script [fn:amc] at [Sat Oct 08 14:20:42 BST 2016]
Parameter: clean = y
Parameter: mail = *****
Parameter: mailto = *****
Parameter: seriesFormat = tv/{n}/Season {s}/{n}.{s00e00}.{t}
Parameter: movieFormat = movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}
Parameter: ut_dir = /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_kind = multi
Parameter: ut_title = Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_label = auto_name
Parameter: xbmc = 192.168.0.100
Parameter: exec = chmod 777 '{folder}' ; chmod 777 '{file}'
Read archive [van.helsing.s01e04.hdtv.x264-fleet.rar] and extract to [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET]
Extracting files [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Input: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r11
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r02
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r08
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r05
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r12
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r01
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r06
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r04
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r10
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.nfo
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r07
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.sfv
Group: [tvs:van helsing] => [Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Van Helsing]
Fetching episode data for [Van Helsing]
Fetching episode data for [Demons]
Apply Filter: {(n != 'American Dad!' || s == 14)}
Include [Van Helsing - 1x01 - Help Me]
Include [Van Helsing - 1x02 - Seen You]
Include [Van Helsing - 1x03 - Stay Inside]
Include [Van Helsing - 1x04 - Coming Back]
Include [Van Helsing - 1x05 - Fear Her]
Include [Van Helsing - 1x06 - Nothing Matters]
Include [Van Helsing - 1x07 - For Me]
Include [Demons - 1x01 - They Bite]
Include [Demons - 1x02 - The Whole Enchilada]
Include [Demons - 1x03 - Saving Grace]
Include [Demons - 1x04 - Suckers]
Include [Demons - 1x05 - Smitten]
Include [Demons - 1x06 - Nothing Like Nebraska]
[COPY] Rename [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv] to [/mnt/media/tv/Van He
lsing/Season 1/Van Helsing.S01E04.Coming Back.mkv]
Processed 1 files
Execute: chmod 777 '/mnt/media/tv/Van Helsing/Season 1' ; chmod 777 '/mnt/media/tv/Van Helsing/Season 1/Van Helsing.S01E04.Coming Back.mkv'
Notify Kodi: 192.168.0.100:8080
GET: http://192.168.0.100:8080/jsonrpc?reque ... message%22
%3A%22Van.Helsing.S01E04.HDTV.x264-FLEET%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
GET: http://192.168.0.100:8080/jsonrpc?reque ... %22%3A1%7D
3
Clean temporary extracted files
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet
Done \xe3\x83\xbe(\xef\xbc\xa0\xe2\x8c\x92\xe3\x83\xbc\xe2\x8c\x92\xef\xbc\xa0)\xe3\x83\x8e
output from sysinfo script:
FileBot 4.7.2 (r4334)
JNA Native: 4.0.0
MediaInfo: 0.7.85
7-Zip-JBinding: 9.20
Chromaprint: 1.3.1
Extended Attributes: DISABLED
Script Bundle: 2016-09-30 (r406)
Groovy: 2.4.7
JRE: OpenJDK Runtime Environment 1.8.0_102 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 17 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
Data: /mnt/btdownloads/filebot
uname: FreeBSD hawking 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+9bbba48(9.10-STABLE): Mon Sep 26 21:03:32 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64
Done ヾ(@⌒ー⌒@)ノ
Thanks for creating a really useful piece of software. Any assistance you can offer with my issue would be much appreciated.