I have all the email settings configured correctly, when I run the command line send-mail, I receive a message. However, for some reason, I don’t receive emails from jobs completing, even though I have the “send-mail-to” advance option set in the jobs. I am running Duplicati as a service, if that matters.
Thanks in advanced for any help!
Reporting options explains the various options you might need (or want) in addition to –send-mail-to, but you probably had to supply some of the same ones to The SEND-MAIL command. You can do visual comparisons using the job’s “Commandline” option (even testing backup there) or the job’s Configuration --> Export option.
The only option I supply the command on my successful commandline test is the --send-mail-to flag. The rest are configured in the advanced options for the whole instance. Worth noting: I also have the --send-mail-to flag configured in the advanced options.
Is “commandline” a Windows Command Prompt plus C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe, or a Linux shell plus /usr/bin/duplicati-cli, or web UI “Commandline” click-option for the job, or something else?
I got the send-mail options from a mail-sending job, copied them to Advanced Options on MENU --> Settings, and have been testing with a not-previously-mail-sending job to see if it “learned” to send mail (and it did so).
If web UI, the global options should get pulled in for you and be visible, whether running send-mail or backup.
Running send-mail from the web UI requires manual deletion of things that were only appropriate for backup (some are just ignored, but at least emptying “Target URL” and “Commandline arguments” seems advisable).
Running Duplicati.CommandLine.exe send-mail requires specifying all required options on the command line.
While it would help to understand the commandline details, a direct approach can watch logs with the web UI.
MENU --> About --> Show log --> Live --> Profiling then run the job from a different tab, and see what it does.
For my test, lines (newest at the top) went like this: How about yours?
Sep 21, 2018 10:55 AM: The operation Backup has completed
Sep 21, 2018 10:55 AM: Email sent successfully using server:
Sep 21, 2018 10:55 AM: Whole SMTP communication:
Sep 21, 2018 10:55 AM: Running Backup took 0:00:00:12.011
You can also get all this logging to a disk file, but you’d have to reinstall your service, so “Live” is just simpler.