Re: Random deadlocks with cyrus-imapd-2.1.14
Hi, --On 21. September 2005 17:58:58 -0500 Gary Mills <[EMAIL PROTECTED]> wrote: We are running cyrus-imapd-2.1.14, using db-3.1.17 for the deliver.db and tls_sessions.db. Lately, we've been getting deadlocks that stall mail delivery. When they happen, all of the lmtpd processes are blocked waiting to acquire a lock. If I try to run the db_stat utility, it also blocks. These deadlocks happen quite randomly, sometimes months apart, but sometimes only days. The server is a 4-CPU Sun 480 running Solaris 9. I haven't seen reports of anyone else having this problem. we used to have that or a similar problem, but the upgrade to 2.2.x solved it. This was under Red Hat, but IIRC the bug wasn't platform-dependent. Cheers, Sebastian Hagedorn -- Sebastian Hagedorn - RZKR-R1 (Gebäude 52), Zimmer 18 Zentrum für angewandte Informatik - Universitätsweiter Service RRZK Universität zu Köln / Cologne University - Tel. +49-221-478-5587 Skype: shagedorn pgpEkXrn6JbuC.pgp Description: PGP signature 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: frequent mupdate master mailboxes.db corruption, anyone else?
Sergio Devojno Bruder wrote: Henrique de Moraes Holschuh wrote: On Thu, 15 Sep 2005, Sergio Devojno Bruder wrote: I'm fighting with frequent corruptions of my mupdate master server (high volume, currently 3.9M mailboxes) with Cyrus 2.2.10. First things first: Triple check your system RAM. AHA: Sep 21 09:08:49 mupdate mupdate[17026]: IOERROR: mapping /var/lib/imap/mailboxes.db file: Cannot allocate memory Sep 21 09:08:49 mupdate mupdate[17026]: failed to mmap /var/lib/imap/mailboxes.db file Sep 21 09:08:49 mupdate master[5866]: process 17026 exited, status 75 Sep 21 09:08:49 mupdate master[5866]: service mupdate pid 17026 in READY state: terminated abnormally I remember Joao Assad had the same problem, no? -- Sergio Devojno Bruder 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 Sorry , I missed the original post. Is the original poster using Fedora or RHEL ? Regards -- - João Assad - ParPerfeito Comunicação LTDA - http://www.parperfeito.com.br/ 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: Random deadlocks with cyrus-imapd-2.1.14
On Thu, Sep 22, 2005 at 11:24:19AM +0300, Konstantinos Koukopoulos wrote: > On Thu 22 Sep 2005 01:58, Gary Mills wrote: > > We are running cyrus-imapd-2.1.14, using db-3.1.17 for the > > deliver.db and tls_sessions.db. Lately, we've been getting > > deadlocks that stall mail delivery. When they happen, all of > > the lmtpd processes are blocked waiting to acquire a lock. > > If I try to run the db_stat utility, it also blocks. These > > deadlocks happen quite randomly, sometimes months apart, but > > sometimes only days. The server is a 4-CPU Sun 480 running > > Solaris 9. I haven't seen reports of anyone else having this > > problem. > > Perhaps the cause is bug #1270: > https://bugzilla.andrew.cmu.edu/show_bug.cgi?id=1270 Thanks. I'll have a look at that bug report. > In that case it was resolved in the 2.2 branch although the fix might not be > in the version you're using. I've backported the fix to the 2.1.18 cyrus > source; maybe it will be of use to you: > http://email.uoa.gr/download/cyrus/cyrus-imapd-2.1.18/cyrus-imapd-2.1.18.quotalock.diff Thanks. I had planned to upgrade, but I wasn't sure if the upgrade would fix the problem. Now I know what to do. -- -Gary Mills--Unix Support--U of M Academic Computing and Networking- 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: plus addressing
On Wed, 2005-09-21 at 18:54 -0700, Huaqing Zheng wrote: > On 9/21/05, Zachariah Mully <[EMAIL PROTECTED]> wrote: > > Hello all- > > I'm in the process of moving from a qmail/uw-imap installation to a > > postfix/Cyrus-2.2 and I've one last problem to solve before I can start > > moving people onto the new system. > > We make heavy use of qmail's extension addressing, which uses a > > dash as > > the default delimiter. In Postfix this is configurable, but I've not > > been able to find any place in the Cyrus config files where I can change > > this from "+" to "-". Is this even possible? If it's not, has anybody > > come up a good workaround that they can suggest? > > This is not really a Cyrus issue but a MTA issue. Most MTAs use + as > the mailbox delimiter and simply send mail to the part before the + > sign. The part after the plus sign is used by the mail delivery > agent. One thing you can try is to use postfix regex rewrite maps to > rewrite the - into a +. > Thank Hauqing... That's kinda what I figured I was going to have to do. I added recipient_canonical_maps = pcre:/etc/postfix/dashrewrite to main.cf and then added the following rule to the table: /(.*)-(.*)(@.*)/$(1)+$(2)$(3) Thanks for the help, Zack 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
(no subject)
Hello, I'm trying to configure Cyrus imap v 2.2.12 with SSL. It works ok when using a self signed certificate that is in pem format. But, when I configure it to use the certificate we purchased from Comodo, I have problems. I am testing the key using the command "openssl s_client -connect foobar:993", and I get an "unknown protocol" error. I ran the openssl command in debug mode, and at the same time ran tcpflow on the imap server. The tcpflow has a message "enter PEM passphrase". When I created the private key and csr I had to enter a passphrase because it wouldn't let me keep it null. Could this be part of the problem? How do I fix it? Any help would be greatly appreciated as I'm new to imap and ssl. Below is some output that may be helpful: This is the command I'm using to test the certificate and the error that I get: [EMAIL PROTECTED] certs]# openssl s_client -connect foobar:993 CONNECTED(0003) 24518:error:140770FC:SSL routines:SSL23 _GET_SERVER_HELLO:unknown protocol:s23_cl nt.c:475: This is output of the openssl command in debug mode, and the tcpflow: [EMAIL PROTECTED] certs]# openssl s_client -debug -connect foobar:993 CONNECTED(0003) write to 0907B310 [0907B358] (142 bytes => 142 (0x8E)) - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ..c... ..9.. 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.f. 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .c.. 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...@ 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`... 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 c8 ee 0070 - 81 dc 07 4f 07 79 10 0f-a3 a0 5a 84 ca 3b b0 05 ...O.yZ..;.. 0080 - 22 fc c8 b6 75 ee 2b 9a-1c 79 46 51 13 4e "...u.+..yFQ.N read from 0907B310 [090808B8] (7 bytes => 7 (0x7)) - 45 6e 74 65 72 20 50 Enter P 25977:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475: [EMAIL PROTECTED] etc]# tcpflow -i eth0 -c tcp and port 993 tcpflow[5999]: listening on eth0 123.45.67.89.35902-123.45.67.90.00993: ..c... ..9..8..5 .3..2../[EMAIL PROTECTED] 123.45.67.90.00993-123.45.67.89.35902: Enter PEM pass phrase: My /etc/imapd.conf file contains these lines: tls_cert_file: /usr/share/ssl/certs/imap-server.crt tls_key_file: /usr/share/ssl/certs/imap-server.key tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt Thanks! Nicole 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
Problems installing ssl certificate for cyrus imap
Hello, I'm trying to configure Cyrus imap v 2.2.12 with SSL. It works ok when using a self signed certificate that is in pem format. But, when I configure it to use the certificate we purchased from Comodo, I have problems. I am testing the key using the command "openssl s_client -connect foobar:993", and I get an "unknown protocol" error. I ran the openssl command in debug mode, and at the same time ran tcpflow on the imap server. The tcpflow has a message "enter PEM passphrase". When I created the private key and csr I had to enter a passphrase because it wouldn't let me keep it null. Could this be part of the problem? How do I fix it? Any help would be greatly appreciated as I'm new to imap and ssl. Below is some output that may be helpful: This is the command I'm using to test the certificate and the error that I get: [EMAIL PROTECTED] certs]# openssl s_client -connect foobar:993 CONNECTED(0003) 24518:error:140770FC:SSL routines:SSL23 _GET_SERVER_HELLO:unknown protocol:s23_cl nt.c:475: This is output of the openssl command in debug mode, and the tcpflow: [EMAIL PROTECTED] certs]# openssl s_client -debug -connect foobar:993 CONNECTED(0003) write to 0907B310 [0907B358] (142 bytes => 142 (0x8E)) - 80 8c 01 03 01 00 63 00-00 00 20 00 00 39 00 00 ..c... ..9.. 0010 - 38 00 00 35 00 00 16 00-00 13 00 00 0a 07 00 c0 8..5 0020 - 00 00 33 00 00 32 00 00-2f 03 00 80 00 00 66 00 ..3..2../.f. 0030 - 00 05 00 00 04 01 00 80-08 00 80 00 00 63 00 00 .c.. 0040 - 62 00 00 61 00 00 15 00-00 12 00 00 09 06 00 40 b..a...@ 0050 - 00 00 65 00 00 64 00 00-60 00 00 14 00 00 11 00 ..e..d..`... 0060 - 00 08 00 00 06 04 00 80-00 00 03 02 00 80 c8 ee 0070 - 81 dc 07 4f 07 79 10 0f-a3 a0 5a 84 ca 3b b0 05 ...O.yZ..;.. 0080 - 22 fc c8 b6 75 ee 2b 9a-1c 79 46 51 13 4e "...u.+..yFQ.N read from 0907B310 [090808B8] (7 bytes => 7 (0x7)) - 45 6e 74 65 72 20 50 Enter P 25977:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475: [EMAIL PROTECTED] etc]# tcpflow -i eth0 -c tcp and port 993 tcpflow[5999]: listening on eth0 123.45.67.89.35902-123.45.67.90.00993: ..c... ..9..8..5 .3..2../[EMAIL PROTECTED] 123.45.67.90.00993-123.45.67.89.35902: Enter PEM pass phrase: My /etc/imapd.conf file contains these lines: tls_cert_file: /usr/share/ssl/certs/imap-server.crt tls_key_file: /usr/share/ssl/certs/imap-server.key tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt Thanks! Nicole 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: checking quota
At Wed, 21 Sep 2005 12:53:46 +0200, Patrice wrote: > > I think I haven't explained it well :-) > > I want to check quota for incoming mails and reject emails if quota is over. > > I already use this script for sending 'quota exceeded' to my users > What I do is run a script (attached) from cron at least every 30 minutes that creates an "alias" file which uses a special "error" address which causes my mailer to reject the recipient, with the given error message, at SMTP time. This technique works with Smail (which I use), and probably with minor adaptation with Exim, and maybe Postfix as well; though of course the specific format of the alias file will no doubt differ for those other mailers. As others have said already you could also use LMTP, but that would mean opening an LMTP connection (or re-using a cached connection) for every incoming SMTP transaction (which specified any locally deliverable recipient) so that the recipient could be verified. -- Greg A. Woods H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack <[EMAIL PROTECTED]> Planix, Inc. <[EMAIL PROTECTED]> Secrets of the Weird <[EMAIL PROTECTED]> mkcyrusoqlist Description: Binary data pgpzfSljpUi4S.pgp Description: PGP signature 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