E-Mail report Authentication required

Support for Ubuntu and other Desktop Linux distributions
Post Reply
updatefreak
Posts: 10
Joined: 03 Aug 2023, 21:16

E-Mail report Authentication required

Post by updatefreak »

Hi,

I have currently a problem to automatically send a report.
I setup a docker container as follows:

Code: Select all

docker run -d --name=FileBot \
-p 5802:5800 \
-e USER_ID=1026 \
-e GROUP_ID=100 \
-e LANG=de_DE.UTF-8 \
-e TZ=Europe/Berlin \
-e AMC_ACTION=move \
-e AMC_CONFLICT=skip \
-e AMC_LANG=German \
-e AMC_MOVIE_FORMAT="Filme/{n}/{n} ({y})" \
-e AMC_SERIES_FORMAT="Serien/{n}/Staffel {s}/{n} - {s00e00} - {t}" \
-e AMC_PROCESS_MUSIC=n \
-e AMC_CUSTOM_OPTIONS="--def mail=mail.gmx.net:587:[email protected]:PASSWORD --def [email protected]" \
-e AMC_INPUT_DIR=/storage/docker/jdownloader2/output/extracted \
-e AMC_OUTPUT_DIR=/storage/docker/jdownloader2/output/test \
-v /volume1/docker/filebot:/config:rw \
-v /volume1:/storage:rw \
jlesage/filebot
In the log I got the error message:
[amc ] Sending Email report
[amc ] 530 Authentication required

Does anyone knows a solution? I checked already the password -> should be ok.
EDIT: Or is the problem that the passwort is to complex: wosSn*%uxdesnf9%0
(e.g. I had a issue creating a docker container in task schedule with Synology containing an "&")
User avatar
rednoah
The Source
Posts: 23000
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: E-Mail report Authentication required

Post by rednoah »

:idea: I'd start by testing your amc script manually on the command-line, and not via a 3rd party docker container, that somehow passes some arguments along via some environment variable. Just to confirm that the options you are trying to use are actually working, if passed in correctly.


:idea: You need to quote arguments correctly if you're using characters like * on the command-line. Please read Cmdline and Argument Passing for details. echo abc*xyz may or may not do what you think it does, depending on your shell and the files in the current working directory.


:idea: You could use one of the other notification options:
rednoah wrote: 01 Aug 2012, 13:04 --def pushbullet=apikey Send report via PushBullet
--def pushover=userkey Send notification via Pushover
--def discord=webhook Send notification via Discord (NOTE: Linux and macOS users may prefer the send-discord-log shell script to capture and send console output)
--def gmail=username:password Send report via Gmail (see App Password)

:idea: You could save the HTML report to a file instead of sending it via email:
rednoah wrote: 01 Aug 2012, 13:04 --def storeReport=/path/to/folder Save reports
:idea: Please read the FAQ and How to Request Help.
updatefreak
Posts: 10
Joined: 03 Aug 2023, 21:16

Re: E-Mail report Authentication required

Post by updatefreak »

Thank you for you answer.
I tried it with Gmail and that worked without problems :)
updatefreak
Posts: 10
Joined: 03 Aug 2023, 21:16

Re: E-Mail report Authentication required

Post by updatefreak »

I tried it now again with GMX-Mail in the docker compose with

- AMC_CUSTOM_OPTIONS="--def mail=mail.gmx.net:587:[email protected]:[email protected]:12345678910"

Here I got the error: Argument[1]: File does not exist: /etc/services.d/amc/mail.gmx.net:587:[email protected]:[email protected]:12345678910
Is here the environ argmuent not correct?

EDIT: Found the problem. Without " it works
Post Reply