Posts about using

2013-11-04 SparkleShare on a QNAP

  • SparkleShare is a great alternative to DropBox

  • Fetch the Dazzle script on https://github.com/hbons/Dazzle

    curl https://raw.github.com/hbons/Dazzle/master/dazzle.sh   --output /usr/bin/dazzle && chmod +x /usr/bin/dazzle
    
  • set-up variables:

    export DAZZLE_USER=admin
    export DAZZLE_HOME=/share/Multimedia/dazzle
    
  • do it:

    dazzle setup
    dazzle create pool # a first project
    dazzle create-encrypted passwords # this one is completely encrypted on the server side and before the files leave the client
    

Comments

2012-08-27 installing Dovecot on QNAP

  • master howto: http://forum.qnap.com/viewtopic.php?f=143&t=33376&start=30

  • Configure

    sh xdove.sh stop
    cd /share/HDA_DATA/.qpkg/XDove
    vim dovecot/etc/dovecot/dovecot.conf
    
  • Mine reads (it's just meant to access imap files from the local mail server and not to serve outside the localhost):

    auth_user = admin
    login_user = dovecot
    login_chroot = no
    protocols = imaps
    listen = localhost:993
    log_path = /var/log/dovecot/dovecot.log
    info_log_path = /var/log/dovecot/dovecot-info.log
    #ssl_disable = yes
    #ssl = no
    #disable_plaintext_auth = no
    ssl = yes
    ssl_cert_file = /etc/stunnel/stunnel.pem
    ssl_key_file = /etc/stunnel/stunnel.pem
    mail_location = maildir:/var/MailRoot/domains/%d/%n/Maildir
    first_valid_uid = 10
    
    dotlock_use_excl=yes
    mailbox_idle_check_interval = 30
    maildir_stat_dirs = no
    maildir_copy_with_hardlinks = no
    
    auth_executable = /usr/libexec/dovecot/dovecot-auth
    auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
    auth_verbose = yes
    auth_debug = yes
    auth_debug_passwords = yes
    mail_debug = yes
    
    protocol imap {
    #       login_greeting_capability = yes
            imap_client_workarounds = tb-extra-mailbox-sep
            login_executable = /usr/libexec/dovecot/imap-login
            mail_executable = /usr/libexec/dovecot/imap
            #imap_client_workarounds = outlook-idle
    }
    
    auth default {
           mechanisms = plain
           passdb checkpassword {
           args = /usr/bin/checkpassword
           }
    
           userdb static {
           args = uid=xmail gid=xmail home=/var/MailRoot/domains/%d/%n/Maildir
           }
    }
    
  • Reload

    sh xdove.sh restart
    

Comments

2012-03-21 installing Dovecot on MacOsX using HomeBrew

  • master howto: https://trac.macports.org/wiki/howto/SetupDovecot

  • Install

    brew install dovecot
    sudo vim /Library/LaunchDaemons/homebrew.mxcl.dovecot.plist
    
  • Configure

    sudo cp /usr/local/etc/dovecot/dovecot-example.conf  /usr/local/etc/dovecot/dovecot.conf
    sudo vim /usr/local/etc/dovecot/dovecot.conf
    
  • Mine reads (it's just meant to access imap files from the local mail server and not to serve outside the localhost):

    disable_plaintext_auth = no
    mail_location = maildir:~/Maildir
    ssl = no
    default_login_user = lup
    passdb {
      args = login
      driver = pam
    }
    protocols = imap
    service auth {
      user = root
    }
    service imap-login {
      inet_listener imap {
        address = 127.0.0.1
        port = 10143
      }
      inet_listener imaps {
        address = 127.0.0.1
        port = 10943
      }
    }
    userdb {
      driver = passwd
    }
    
  • Reload

    sudo launchctl unload homebrew.mxcl.dovecot.plist
    sudo launchctl load homebrew.mxcl.dovecot.plist
    
  • It does not work on the first try... so read documentation

    less /usr/local/share/doc/dovecot/documentation.txt
    less /usr/local/share/doc/dovecot/auth-protocol.txt
    less /usr/local/share/doc/dovecot/wiki/PasswordDatabase.PAM.txt
    
  • Authentification

    ls -l /etc/pam.d/
    sudo vim /etc/pam.d/dovecot
    

    with /etc/pam.d/dovecot being

    auth       required       pam_permit.so
    account    required       pam_permit.so
    password   required       pam_deny.so
    session    required       pam_uwtmp.so
    

Comments

2012-02-08 installing Dovecot on debian

  • master howto: https://trac.macports.org/wiki/howto/SetupDovecot

  • Install

    sudo aptitude install dovecot
    
  • Configure

    sudo vim /etc/dovecot/dovecot.conf
    
  • Mine reads (it's just meant to access imap files from the local mail server and not to serve outside the localhost):

    protocols = imaps
    listen = localhost:10943
    mail_location = maildir:~/Maildir
    protocol imap {
        ssl_listen = *:993
    }
    ssl_disable = no
    ssl_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
    ssl_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
    
  • Reload

    sudo service dovecot restart
    

Comments

2010-11-04 installing Dovecot on MacOsX using MacPorts

2010-11-05 15:40:38
  • master howto: https://trac.macports.org/wiki/howto/SetupDovecot

  • Install

    sudo port install dovecot
    sudo port load dovecot
    
  • Configure

    sudo cp /opt/local/etc/dovecot/dovecot-example.conf  /opt/local/etc/dovecot/dovecot.conf
    
    sudo vim /opt/local/etc/dovecot/dovecot.conf
    
  • Mine reads (it's just meant to access imap files from the local mail server and not to serve outside the localhost):

    protocols = imap
    listen = localhost:10143
    disable_plaintext_auth = no
    ssl = no
    mail_location = maildir:~/Maildir
    protocol imap {
    }
    auth default {
      mechanisms = plain
      passdb pam {
        args = login
      }
      userdb passwd {
          args =
      }
    user = root
    dict {
    }
    
  • Reload

    sudo launchctl stop org.macports.dovecot
    sudo launchctl start org.macports.dovecot
    
  • It does not work on the first try... so read documentation

    less /opt/local//share/doc/dovecot/documentation.txt
    less /opt/local//share/doc/dovecot/auth-protocol.txt
    less /opt/local//share/doc/dovecot/wiki/PasswordDatabase.PAM.txt
    
  • Authentification

    ls -l /etc/pam.d/
    sudo vim /etc/pam.d/dovecot
    

    with /etc/pam.d/dovecot being

    auth       required       pam_permit.so
    account    required       pam_permit.so
    password   required       pam_deny.so
    session    required       pam_uwtmp.so
    

Comments