https://bugs.koozali.org/show_bug.cgi?id=11874

            Bug ID: 11874
           Summary: Status email is sent on checkip schedule, unable to be
                    turned off or set to other than admin
    Classification: Contribs
           Product: SME Contribs
           Version: Futur
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-ddclient
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Current config seeting sends an email to admin according to checkip time sched
with status of check. Will also send an email on failure of checkip.

Currently defaults to admin and apart from manually editing the conff file
there is no way to turn status email off or set a email addy other than admin..

template to be changed and following section to be modded

/etc/e-smith/templates/etc/ddclient/ddclient.conf/10headers

    my $mailSuccess = $ddclient{'mailSuccess'}||'admin';

    if (($mailSuccess eq 'none') || ($mailSuccess eq '' )) {
        $mailSuccess = "";
    }

    my $mailFailure = $ddclient{'mailFailure'}||'admin';

    if (($mailFailure eq 'none') || ($mailFailure  eq '')) {
        $mailFailure = "";
    }

    $OUT .= "\n";
    $OUT .= "mail=$mailSuccess\n";                                      # mail
update msgs to admin
    $OUT .= "mail-failure=$mailFailure\n";

defaults to current status output, email to admin 

add propertry key to config and mail can be turned off or email sent to a addy
other than admin

with no keys set, ddclient.conf defaults to admin for both mail settings
with mailSuccess set as a property and key to none we get

# config setprop ddclient mailSuccess none

mail=
mail-failure=admin
if config setprop ddclient mailSuccess is empty system defaults to

mail=admin
if key is set to an actual email address, bobs your uncle

admin sets admin email
"" < sets blank
none < sets blank
[email protected] < sets address

[root@fagehome ~]# rpm -q smeserver-ddclient
smeserver-ddclient-1.3.0-22.el7.sme.noarch
[root@fagehome ~]# config show ddclient
ddclient=service
DeamonUpdate=7200
Extinterface=
ForceIP=
SSL=no
cmd=
debug=disabled
mailSuccess=none
method=web
status=enabled
syslog=enabled
urlcheckip=checkip.dyndns.org
verbose=enabled

needs wiki updating, default acts as it does now, config key is not set
above setting on my system stops the status upodate email, failure emnail is
left as is
[root@fagehome ~]# cat /etc/ddclient/ddclient.conf
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

daemon=7200 # check every 7200 seconds
syslog=yes # log update msgs to syslog
pid=/var/run/ddclient.pid # record PID in file.
ssl=no # Set SSL

mail=
mail-failure=admin

[email protected]
mail-failure=admin

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to