Re: Postfix + Cyrus + Catchall Addreses
Ow Mun Heng wrote: On Mon, 2004-12-27 at 02:44, Chris Scott wrote: Ow Mun Heng wrote: Hi All, I'm trying to figure out how to implement a catchall address for my dyndns domain. I've set up postfix and cyrus properly (I think) and it's working fine for valid users. In my main.cf virtual_mailbox_domains = virtual.domain1.com, virtual.domain2.com virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp virtual_mailbox_maps = has:/etc/postfix/virtual This should be: virtual_mailbox_maps = hash:/etc/postfix/virtual Missed the h at the end of hash. Not sure if that is what your main.cf has or it was a typo when posting this message. It's a typo.. So.. Anyone... any clues?? What's in the Postfix and Cyrus logs when the catchall doesn't work? What do you get if you use postmap with the -q switch to query your virtual mailbox map for a non-existent address? -- Chris Scott Adaptive Hosting Solutions, Inc. (formerly Host Orlando, Inc) http://www.adaptivehostingsolutions.com/ --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Postfix + Cyrus + Catchall Addreses
Ow Mun Heng wrote: Hi All, I'm trying to figure out how to implement a catchall address for my dyndns domain. I've set up postfix and cyrus properly (I think) and it's working fine for valid users. In my main.cf virtual_mailbox_domains = virtual.domain1.com, virtual.domain2.com virtual_transport = lmtp:unix:/var/lib/imap/socket/lmtp virtual_mailbox_maps = has:/etc/postfix/virtual This should be: virtual_mailbox_maps = hash:/etc/postfix/virtual Missed the h at the end of hash. Not sure if that is what your main.cf has or it was a typo when posting this message. -- Chris Scott Adaptive Hosting Solutions, Inc. http://www.adaptivehostingsolutions.com/ --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
2.1.17 install-upgrade.html Doc Error?
In the upgrade instructions, it notes: Upgrading from 2.1.12 or earlier * timsieved was corrected to behave properly in the altnamespace configuration. However, this means that it was previously looking for sieve scripts in "user.name" format instead of the (correct) "user^name" format. A sample script to do this (which should be run in the top level of the sieve directory) is in tools/convert-sieve.pl. Note that this is only needed if you are running with altnamespace turned on. After my upgrade from 2.1.12 to 2.1.17 my sieve scripts stopped working. All my scripts were in the user.name format. My imapd.conf doesn't define altnamespace so according to the man page for it, the default value should be 'no'. When I used INGO to modify an existing sieve script, it wrote it in the correct user^name format so timsieved was using the correct format. Running the tools/convert-sieve.pl script in my top level sieve directory has fixed the problem and now sieve scripts are working. It looks like the convert-sieve.pl script needs to be run regardless of the altnamespace setting. -- Chris Scott Adaptive Hosting Solutions, Inc. (formerly Host Orlando, Inc) http://www.adaptivehostingsolutions.com/ --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Error compiling 2.1.17
Replying to my own post and top posting at that: The fix was to edit cyrusdb_db3.c and change line 46 to: #include Now that I think about it, this was a problem when I compiled 2.1.12 also but the error didn't jog my memory. -- Chris Scott Adaptive Hosting Solutions, Inc. (formerly Host Orlando, Inc) http://www.adaptivehostingsolutions.com/ Chris Scott wrote: I'm trying to upgrade from 2.1.12 to 2.1.17. I'm running the following configure command: ./configure \ --with-sasl=/usr/local \ --with-perl \ --with-auth=unix \ --with-openssl=/usr/local/ssl \ --with-duplicate-db=db3_nosync \ --with-mboxlist-db=skiplist \ --with-seen-db=skiplist \ --with-subs-db=flat \ --with-tls-db=db3_nosync When I run make, I get the following error ---BEGIN ERROR--- ### Making all in /usr/src/112804/cyrus-imapd-2.1.17/lib gcc -c -I.. -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 cyrusdb_db3.c cyrusdb_db3.c:88: syntax error before `*' cyrusdb_db3.c:88: warning: type defaults to `int' in declaration of `dbenv' cyrusdb_db3.c:88: warning: data definition has no type or storage class cyrusdb_db3.c:94: syntax error before `*' cyrusdb_db3.c:99: syntax error before `75' cyrusdb_db3.c:99: warning: type defaults to `int' in declaration of `exit' cyrusdb_db3.c:99: conflicting types for `exit' /usr/include/stdlib.h:96: previous declaration of `exit' cyrusdb_db3.c:99: warning: data definition has no type or storage class cyrusdb_db3.c:87: warning: `dbinit' defined but not used cyrusdb_db3.c:91: warning: `commit_txn' declared `static' but never defined cyrusdb_db3.c:92: warning: `abort_txn' declared `static' but never defined *** Error code 1 Stop in /usr/src/112804/cyrus-imapd-2.1.17/lib. *** Error code 1 Stop in /usr/src/112804/cyrus-imapd-2.1.17. ---END ERROR--- This is on FreeBSD 4.7 with gcc version 2.95.4. I saw a post to the list with the same problem on 2.1.16 on FBSD 4.9 but no resolution: http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=26588 Any ideas on where to start troubleshooting this? Thanks. --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Error compiling 2.1.17
I'm trying to upgrade from 2.1.12 to 2.1.17. I'm running the following configure command: ./configure \ --with-sasl=/usr/local \ --with-perl \ --with-auth=unix \ --with-openssl=/usr/local/ssl \ --with-duplicate-db=db3_nosync \ --with-mboxlist-db=skiplist \ --with-seen-db=skiplist \ --with-subs-db=flat \ --with-tls-db=db3_nosync When I run make, I get the following error ---BEGIN ERROR--- ### Making all in /usr/src/112804/cyrus-imapd-2.1.17/lib gcc -c -I.. -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 cyrusdb_db3.c cyrusdb_db3.c:88: syntax error before `*' cyrusdb_db3.c:88: warning: type defaults to `int' in declaration of `dbenv' cyrusdb_db3.c:88: warning: data definition has no type or storage class cyrusdb_db3.c:94: syntax error before `*' cyrusdb_db3.c:99: syntax error before `75' cyrusdb_db3.c:99: warning: type defaults to `int' in declaration of `exit' cyrusdb_db3.c:99: conflicting types for `exit' /usr/include/stdlib.h:96: previous declaration of `exit' cyrusdb_db3.c:99: warning: data definition has no type or storage class cyrusdb_db3.c:87: warning: `dbinit' defined but not used cyrusdb_db3.c:91: warning: `commit_txn' declared `static' but never defined cyrusdb_db3.c:92: warning: `abort_txn' declared `static' but never defined *** Error code 1 Stop in /usr/src/112804/cyrus-imapd-2.1.17/lib. *** Error code 1 Stop in /usr/src/112804/cyrus-imapd-2.1.17. ---END ERROR--- This is on FreeBSD 4.7 with gcc version 2.95.4. I saw a post to the list with the same problem on 2.1.16 on FBSD 4.9 but no resolution: http://asg.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrus&msg=26588 Any ideas on where to start troubleshooting this? Thanks. -- Chris Scott Adaptive Hosting Solutions, Inc. http://www.adaptivehostingsolutions.com/ --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: administering cyrus-imapd with VB
Didit DR wrote: anybody has vb code to administer user in cyrus-imapd or link to site that provide information for that. I have some C# code but no VB. Basically, all it does is open a connection to the cyrus server on the IMAP port and issue the commands needed for administration. See the cyradm source for what commands you need to send to accomplish the various admin tasks. This could easily be done in VB or another language. -- Chris Scott Adaptive Hosting Solutions, Inc. (formerly Host Orlando, Inc) http://www.adaptivehostingsolutions.com/ --- Cyrus Home Page: http://asg.web.cmu.edu/cyrus Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: CYRUS = GARBAGE
David Grant wrote: You must use cyradm to add and drop user and their mailboxes? There is no other way around this, and there is no way to get a database to do this work for me? Use a database for your users backend. Use IMAP to create the accounts. Since you can use anything that will do telnet to accomplish this, you aren't limited. Take a look at the free, open source cyradm source code to find out what commands you need to send to the server. I'm sick of this Garbage. I never should have wasted my time with Garbage from CMU! I always loved murder for the name of the aggregator but I don't think Garbage would be a good choice for an IMAP server. However, you could say it does everything but take out the trash. David Grant - Genuinely impatient Chris Scott - Trying to help regardless of your tone
Re: Cyrus LMTPD
sandra wrote: Hello ALL, I have cyrus-imap-2.1.12, cyrus-sasl-2.1.12, postfix-2.0.6 installed in here. (pentium , 2GB memory) And we are receiving mail messages from a mail server via lmtpd, and storing in cyrus-mailboxes. The problem is that after a lot of messages like the following one, the system is in out of memory and we have to kill all the process (imap, saslauthd), after lmtpd reaches about 800 lockers. May 27 09:56:38 athena lmtpd[8649]: DBERROR db4: 639 lockers May 27 09:56:38 athena lmtpd[8498]: DBERROR db4: 639 lockers May 27 09:56:38 athena lmtpd[8662]: DBERROR db4: 638 lockers And we have looked the internet for clues, but nothing has solved our problem. We have tried to install the last version of db ( db-4.1.25), but it has not worked for us. Please, Iwe need help. What could we do? Is there any patch for lmtpd, or any parameter to set up? Not sure if this will help you but I was having problems with saslauthd eating up all my memory and swap over time (usually a week). Running saslauthd with the following switch fixed that problem: -n 0 hth, Chris Scott
Re: Cyrus IMAPd 2.1.12 Released
Ilya wrote: you need to change the to #include in cyrusdb_db3.c Thank you very much--worked perfectly. Thanks, Chris Scott
Re: Cyrus IMAPd 2.1.12 Released
Has anyone compiled this successfully on FreeBSD 4.7? I'm getting the following errors: gcc -c -I.. -I/usr/local/include -I/usr/local/ssl/include -I/usr/local/include -DHAVE_CONFIG_H -I. -I. -Wall -g -O2 cyrusdb_db3.c cyrusdb_db3.c:87: syntax error before `*' cyrusdb_db3.c:87: warning: type defaults to `int' in declaration of `dbenv' cyrusdb_db3.c:87: warning: data definition has no type or storage class cyrusdb_db3.c:93: syntax error before `*' cyrusdb_db3.c:98: syntax error before `75' cyrusdb_db3.c:98: warning: type defaults to `int' in declaration of `exit' cyrusdb_db3.c:98: conflicting types for `exit' /usr/include/stdlib.h:96: previous declaration of `exit' cyrusdb_db3.c:98: warning: data definition has no type or storage class cyrusdb_db3.c:86: warning: `dbinit' defined but not used cyrusdb_db3.c:90: warning: `commit_txn' declared `static' but never defined cyrusdb_db3.c:91: warning: `abort_txn' declared `static' but never defined *** Error code 1 cyrusdb_db3.c is the same as it was in 2.1.11 which compiles OK. configure was run with the following: ./configure --with-sasl=/usr/local --with-perl --with-auth=unix --with-openss l=/usr/local/ssl --with-duplicate-db=db3_nosync --with-mboxlist-db=skiplist --wi th-seen-db=skiplist --with-subs-db=flat --with-tls-db=db3_nosync These are the same options that 2.1.11 compiles with fine. Using gcc version 2.95.4 20020320 [FreeBSD] on FreeBSD 2.7-RELEASE. Thanks, Chris Scott
Re: Strange sieve problem....
Rob Siemborski wrote: This is fixed in CVS, so if you wait a day or so, 2.1.12 will be out and you can use that (or you can just use CVS). -Rob Darn, and I just finished a patch ;-) Good to hear about 2.1.12. I'll patch locally and then upgrade when it is out. Thanks for the good software! Chris Scott
Re: Strange sieve problem....
Chris Scott wrote: Does anyone have suggestions for what to look at next? Sorry for replying to myself but I have more info. on this. The server I have where sieve is working is version is v1.1.0 (compiled from imap 2.1.5) and the latest where it is not working is v2.1.11. The following change was made in timesieved/parser.c to the cmd_authenticate command: 602a636 > int r; 608c642,648 < mboxlist_detail(inboxname, &type, &server, NULL, NULL, NULL); --- > r = mboxlist_detail(inboxname, &type, &server, NULL, NULL, NULL); > > if(r) { > /* mboxlist_detail error */ > *errmsg = "mailbox unknown"; > return FALSE; > } In my case, r is IMAP_MAILBOX_NONEXISTENT. It looks like the problem is that mboxlist_detail expects an internal mailbox name but it is being passed an external mailbox name. The fix looks to be using mboxname_hiersep_tointernal() on the inboxname before passing it so mboxlist_detail. Can someone familiar w/the code confirm this? Thanks, Chris Scott
Re: Strange sieve problem....
Chris Scott wrote: Bryntez wrote: >Hi list.. >I have trouble connecting to sieve. Everything else works fine. >I'm using RedHat 7.3. I've tried Simons rpms also, but the same error >occures. I'm using Cyrus Sasl 2.1.11 and Cyrus Imap 2.1.11. >The system is a "web-cyradm" based config with MySQL and Postfix. > > Yep, that's the same thing I'm seeing. Sorry I don't have more info. Same basic config as you. Just thought it may help to confirm the problem. Chris Scott A little more info. I started saslauthd with -d and from the logs it looks like the user is authenticating OK: Feb 1 18:33:17 mgw1 saslauthd[75873]: authenticating chris.playingforbeer.com Feb 1 18:33:17 mgw1 saslauthd[75873]: OK: user=chris.playingforbeer.com service=sieve realm= Also started master with -D and see: Feb 1 18:40:07 mgw1 master[75930]: about to exec /usr/cyrus/bin/timsieved Feb 1 18:40:07 mgw1 sieve[75930]: executed Feb 1 18:40:07 mgw1 sieve[75930]: telling master 2 Feb 1 18:40:07 mgw1 master[75916]: service sieve now has 0 workers Feb 1 18:40:07 mgw1 sieve[75930]: accepted connection Feb 1 18:40:07 mgw1 sieve[75930]: telling master 3 Feb 1 18:40:07 mgw1 master[75916]: service sieve now has 0 workers Feb 1 18:40:07 mgw1 master[75916]: process 75930 exited, status 0 Does anyone have suggestions for what to look at next? Thanks, Chris Scott
Re: Strange sieve problem....
Bryntez wrote: >Hi list.. >I have trouble connecting to sieve. Everything else works fine. >I'm using RedHat 7.3. I've tried Simons rpms also, but the same error >occures. I'm using Cyrus Sasl 2.1.11 and Cyrus Imap 2.1.11. >The system is a "web-cyradm" based config with MySQL and Postfix. > I'm using FreeBSD with cyrus compiled from source but I'm having the same problem. This is a new installation and IMAP and POP are working fine. > > >When trying to use sivtest with plain, this happens: >sivtest -u cyrus -a cyrus -m plain -p 2000 localhost >S: "IMPLEMENTATION" "Cyrus timsieved v2.1.11" >S: "SASL" "LOGIN PLAIN" >S: "SIEVE" "fileinto reject envelope vacation imapflags notify subaddress >relational regex" >S: OK >Please enter your password: >C: AUTHENTICATE "PLAIN" {32+} >Y3lydXMAY3lydXMAY3lydXNfcGFzc3dk >S: NO "Authentication Error" >Authentication failed. generic failure >Security strength factor: 0 > >The logs come up with: >Feb 1 15:21:57 gollum master[23388]: about to exec /usr/cyrus/bin/timsieved >Feb 1 15:21:57 gollum sieve[23388]: executed >Feb 1 15:21:57 gollum sieve[23388]: accepted connection >Feb 1 15:22:25 gollum master[23364]: process 23388 exited, status 0 > Yep, that's the same thing I'm seeing. Sorry I don't have more info. Same basic config as you. Just thought it may help to confirm the problem. Chris Scott
Which DB backend to use
I've seen the advice of many on the list of using skiplist format for mboxlist but does anyone have recommendations for duplicate, seen, subs, and tls? Is there a standard answer or is this one of those 'depends on what you are doing' questions? Thanks, Chris Scott
Re: Cyrus and Postfix
Christoph Burger-Scheidlin wrote: >What is local_transport set to in your main.cf? > Local transport is not set, I thought mailbox_transport should do: mailbox_transport = lmtp:unix:public/lmtp From your last message with your cyrus.conf, this should likely be: mailbox_transport=lmtp:unix:/var/spool/postfix/public/lmtp Chris
Re: Cyrus and Postfix
Christoph Burger-Scheidlin wrote: Hi, I have the following error in Cyrus-Postfix, that I do not know how to fix: Dec 5 23:03:25 Hades postfix/lmtp[16388]: 04316100F: to=, relay=public/lmtp[public/lmtp], delay=21490, status=deferred (host public/lmtp[public/lmtp] said: 451 4.3.0 System I/O error) Dec 5 23:03:25 Hades postfix/lmtp[16387]: AFB60100E: to=, relay=public/lmtp[public/lmtp], delay=21840, status=deferred (host public/lmtp[public/lmtp] said: 451 4.3.0 System I/O error) Cyrus and Postfix are communicating with an lmtp pipe. Any ideas? Thanks in advance. What is local_transport set to in your main.cf? Chris
Re: Cyrus Imap - Postfix - lmtp or pipe ? And why ? And How ?
Bryntez wrote: Thanks for the advisory. I was trying to change from "pipe" to "lmtp" earlier today but I was getting "permission denied" in the maillog. So my next question is: What permissions has to be set to get this to work ? /etc/postfix/main.cf mailbox_transport = lmtp:unix:/home/mailusers/imap/socket/lmtp the lmtp socket itself, has "root.root" permissions. imap belongs to "cyrus.mail" postfix belongs to "postfix.postdrop" postfix owner = postfix The cyrus and postfix users need access to /var/imap/socket/lmtp. You could create a group and add both those users to it and do a chgrp on the socket to that group and it should work. Hope this helps, Chris Scott