Re: starting cyrus at boot?
Hi, Please give us some more info, did you - install from source? - on what os? - what cyrus version? Tarjei Jeff Bert wrote: I know this is a newbie question but with all I had to do to get cyrus installed my brain hurts... what's a good way to get cyrus started at boot? thanks, Jeff
RE: starting cyrus at boot?
Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08, 2002 12:56 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? Hi, Please give us some more info, did you - install from source? - on what os? - what cyrus version? Tarjei Jeff Bert wrote: I know this is a newbie question but with all I had to do to get cyrus installed my brain hurts... what's a good way to get cyrus started at boot? thanks, Jeff
RE: cyrus hangs when trying to connect (new install)
I have too cyrus-imap 2.0.16 and cyrus-sasl 1.5.27 and I have the same problem. Does somebody know the solution? Howdy, I've searched forever int he archives and on the web for this, and can't find a clue that helps: I just installed Cyrus-imap 2.0.16 (and cyrus-sasl 1.5.27, both with the berkeley db 3.1) on my redhat 6.1 server, and I am pretty positive I followed the HOWTO to the letter, but now when I try to telnet in, it just hangs after the escape character prompt. Like so: $ telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. I can't even begin to figure out what might be causing this, the only hint in the archives said that if sasl is configured with a different version of the berkeley db that imap, then you can get this error, but I recompiled sasl to make sure and still nothing. Any help would be loved, thanks! rog. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
lmtp or deliver from postfix
Hi all, I'm currently upgrading my mail system. I use postfix+cyrus (older versions), I wan to continue to use them. My system is RedHat 7.2, so I use rpm versions. Postfix rpm seems to work as expected (version 1.1.4). I did not found any Cyrus-imapd rpm, so I have created it myself. It is close to working (I'm in testing phase) - now I'm compiling 2.1.3. I just would like to make communication between postfix and cyrus better. Problem is, that mail to non-existent mailbox stays in postfix queue with text error Data format error. I think, that exit code of cyrus deliver is either bad or not recognised by postfix. My question is: would it help to use lmtp instead ? And in case it would: how to do that (from cyrus side)? Just uncomment #lmtp and comment out lmtpunix in cyrus.conf ? ivo -- E-mail: [EMAIL PROTECTED] WWW:http://ivop.regionet.cz Mobile: +420 602 337776
Re: starting cyrus at boot?
On Fri, 8 Mar 2002 01:03:01 -0800 Jeff Bert [EMAIL PROTECTED] wrote: Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff Go to rpmfind.net, download a rpm package for mandrake and install it, it should be easier. Alain
Re: cyrus hangs when trying to connect (new install)
Ana B. D. schrieb am Fri, Mar 08, 2002 at 10:14:23AM +0100: I have too cyrus-imap 2.0.16 and cyrus-sasl 1.5.27 and I have the same problem. Does somebody know the solution? Howdy, I've searched forever int he archives and on the web for this, and can't find a clue that helps: I just installed Cyrus-imap 2.0.16 (and cyrus-sasl 1.5.27, both with the berkeley db 3.1) on my redhat 6.1 server, and I am pretty positive I followed the HOWTO to the letter, but now when I try to telnet in, it just hangs after the escape character prompt. Like so: $ telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. This can happen because of numerous reasons. Look, cyrus' master process acts a bit like superdaemons as inetd/xinetd are. It sits on the configured ports (see /etc/cyrus.conf for them) and upon incoming connection it starts up the configured processes like lmtpd, imapd etc. and hands the connection over to them. So the problem you face here is: master cannot start up the process at port imap. Look up /etc/cyrus.conf which process that is (presumably somepath/imapd). Does this file exist? Can it be invoked with *exactly* the command line you specified in /etc/cyrus.conf? What does your log files show? It is most common - I had it often myself - that there are hickups in imapd's config file. Regards, Birger
Re: lmtp or deliver from postfix
Ivo Panacek schrieb am Fri, Mar 08, 2002 at 10:22:40AM +0100: [...] My question is: would it help to use lmtp instead ? AFAIK, yes, because postfix will get the error that is somewhat shadowed by deliver (which in itself is just a sort of wrapper: it speaks to the lmtpd on the unix socket). And in case it would: how to do that (from cyrus side)? Just uncomment #lmtp and comment out lmtpunix in cyrus.conf ? On cyrus side: yes, that will suffice. It depends on whether you will use the unix or network socket from postfix side to say which one to comment out (ltmp or ltmpunix). Regards, Birger
Re: Redundant mail storage
Roland Pope wrote: From: Birger Toedtmann [EMAIL PROTECTED] Second (esp. if you cannot afford the hardware described above) you may set up the heartbeat package from www.linux-ha.org. It is very easy to create failover mechnisms with heartbeat, but there is still the problem of data synchronisation (heartbeat does not deal with that). I myself use heartbeat together with rsync, which is surely unidirectional but can be turned into somewhat bidirectional in combination with heartbeat: The active machine will permanently send its data to the backup machine (simple as that: I use a cronjob that tests whether we are active or not). Upon failfailover, the situation will reverse, which leaves data intact and up-to-date. However, note that rsync is slow, if you have lots of data, you should definitely think over the first alternative. Birger, I am looking at implementing something like this at present. Would you be able to provide a summary of what you had to do, and maybe any scripts you had to build to get this to work? Thanks Roland Pope I'm planning an starting implementing a redundant mail system in 6 months (maybe a year) so it's still only in the ideas fase. One thing I wanted to test was using coda as storage and let coda's replication take care of the mail storage synchronization. If cyrus was one single threaded application there could be problems with file lock and caches, but since cyrus is a combination of several daemons that already are aware that the files get updated externally -- it may just work 8-) -- Med venlig hilsen / Kind regards Hack Kampbjørn
RE: starting cyrus at boot?
Tried that and didn't find one for cyrus-imapd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio Sent: Friday, March 08, 2002 1:34 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? On Fri, 8 Mar 2002 01:03:01 -0800 Jeff Bert [EMAIL PROTECTED] wrote: Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff Go to rpmfind.net, download a rpm package for mandrake and install it, it should be easier. Alain
RE: cyrus hangs when trying to connect (new install)
Ana B. D. schrieb am Fri, Mar 08, 2002 at 10:14:23AM +0100: I have too cyrus-imap 2.0.16 and cyrus-sasl 1.5.27 and I have the same problem. Does somebody know the solution? Howdy, I've searched forever int he archives and on the web for this, and can't find a clue that helps: I just installed Cyrus-imap 2.0.16 (and cyrus-sasl 1.5.27, both with the berkeley db 3.1) on my redhat 6.1 server, and I am pretty positive I followed the HOWTO to the letter, but now when I try to telnet in, it just hangs after the escape character prompt. Like so: $ telnet localhost imap Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. This can happen because of numerous reasons. Look, cyrus' master process acts a bit like superdaemons as inetd/xinetd are. It sits on the configured ports (see /etc/cyrus.conf for them) and upon incoming connection it starts up the configured processes like lmtpd, imapd etc. and hands the connection over to them. So the problem you face here is: master cannot start up the process at port imap. Look up /etc/cyrus.conf which process that is (presumably somepath/imapd). Does this file exist? Can it be invoked with *exactly* the command line you specified in /etc/cyrus.conf? What does your log files show? It is most common - I had it often myself - that there are hickups in imapd's config file. Regards, Birger Thank Birger, but the imapd file exist. When I try telnet localhost imap the file imapd.log show this: Mar 8 11:12:38 x master[16859]: [ID 392559 local6.debug] about to exec /usr/cyrus/bin/imapd Mar 8 11:12:38 x service-imap[16859]: [ID 518349 local6.debug] executed The process is started but It don't reply.
Seamless migration
Hi all, I have a probably easy question for the list! We run a some mail services for a couple of domains. Currently we are using Sendmail that uses procmail to deliver to a spooldir from which a POP3 server serves mail to our users. What I'd like to know is how I can seamless phase out our POP3 server, a domain at a time, to the cyrus IMAP server. Would I just install the IMAP server and have procmail, using regexps (in procmailrc) to filter out the domains one at a time, deliver to the deliver program? Regards, Niclas Gustafson [EMAIL PROTECTED]
Re: Seamless migration
Niclas Gustafsson schrieb am Fri, Mar 08, 2002 at 11:53:05AM +0100: Hi all, I have a probably easy question for the list! We run a some mail services for a couple of domains. Currently we are using Sendmail that uses procmail to deliver to a spooldir from which a POP3 server serves mail to our users. What I'd like to know is how I can seamless phase out our POP3 server, a domain at a time, to the cyrus IMAP server. These days I'm doing exactly the same. My method is: * cyrus services on a different machine (but could be the same, important are different IP addresses) * installing http://vergenet.net/linux/perdition/ at the front serving all users, redirecting them to *their* location, old or new * moving box-by-box (sometimes bulks of boxes) to the new machine/services thereby instructing perdition to keep up-to-date. This way no normal user will notice anything, just the experienced see that their POP/IMAP services change their banners ;-) Regards, Birger
migration from courier to cyrus imapd
Is there a way to migrate from courier maildirs to cyrus imapd. I know I could just copy the messages with a client, but I need to keep the original timestamps of the messages. Justin
I need some more
I have cyrus imap 2.0.11 server with cmu-sieve-1.3 on my RH7 (everything working very well) At the begining this server was created for 100 users and now we are 350 users. I have 3 partitions : /boot , / , and /var on a raid 5 bay All my users are in /var/spool/imap/user and I need some more space for them. What is the best way to have more space ? Many thks for yr answers. Rgds/Jean-Marc
Re: starting cyrus at boot?
never used mandrake but you should be able to just add '/usr/cyrus.bin.master ' to your rc.local (or equivalent) file. -- =G= -=* I'm sorry if doing things correctly offends you. *=- Jeff Bert wrote: Tried that and didn't find one for cyrus-imapd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio Sent: Friday, March 08, 2002 1:34 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? On Fri, 8 Mar 2002 01:03:01 -0800 Jeff Bert [EMAIL PROTECTED] wrote: Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff Go to rpmfind.net, download a rpm package for mandrake and install it, it should be easier. Alain
Re: starting cyrus at boot?
If you installed a rpm , it should be /etc/init.d/cyrus restart or /etc/rc.d/init.d/cyrus restart justin never used mandrake but you should be able to just add '/usr/cyrus.bin.master ' to your rc.local (or equivalent) file. -- =G= -=* I'm sorry if doing things correctly offends you. *=- Jeff Bert wrote: Tried that and didn't find one for cyrus-imapd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alain Tesio Sent: Friday, March 08, 2002 1:34 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? On Fri, 8 Mar 2002 01:03:01 -0800 Jeff Bert [EMAIL PROTECTED] wrote: Sure, I have: Linux Mandrake 8.1, kernel 2.4.8 I installed cyrus-imapd-2.0.16 from the tarball that I downloaded from the cyrus site. Jeff Go to rpmfind.net, download a rpm package for mandrake and install it, it should be easier. Alain
Re: starting cyrus at boot?
here's a script i use for starting/stopping/restart cyrus on my redhat server. copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d depending on you system, call the file cyrus or whatever makes you happy. chown root.root /etc/init.d/cyrus chmod u+x /etc/init.d/cyrus cd /etc/rc3.d ln -s ../init.d/cyrus S99cyrus ln -s ../init.d/cyrus K99cyrus you might need to modify some of the path names if you've installed cyrus outside of the default locations. if you where running this on a solaris 7 or 8 system you could use /usr/bin/pkill instead of /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d instead of rc3.d. enjoy --BEGIN COPY-- #!/bin/sh # # Start/Shut for cyrus master server process # case $1 in 'start') if [ -f /etc/cyrus.conf ] ; then echo Starting Cyrus Master Process /usr/cyrus/bin/master 1 /dev/console 21 fi ;; 'stop') echo Shutting down Cyrus Master Process /usr/bin/killall master 1/dev/console 21 ;; 'restart') echo Restarting Cyrus Master Process /usr/bin/killall -HUP master 1/dev/console 21 ;; *) echo Usage: $0 { start | restart | stop } ;; esac exit 0 --END COPY-- Jeff Bert wrote: I know this is a newbie question but with all I had to do to get cyrus installed my brain hurts... what's a good way to get cyrus started at boot? thanks, Jeff -- Darin Perusich Unix Systems Administrator Cognigen Corp. [EMAIL PROTECTED]
Re: starting cyrus at boot?
On Fri, Mar 08, 2002 at 01:52:18PM +, Darin Perusich wrote: here's a script i use for starting/stopping/restart cyrus on my redhat server. While we're talking about starting cyrus on Red Hat boxes I thought now would be a good time to mention the oddity I found when using Cyrus 2.0.16, Postfix, and Red Hat 6.2 + errata. This behavior is not a problem in Red Hat 7.1 or 7.2. (I was sane enough to never run Red Hat 7.0 on a server.) Because both the postfix and cyrus servers use a master process the Red Hat 6.2 init scripts can get somewhat confused when issuing stop and restart. For example /sbin/service cyrus restart has a tendency to stop the postfix 'master' process and the cyrus 'master' process. The work around for my was to symlink cymaster - master in the cyrus directory then alter the /etc/rc.d/cyrus startup script start and stop cymaster instead of master. Hope it helps someone. -- Regards, Scott Russell ([EMAIL PROTECTED]) Linux Technology Center, System Admin, RHCE. T/L 441-9289 / External 919-543-9289 http://bzimage.raleigh.ibm.com/webcam
Re: starting cyrus at boot?
Why not add a chkconfig line to the script and let 'chkconfig --add imapd' after copying the script to /etc/rc.d/init.d/imapd. You can then use chkconfig to do all of the messy stuff with links and can use chkconfig to turn off/on the script at will... Example of chkconfig line: # chkconfig: 2345 55 25 # description: Cyrus IMAPD the chkconfig line is: runlevel(s) start-priority stop-priority So, adding the above would create links in /etc/rc.d/rc[0-6].d to start server in levels 2,3,4,5 and stop in levels 0,1,6. On Fri, 8 Mar 2002, Darin Perusich wrote: Date: Fri, 08 Mar 2002 13:52:18 + From: Darin Perusich [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? here's a script i use for starting/stopping/restart cyrus on my redhat server. copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d depending on you system, call the file cyrus or whatever makes you happy. chown root.root /etc/init.d/cyrus chmod u+x /etc/init.d/cyrus cd /etc/rc3.d ln -s ../init.d/cyrus S99cyrus ln -s ../init.d/cyrus K99cyrus you might need to modify some of the path names if you've installed cyrus outside of the default locations. if you where running this on a solaris 7 or 8 system you could use /usr/bin/pkill instead of /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d instead of rc3.d. enjoy --BEGIN COPY-- #!/bin/sh # # Start/Shut for cyrus master server process # case $1 in 'start') if [ -f /etc/cyrus.conf ] ; then echo Starting Cyrus Master Process /usr/cyrus/bin/master 1 /dev/console 21 fi ;; 'stop') echo Shutting down Cyrus Master Process /usr/bin/killall master 1/dev/console 21 ;; 'restart') echo Restarting Cyrus Master Process /usr/bin/killall -HUP master 1/dev/console 21 ;; *) echo Usage: $0 { start | restart | stop } ;; esac exit 0 --END COPY-- Jeff Bert wrote: I know this is a newbie question but with all I had to do to get cyrus installed my brain hurts... what's a good way to get cyrus started at boot? thanks, Jeff
Re: I need some more
Jean-Marc Delpech wrote: I have cyrus imap 2.0.11 server with cmu-sieve-1.3 on my RH7 (everything working very well) At the begining this server was created for 100 users and now we are 350 users. I have 3 partitions : /boot , / , and /var on a raid 5 bay All my users are in /var/spool/imap/user and I need some more space for them. What is the best way to have more space ? Many thks for yr answers. Assuming that you are not CPU bound, Add another RAID then create partitions in the /etc/imapd.conf that point to the new RAID. Tom -- Tom Karchesemail : [EMAIL PROTECTED] Web Systems Administrator phone : 919.515.5508 NCSU Information Technology
Re: lmtp or deliver from postfix
On 08 Mar 2002 10:22:40 +0100, Ivo Panacek [EMAIL PROTECTED] (ip) writes: ip My question is: would it help to use lmtp instead ? ip And in case it would: how to do that (from cyrus side)? ip Just uncomment #lmtp and comment out lmtpunix in cyrus.conf ? Search around in the Postfix distribution you have for LMTP_README. While that might be a little dated, it should still be pretty darn close. If you can't find a LMTP_README file, then you should really think about upgrading Postfix. -- Amos
Re: Cannot compile 2.1.2 with DB4.0.14
Hi. ;; I learned a little bit. If I did mistake or say about incorrect ;; thing, told so please. thanks. In [EMAIL PROTECTED] J. W. Andersen, ICCC [EMAIL PROTECTED] wrote: To make myself a fresh start, I decided to take off with all the latest stuff for my mailserver, so I downloaded DB.4.0.14, SASL.2.1.1, Postfix.1.1.4 and IMAPD.2.1.2. The first 3 installed with no problems. With IMAPD, configure and make depend runs OK. When I get to make all CFLAGS=-O, I ran into troubles when linking the imapd. The errors occus in libcyrus.a(cyrusdb_db3.o), where various functions (init, done, myopen etc) reports undefined reference to 'db__4000' where is version, env_create, strerror and create. (snip) if eval test \'echo '$ac_cv_lib_'. This function is autoconf's. but regret to say, that I am unable to figure out what it is doing - though I have been programming assembler and C for many years, my knowledge of Linux scripting language is very limited. If someone has the patience to explain that statement to me, maybe I could help out myself another time. LIBS= -ldb-4.0 ${LIBS} to force configure to take interest in DB4. It rsulted in almost the same problem at the same spot, althoug the suffix _4000 now no more occurred in the undefined referenced. Now, I read about sasl one. I have understood the configure script made by autoconf with the m4 macros. I found that try to find the db-4.0 routine in aclocal.m4 (- srcdir/config/sasldb.m4). ;; I write about sasl one as follow, but almost same cyrus-imapd I think. My case, the routine could not found the db-4.0 from $with_bdb_lib (--with-bdb-libdr) in AC_CHECK_LIB(). Now I know that this function is inside of autoconf. ;; I found the reference of functions in the document attached with ;; autoconf package. for dbname in db-4.0 db4.0 db-4 ... do AC_CHECK_LIB($dbname, db_create, SASLBDB_LIB=$BDB_LIBADD -l$dbname; dblib=berkeley; break, dblib=no) done This function check into the variable($dbname) library about could found the function(db_create), and following commands-list-if-found, commands-list-ifno-found. I wandered why this routine could not match my db-4.0 in /usr/local/BerkeleyDB.4.0/lib/libdb-4.0.a. I tryed to find db_create function in my libdb-4.0.a with emacs hexl-mode, then I found a few about db_create_4000 Then I edited aclocal.m4 at the db_create to db_create_4000 and save, rm configure, run autoconf for remake the configure script. I retry to configure cyrus-sasl-2.1.1; ./configure --with-dblib=berkeley \ --with-bdb-libdir=/usr/local/BerkeleyDB.4.0/lib ... then configure script (AC_CHECK_LIB) found db-4.0. ;; but there is other problem yet.. Thanks. -- Shinichiro HIDA mailto:[EMAIL PROTECTED] GPG fingerprint = 5F2D 1656 FFF6 F691 A51C 5E61 E416 D398 470C 1CE9
Re: adding users via script
Jeff Bert schrieb am Fri, Mar 08, 2002 at 08:02:44AM -0800: I'm trying to find a script that will allow me to add users via a single command line entry. I found imapcreate.pl at sourceforge but it seems to choke on every call to the Cyrus::IMAP libraries. Has anyone done something like this or modified this perl script to work? I had this tiny one for testing, maybe you find it useful (but is perl as well and uses Cyrus::IMAP, so if they are broken, you're lost) Regards, Birger #!/usr/bin/perl # creates new cyrus users with admin account of dummy (change this!) # usage: echo user | ./cyrus-adduser.pl #or: cat file with userlist | ./cyrus-adduser.pl use Cyrus::IMAP::Admin; use Getopt::Std; our($opt_h, $opt_p); $admin = dummy; $adminpass = dummypass; my $client = Cyrus::IMAP::Admin-new('localhost'); $client-authenticate(-mechanism, login, -user, $admin, -password, $adminpass); while () { chop; $client-create(user.$_); }
Re: adding users via script
here's something really simple i threw together, hope it helps. #!/usr/local/bin/perl -w # Really simple create mailbox script # by Steven Bloomfield - [EMAIL PROTECTED] # # This script only creates a new mailbox, I use MySQL for authentication # to execute from command line # perl /path/to/adduser.pl username # to execute within a PHP script # ?exec (perl /path/to/adduser.pl .$login);? # I used $login as a variable passed from a form # To see this script in action visit http://mail.manchester.com # Thanks to david eitzinger for help with authenticating pam-mysql database use Cyrus::IMAP::Admin; # hostname of IMAP server $server = localhost; # user and password for cyradm $user = cyrususername; $pass = cyruspassword; # Authenticate my $cyrus = Cyrus::IMAP::Admin-new($server); $cyrus-authenticate(-mechanism = 'login', -user = $user, -password = $pass); die $cyrus-error if $cyrus-error; $adduser = $ARGV[0]; $quota = 2000; my $mbox = 'user.' . $adduser; # Create the account print STDERR Creating $mbox on \n if $debug; $cyrus-createmailbox($mbox); warn $cyrus-error if $cyrus-error; # Set the quota if ($quota) { print STDERR Setting quota for $mbox to $quota\n if $debug; $cyrus-setquota($mbox, 'STORAGE', $quota); warn $cyrus-error if $cyrus-error; } - Original Message - From: Birger Toedtmann [EMAIL PROTECTED] To: Jeff Bert [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 4:30 PM Subject: Re: adding users via script Jeff Bert schrieb am Fri, Mar 08, 2002 at 08:02:44AM -0800: I'm trying to find a script that will allow me to add users via a single command line entry. I found imapcreate.pl at sourceforge but it seems to choke on every call to the Cyrus::IMAP libraries. Has anyone done something like this or modified this perl script to work? I had this tiny one for testing, maybe you find it useful (but is perl as well and uses Cyrus::IMAP, so if they are broken, you're lost) Regards, Birger
RE: adding users via script
Thanks all but it looks like the perl stuff is somewhat broken, cyradm works from the command line but everytime I run any of the scripts I've been sent I get this error: Use of uninitialized value in subroutine entry at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 78. One thing to note, when I compiled and installed cyrus-imapd-2.0.16 the perl modules Cyrus:IMAP ended up in /usr/local/lib/ but my perl is /usr/lib/perl5/... and cyradm didn't work until I copied the Cyrus folder with IMAP.pm etc. over to my perl install. so after I manually moved the modules then i could get cyradm to work. but the perl scripts trying to access the Cyrus::IMAP modules don't seem to. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Steven M Bloomfield Sent: Friday, March 08, 2002 8:49 AM To: Birger Toedtmann; Jeff Bert Cc: [EMAIL PROTECTED] Subject: Re: adding users via script here's something really simple i threw together, hope it helps. #!/usr/local/bin/perl -w # Really simple create mailbox script # by Steven Bloomfield - [EMAIL PROTECTED] # # This script only creates a new mailbox, I use MySQL for authentication # to execute from command line # perl /path/to/adduser.pl username # to execute within a PHP script # ?exec (perl /path/to/adduser.pl .$login);? # I used $login as a variable passed from a form # To see this script in action visit http://mail.manchester.com # Thanks to david eitzinger for help with authenticating pam-mysql database use Cyrus::IMAP::Admin; # hostname of IMAP server $server = localhost; # user and password for cyradm $user = cyrususername; $pass = cyruspassword; # Authenticate my $cyrus = Cyrus::IMAP::Admin-new($server); $cyrus-authenticate(-mechanism = 'login', -user = $user, -password = $pass); die $cyrus-error if $cyrus-error; $adduser = $ARGV[0]; $quota = 2000; my $mbox = 'user.' . $adduser; # Create the account print STDERR Creating $mbox on \n if $debug; $cyrus-createmailbox($mbox); warn $cyrus-error if $cyrus-error; # Set the quota if ($quota) { print STDERR Setting quota for $mbox to $quota\n if $debug; $cyrus-setquota($mbox, 'STORAGE', $quota); warn $cyrus-error if $cyrus-error; } - Original Message - From: Birger Toedtmann [EMAIL PROTECTED] To: Jeff Bert [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 4:30 PM Subject: Re: adding users via script Jeff Bert schrieb am Fri, Mar 08, 2002 at 08:02:44AM -0800: I'm trying to find a script that will allow me to add users via a single command line entry. I found imapcreate.pl at sourceforge but it seems to choke on every call to the Cyrus::IMAP libraries. Has anyone done something like this or modified this perl script to work? I had this tiny one for testing, maybe you find it useful (but is perl as well and uses Cyrus::IMAP, so if they are broken, you're lost) Regards, Birger
how do I configure cyrus 1.5.19-9 on Debian woody
to receive mail via lmtp? I have a postfix machine receiving mail that I would like to be sent to the cyrus box. What configuration is needed on the cyrus box to for it to work? Badiane
RE: starting cyrus at boot?
Thankyou kind sir. Works great! regards, Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Darin Perusich Sent: Friday, March 08, 2002 5:52 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: starting cyrus at boot? here's a script i use for starting/stopping/restart cyrus on my redhat server. copy and paste this into a file in /etc/init.d or /etc/rc.d/init.d depending on you system, call the file cyrus or whatever makes you happy. chown root.root /etc/init.d/cyrus chmod u+x /etc/init.d/cyrus cd /etc/rc3.d ln -s ../init.d/cyrus S99cyrus ln -s ../init.d/cyrus K99cyrus you might need to modify some of the path names if you've installed cyrus outside of the default locations. if you where running this on a solaris 7 or 8 system you could use /usr/bin/pkill instead of /usr/bin/killall and you'd want to place the rc script in /etc/rc2.d instead of rc3.d. enjoy --BEGIN COPY-- #!/bin/sh # # Start/Shut for cyrus master server process # case $1 in 'start') if [ -f /etc/cyrus.conf ] ; then echo Starting Cyrus Master Process /usr/cyrus/bin/master 1 /dev/console 21 fi ;; 'stop') echo Shutting down Cyrus Master Process /usr/bin/killall master 1/dev/console 21 ;; 'restart') echo Restarting Cyrus Master Process /usr/bin/killall -HUP master 1/dev/console 21 ;; *) echo Usage: $0 { start | restart | stop } ;; esac exit 0 --END COPY-- Jeff Bert wrote: I know this is a newbie question but with all I had to do to get cyrus installed my brain hurts... what's a good way to get cyrus started at boot? thanks, Jeff -- Darin Perusich Unix Systems Administrator Cognigen Corp. [EMAIL PROTECTED]
Cyrus IMSP / ACAP
what does these do and are either req'd for cyrus-imapd-2.0.16 ? Jeff