Cyrus Imap -> Imap Fächer automatisch erstellen

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
Post Reply
gevaddertod
Posts: 18
Joined: 2003-11-16 11:40
 

Cyrus Imap -> Imap Fächer automatisch erstellen

Post by gevaddertod »

Hallo nochmals!

Wie kann ich automatisch nach dem erstellen von UNIX-Benutzer die entsprechenden IMAP Ordner erstellen lassen?

Ein Login per Squirrelmail auf den IMAP Server funktioniert zwar, aber er findet die Inbox nicht und ein erstellen des "Trash" Ordners scheitert immer mit Permission denied.


Vielleicht hat ja jemand eine Lösung dazu parat.

Viele Grüße,
Jan
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Cyrus Imap -> Imap Fächer automatisch erstellen

Post by Roger Wilco »

Mit Bordmitteln geht das nicht, aber es gibt einen entsprechenden Patch, der das macht.
Die Frage ist, ob du das wirklich brauchst.
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Cyrus Imap -> Imap Fächer automatisch erstellen

Post by flo »

versuchs mal damit:

Code: Select all

#!/usr/bin/cyradm -file
# filename: cyradd.tcl
# function: add one user to Cyrus Mail system
# usage: cyradd username
# Run this as 'root' or as the 'cyrus' id.

if {$argc != 1} {
   puts "usage: cyradd username"
      exit 1
      }

      set mailbox [lindex $argv 0]
      set quota 100000

      set partition [string index $mailbox 0]




      eval cyradm connect cyr_conn localhost
      eval cyr_conn authenticate -pwcommand {{
        set hostname "localhost"
          set adminid "cyrus"
            set adminpw "password"
              list $adminid $adminpw
                }
                }


                cyr_conn createmailbox user.$mailbox 
                cyr_conn setquota user.$mailbox storage $quota
Grüße,

flo.
Post Reply