Line 99: |
Line 99: |
| * Controlling email notifications | | * Controlling email notifications |
| | | |
− | ** DB entries are: mailSuccess and mailFailure
| + | * DB entries are: mailSuccess and mailFailure |
− | ** with no keys set, ddclient.conf defaults to admin for both mail settings, which is default behaviour
| |
− | ** with mailSuccess set as a property and key to none we get mail= mail-failure=admin
| |
− | ** if config setprop ddclient mailSuccess is empty system defaults to mail=admin (same for mailFailure)
| |
− | ** if key is set to an actual email address, then:
| |
| | | |
| + | * default behaviour: If the keys are not set then they default to admin |
| + | |
| + | config setprop ddclient mailSuccess <nowiki>''</nowiki> or 'none' |
| + | Output: |
| + | mail= |
| + | |
| + | config setprop ddclient mailFailure <nowiki>''</nowiki> or 'none' |
| + | Output: |
| + | mail-failure= |
| + | |
| + | config setprop ddclient mailSuccess someaddress@yahoo.com |
| + | Output: |
| mail=someaddress@yahoo.com | | mail=someaddress@yahoo.com |
− | mail-failure=admin
| + | |
| + | config setprop ddclient mailFailure somewhereelse@gmail.com |
| + | Output: |
| + | mail-failure=somewhereelse@gmail.com |
| + | |
| + | Remove the keys to reset to the default 'admin' |
| + | |
| + | config delkey ddclient mailSuccess |
| + | config delkey ddclient mailFailure |
| | | |
| * full db ddclient | | * full db ddclient |
Line 122: |
Line 138: |
| urlcheckip=https://checkip.amazonaws.com/ | | urlcheckip=https://checkip.amazonaws.com/ |
| verbose=enabled | | verbose=enabled |
| + | mailSuccess | unset default=admin |
| + | mailFailure | unset default=admin |
| | | |
| | | |