6.0.0-git
2021-11-27

Diff for IngoSSH2 between 1 and 2

For those who prefer SSH2 over FTP for for security, due to upgrades to the Horde framework , Ingo can now be configured to use SSH2 with a small changeSSH2.  Upgrade to the /ingo/lib/Driver/vfs.php script.

 

This can certianly be improved on (and please do!), butlatest stable version of both the downHorde Framework and dirty way is simplyIngo to comment out the following 2blocks under the function setScriptActive and getScript (near lines 75 & 101):



<code type="php">

/*

if  ($this->_params['vfstype'] != 'ftp) {

     return PEAR::raiseError(_(sprintf("VGS type \"%s\" not yet implemented.", $this->_params['vfstype'])));

}

*/



</code>



then to your /ingo/config/backends.php and add



<code type="php">

$backends['maildrop'] = array (

    'driver' => 'vfs',

    'preferred' => '',

    'hordeauth' => false,

    'params' => array(

        'hostspec' => 'localhost',

        ''filename' => '.mailfilter',

        'port' => 22,

        'vfstype' => 'ssh2',

        'username' => 'user',

        'password' => 'pass',

       'vfs_path' => '/path/to/maildrop/',

    ),

    'script' => 'maildrop',

    'scriptparams' => 'maildir',

    )

)



</code>do this.