+ Reply to Thread
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 46

Thread: RoundCube vacation plugin

  1. #21
    ABerglund is offline Registered User
    Join Date
    Sep 2007
    Location
    Eugene, Oregon, USA
    Posts
    335
    Downloads
    7
    Uploads
    0

    Default

    OK, now I'm not certain that I disabled it in the previous version. I'm currently using version 20091008, which does not appear to have the forward-setting capability. Or if it did, I excised it completely.

    I will load and test stripping that out of this latest version and report back.
    Last edited by ABerglund; 03-04-2010 at 11:33 PM.
    Arne Berglund
    SysAdmin, Internet Services
    Lane Education Service District
    Eugene, OR, USA

  2. #22
    ABerglund is offline Registered User
    Join Date
    Sep 2007
    Location
    Eugene, Oregon, USA
    Posts
    335
    Downloads
    7
    Uploads
    0

    Default

    Have commented out the section on forwards, but have not been able to get the new version to work. Claims to have a permissions error when attempting to FTP to the IMAP server. Using the same server and info as works perfectly in that really early version.

    Uncommented the Forwards section as a test, no change. Still get permissions error when attempting to upload.

    This latest release using both a config.inc.php and config.ini is rather confusing, and the install options are not as clearly spelled out, in my opinion anyway. The early version is much easier to configure. I suspect my error is that I'm missing something in the FTP config. But there don't appear to be many options...
    Arne Berglund
    SysAdmin, Internet Services
    Lane Education Service District
    Eugene, OR, USA

  3. #23
    jaspersl is offline Registered User
    Join Date
    Sep 2009
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ABerglund View Post
    Have commented out the section on forwards, but have not been able to get the new version to work. Claims to have a permissions error when attempting to FTP to the IMAP server. Using the same server and info as works perfectly in that really early version.
    What's the exact error you see on the screen? Do you get the error when getting or setting the vacation settings?

    This latest release using both a config.inc.php and config.ini is rather confusing, and the install options are not as clearly spelled out, in my opinion anyway. The early version is much easier to configure. I suspect my error is that I'm missing something in the FTP config. But there don't appear to be many options...
    I had to make an ini style configuration to have multiple host support. So if you offer your users two different IMAP hosts (A and B) to choose from, the multiple host support comes in handy. In earlier versions, both host A and B shared the same settings for FTP, like FTP host.

    With the config.ini you can disable vacation tab for host A and have a FTP seperate configuration for host B. And host C might use sshftp.

    You can probably accomplish the same with a single config.inc.php, but you'll get a bunch of nasty nested arrays. Config.inc.php still remains for shared configuration like dotforward, these settings are shared by setuid,sshftp and ftp.

    However, if specific subjects in install.txt and readme.txt aren't clear to you, let me know.

  4. #24
    ABerglund is offline Registered User
    Join Date
    Sep 2007
    Location
    Eugene, Oregon, USA
    Posts
    335
    Downloads
    7
    Uploads
    0

    Default

    Quote Originally Posted by jaspersl View Post
    What's the exact error you see on the screen? Do you get the error when getting or setting the vacation settings?


    The error is displayed when attempting to write the file via FTP, but if the file already exists it can't be read, either. FTP logs on the IMAP server show that connection by the proper user was made, but transfer was not completed.

    Quote Originally Posted by jaspersl View Post
    I had to make an ini style configuration to have multiple host support. So if you offer your users two different IMAP hosts (A and B) to choose from, the multiple host support comes in handy. In earlier versions, both host A and B shared the same settings for FTP, like FTP host.
    I can see the value for that for other people, but hadn't considered that possibility since we connect to a single server.
    Last edited by ABerglund; 05-27-2010 at 07:59 PM.
    Arne Berglund
    SysAdmin, Internet Services
    Lane Education Service District
    Eugene, OR, USA

  5. #25
    jaspersl is offline Registered User
    Join Date
    Sep 2009
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ABerglund View Post


    The error is displayed when attempting to write the file via FTP, but if the file already exists it can't be read, either. FTP logs on the IMAP server show that connection by the proper user was made, but transfer was not completed.
    It surprises me as I use the default ftp_put() method of PHP. Can you try again after editing ftp.class.php?

    The downloadfile() and uploadfile() method supress errors, so I am wondering what the exact error looks like. Can you remove the '@' signs in the code?

    So it looks like:
    $result = ftp_put($this->ftp, $remoteFile, $localFile, FTP_ASCII);

    Which FTP-server are you using? Some FTP-server configuration don't allow . (dot) files to be downloaded. Can you perhaps try it from the commandline, using an FTP-client like ncftp or whatever you prefer?

    I can see the value for that for other people, but hadn't considered that possibility since we connect to a single server.
    I recently looked at (managed)sieve scripts which can be used with Dovecot IMAP-server. That eliminates the need for FTP/setuid/sshftp if the IMAP-server supports Sieve scripts, it's been a while since I've run my own production mailserver.

    Anyway, I wasn't so keen on supporting multiple-hosts either, but it seems a good thing to have more flexibility especially with exotic configurations I haven't thought of before

  6. #26
    ABerglund is offline Registered User
    Join Date
    Sep 2007
    Location
    Eugene, Oregon, USA
    Posts
    335
    Downloads
    7
    Uploads
    0

    Default

    Quote Originally Posted by jaspersl View Post
    It surprises me as I use the default ftp_put() method of PHP. Can you try again after editing ftp.class.php?
    No change in the error message after removing the '@'.

    Quote Originally Posted by jaspersl View Post
    Which FTP-server are you using? Some FTP-server configuration don't allow . (dot) files to be downloaded. Can you perhaps try it from the commandline, using an FTP-client like ncftp or whatever you prefer?
    The remote IMAP server (RHEL5) is running vsftp. I don't think there are any issues with (dot) files since the original version of the plugin still works perfectly. I'm leaning toward some sort of error in my config files for the plugin. I'm probably missing something fairly basic in one or the other. But since the documentation for the two files isn't clear (to me) what options and configs should go in which files, it's difficult for me to track down the problem.
    Arne Berglund
    SysAdmin, Internet Services
    Lane Education Service District
    Eugene, OR, USA

  7. #27
    jaspersl is offline Registered User
    Join Date
    Sep 2009
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ABerglund View Post
    No change in the error message after removing the '@'.

    The remote IMAP server (RHEL5) is running vsftp. I don't think there are any issues with (dot) files since the original version of the plugin still works perfectly. I'm leaning toward some sort of error in my config files for the plugin. I'm probably missing something fairly basic in one or the other. But since the documentation for the two files isn't clear (to me) what options and configs should go in which files, it's difficult for me to track down the problem.
    It's starting to make sense now. If I recall correctly, previous versions had passive mode on by default while the new style hasn't. Since there is no error (permission denied by the server), I suspect the firewall is key in this problem.

    The current code in ftp.class.php looks like:

    if (isset($this->cfg['passive']) && !ftp_pasv($this->ftp, TRUE)) {
    }

    Since the first statement evaluates to false, the latter isn't executed. Can you edit your config.ini so it looks a bit like this:

    [default]
    driver = "ftp"
    passive = True

    That should be all I guess.

    Regarding the documentation, I'd hoped the comments in config.inc.php would be clear.

    config.inc.php serves two purposes:

    1) Configuration of default subject/body text if it's empty.
    2) Provide configuration for dotforward class which acts a helper class for setuid,sshftp and ftp backend. It generally doesn't use any changes.

    I can probably merge the dotforward config with config.ini but my first priority is to start on this ManagedSieve driver support.

  8. #28
    ABerglund is offline Registered User
    Join Date
    Sep 2007
    Location
    Eugene, Oregon, USA
    Posts
    335
    Downloads
    7
    Uploads
    0

    Default

    Quote Originally Posted by jaspersl View Post
    Can you edit your config.ini so it looks a bit like this:

    [default]
    driver = "ftp"
    passive = True
    That fixed it. I had thought that I had seen something about passive being the default and so didn't think about that any farther. But I probably saw that in the old version, not the new. I guess I'm easily confused...

    Thanks for your help.
    Last edited by ABerglund; 03-05-2010 at 11:18 PM.
    Arne Berglund
    SysAdmin, Internet Services
    Lane Education Service District
    Eugene, OR, USA

  9. #29
    jaspersl is offline Registered User
    Join Date
    Sep 2009
    Posts
    10
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by ABerglund View Post
    That fixed it. I had thought that I had seen something about passive being the default and so didn't think about that any farther. But I probably saw that in the old version, not the new. I guess I'm easily confused...

    Thanks for your help.
    Thanx for reporting the issue. The documentation indeed tells that Passive = True is the default while the FTP-driver hasn't passive mode enabled by default.

    The code is updated, so in further releases 'passive = True' can be omitted.

    BTW, I hope to have release 1.9.3 that allows you to turn off forwarding without hacks in the code. It's a setting can be used in config.ini

    It should be done on Tuesday as I am quite busy with work.

  10. #30
    voltron81 is offline Registered User
    Join Date
    Sep 2009
    Posts
    42
    Downloads
    6
    Uploads
    0

    Default

    Hi guys.
    I'm trying to install this amazing plugin into my system with roundcube 0.3.1.
    The server is based on Debian and as database I'm using MySQL.

    I've installed the package validate and download the plugin in the roundcube.
    I've activated the plugin in roundcube and now in settings I can see the Vacation tab.
    But if I click on it I've this error:
    Code:
    CONFIGURATION ERROR
    
    Vacation plugin: /ab/ cannot be executed by user ''
    Please read the INSTALL instructions!
    Now the problem is that I don't understand what I've to do when in the INSTALL.txt you say:
    Code:
    3) Open plugins/vacation/config.inc.php in your editor and change the settings if needed.
    4) Configure plugins/vacation/config.ini and change the settings if needed.
    What I would like to have is a simple autoresponder, that will send and email back with a standard text (the same for everybody).
    Is then is simple enough, could be great to have option that every account can setup a personalized autoresponder message...

    May somebody explain me what I need to setup?

    Thanks
    Michele

+ Reply to Thread
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts