    {
        my $deamonupdate = ${ddclient}{DeamonUpdate} || '300';
        my $ssl = ${ddclient}{SSL} || 'yes';
        $OUT .= qq(
daemon=$deamonupdate                                    # check every $deamonupdate seconds
syslog=yes                                     # log update msgs to syslog
pid=/var/run/ddclient.pid                      # record PID in file.
ssl=$ssl                                        # Set SSL
);


    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";

    my $method = $ddclient{'method'}||'web';
    my $webskip = $ddclient{'webskip'}||'IP Address:';
    my $cmdskip = $ddclient{'cmdskip'}||'';
    my $ifskip = $ddclient{'ifskip'}||'';
    my $Extinterface =  $ddclient{'Extinterface'}|| $ExternalInterface{'Name'}|| '';
    my $cmd = $ddclient{'cmd'} || '/sbin/e-smith/db configuration getprop ExternalInterface IPAddress';
    my $ForceIP = $ddclient{'ForceIP'} || $ExternalInterface{'IPAddress'} || $ExternalIP || '';
    $OUT .= "\n";
	if ( $method eq 'smeIF' ) {
		# we use SME db to get the external interface NAME : ppp0, eth1, tap0...
		$Extinterface = $ExternalInterface{'Name'} ||$Extinterface;
        	$OUT .="use=if, if=$Extinterface\n";
	} elsif ( $method eq 'smeCMD') {
		# we choose to just get the value from configuration DB
		$OUT .="use=cmd, cmd='/sbin/e-smith/db configuration getprop ExternalInterface IPAddress'\n";
	} elsif ( $method eq 'web') {
		# old good way, we get the value from an external web page. best if we are not gateway
		$OUT .="use=web, web=$ddclient{'urlcheckip'}\/, web-skip='$webskip' \n";
	} elsif ( $method eq 'if') {
		# we have a specific configuation and can not trust sme to get the interface correctly
		$OUT .="use=if, if=$Extinterface, if-skip='$ifskip'\n";
	} elsif ( $method eq 'ip') {
		# we want to force manually
		$OUT.="use=ip, ip=$ForceIP \n";
	} elsif ( $method eq 'cmd') {
		$OUT .="use=cmd, cmd='$cmd', cmd-skip='$cmdskip' \n";
	} else {
		# fw method
		my $fwaddress = $ddclient{'fwaddress'}||'';
		my $fwlogin = $ddclient{'fwlogin'}||'';
		my $fwpassword = $ddclient{'fwpassword'}||'';
		my $fwskip = $ddclient{'fwskip'}||'';
		$OUT .= "use=$method, fw=$fwaddress";
		$OUT .= ", fw-login=$fwlogin " if ( $fwlogin ne '' );
		$OUT .= ", fw-password=$fwpassword " if ( $fwpassword ne '' );
		$OUT .= ", fw-skip='$fwskip' " if ( $fwskip ne '' );
		$OUT .= "\n";
	}

    }

