Conversation
| --ipv4 | ||
| #--server="${RCPT_MX}" | ||
| log_msg "Sent notification email to ${rcpt}" | ||
| if [[ $? -eq 1 ]]; then # exit code 1 is fine |
There was a problem hiding this comment.
Looks good in my test, but why? Did you find an issue regarding this? Is it normal?
There was a problem hiding this comment.
Looks like it. I found mludvig/smtp-cli#17 and seems exitcode is 1 when everything is fine...
|
Nice. :) Let me know when you can merge. I will build the image then first. |
|
I just tested a bit and looks fine on my side, but I noticed when you set a mail with a bad domain (no mx record), then no mail will be sent. mailcow-dockerized/data/Dockerfiles/watchdog/watchdog.sh Lines 129 to 135 in 8b4e1ce like this: |
|
Can you adjust the PR? |
|
Thank youuu |
|
We should probably add the variable information to the docs. |
|
Wow, nice :) |
Adding the possibility to see verbose logs while sending mails via Watchdog
May fix #4298 + #4197
PS: Needs a new watchdog image then
PPS: Needs more testing - only tested it quickly. @andryyy maybe you have some time for this