User notifications issueshttps://gitlab.nic.cz/turris/user-notify/-/issues2023-06-06T16:45:02+02:00https://gitlab.nic.cz/turris/user-notify/-/issues/12Allow users to define SMTP HELO/EHLO2023-06-06T16:45:02+02:00Michael PietschAllow users to define SMTP HELO/EHLOSome SMTP servers reject mails or mark them as spam if the HELO/EHLO doesn't match the hostname / dns PTR. Following change would enable users to define the `domain` parameter for the msmtp to set that config option.
Another alternative...Some SMTP servers reject mails or mark them as spam if the HELO/EHLO doesn't match the hostname / dns PTR. Following change would enable users to define the `domain` parameter for the msmtp to set that config option.
Another alternative would be to include the `/etc/msmtprc` file for user defined defaults (which btw. [is referenced on the wiki page](https://wiki.turris.cz/doc/en/public/customemailnotif) to be used)
```
get_user_server_settings() {
local username=`uci -q get user_notify.smtp.username`
local password=`uci -q get user_notify.smtp.password`
local server=`uci -q get user_notify.smtp.server`
local port=`uci -q get user_notify.smtp.port`
local security=`uci -q get user_notify.smtp.security`
local domain=`uci -q get user_notify.smtp.domain`
echo "from $mail_from"
echo "host $server"
echo "port $port"
if [ "$security" = "ssl" ]; then
echo "tls on"
echo "tls_starttls off"
echo "tls_certcheck on"
echo "tls_trust_file /etc/ssl/certs/ca-certificates.crt"
elif [ "$security" = "starttls" ]; then
echo "tls on"
echo "tls_starttls on"
echo "tls_certcheck on"
echo "tls_trust_file /etc/ssl/certs/ca-certificates.crt"
else
echo "tls off"
fi
if [ -n "$username" -a -n "$password" ]; then
echo "auth on"
echo "user $username"
echo "password $password"
else
echo "auth off"
fi
if [ -n "$domain" ]; then
echo "domain $domain"
fi
}
```https://gitlab.nic.cz/turris/user-notify/-/issues/9Allow to set day of the week for reboot2021-03-04T15:59:52+01:00Karel KociAllow to set day of the week for rebootRight now it is possible to set time of reboot and minimal delay but it makes sense in some cases to also set day of the week. It is expected that for example admin is going to be on location only one day in a week and it makes sense to ...Right now it is possible to set time of reboot and minimal delay but it makes sense in some cases to also set day of the week. It is expected that for example admin is going to be on location only one day in a week and it makes sense to postpone reboot just before that day.https://gitlab.nic.cz/turris/user-notify/-/issues/6Add human readable list to list_notifications2020-10-19T10:18:37+02:00Lukas JelinekAdd human readable list to list_notifications`list_notifications` currently exports data in the JSON format. It's good for machine processing but problematic for human readers. I suggest to add an option like `-H` / `--human-readable` which will switch the output to a human readabl...`list_notifications` currently exports data in the JSON format. It's good for machine processing but problematic for human readers. I suggest to add an option like `-H` / `--human-readable` which will switch the output to a human readable format (table-like or similar).
Related to #5https://gitlab.nic.cz/turris/user-notify/-/issues/5Add help option to list_notifications2020-10-19T10:18:36+02:00Lukas JelinekAdd help option to list_notifications`list_notifications` hasn't currently any command line option like `-h` or `--help`. It means there is no possibility how to find out what this program does, which arguments may be used and how they affect the behavior.
Please add suppo...`list_notifications` hasn't currently any command line option like `-h` or `--help`. It means there is no possibility how to find out what this program does, which arguments may be used and how they affect the behavior.
Please add support for `-h` and `--help` (and possibly `-?` too) which will inform users about the program and its command line arguments.
Related to #6