which process is moving mails when using a mua
Hello, i couldn´t find out which process is moving mails when using a mua ? Using cyrus/master -D and exporting CYRUS_VERBOSE=3 didn´t give me a hint. regrads, peter Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus replication question
Like this: sync_client -l -v -u userA userB userC ... Most Unix commands function this way. :wes On 12 Dec 2006, at 21:56, [EMAIL PROTECTED] wrote: do thay have to be separated (user names i mean) by space or coma or something else ?? Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
shared mailboxes - all so present on the web - no light yet
Hello, I just created a shared mailbox where users can subscribe and post to by addressing [EMAIL PROTECTED] mail gets delivered correctly. But I'm trying to achieve that [EMAIL PROTECTED] gets delivered to this shared mailbox. I just googled a few hours but couldn't find any pointers on how to do that. It also seems that sieve isn't an option since from what I found on the web shared mailboxes and sieve work together from >=cyrus-2.3 Any pointers on how to do that would be helpfull. I attached to log sessions, one where I successfully post to [EMAIL PROTECTED] and one where I post (unsuccessfully) to user [EMAIL PROTECTED] (the message is delivered to the users inbox). \martin Log excerpts (mailto:[EMAIL PROTECTED]): Dec 13 04:14:34 localhost postfix/smtpd[10519]: C1B56152F8A9: client=demo.example.com[192.168.0.1], sasl_method=PLAIN, [EMAIL PROTECTED] Dec 13 04:14:34 localhost postfix/cleanup[10581]: C1B56152F8A9: message-id=<[EMAIL PROTECTED]> Dec 13 04:14:34 localhost postfix/qmgr[8829]: C1B56152F8A9: from=<[EMAIL PROTECTED]>, size=601, nrcpt=1 (queue active) Dec 13 04:14:34 localhost cyrus/imap[10572]: open: user [EMAIL PROTECTED] opened INBOX/Sent Dec 13 04:14:35 localhost postfix/smtpd[10589]: connect from localhost.openforce.lan[127.0.0.1] Dec 13 04:14:36 localhost postfix/smtpd[10589]: 0660B152F8AD: client=localhost.openforce.lan[127.0.0.1] Dec 13 04:14:36 localhost postfix/cleanup[10581]: 0660B152F8AD: message-id=<[EMAIL PROTECTED]> Dec 13 04:14:36 localhost postfix/qmgr[8829]: 0660B152F8AD: from=<[EMAIL PROTECTED]>, size=988, nrcpt=1 (queue active) Dec 13 04:14:36 localhost cyrus/master[10592]: about to exec /usr/lib/ cyrus/bin/lmtpd Dec 13 04:14:36 localhost cyrus/lmtp[9685]: accepted connection Dec 13 04:14:36 localhost cyrus/lmtp[9685]: connection from localhost.openforce.lan [127.0.0.1] preauth'd as postman Dec 13 04:14:36 localhost cyrus/lmtp[10592]: executed Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_check: <[EMAIL PROTECTED]> example.com!shared 0 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_check: <[EMAIL PROTECTED]> example.com!shared 0 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: mystore: starting txn 2147483758 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: mystore: committing txn 2147483758 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_mark: <[EMAIL PROTECTED]> example.com! shared 1165979676 140737486810112 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: Delivered: <[EMAIL PROTECTED]> to mailbox: example.com!shared Dec 13 04:14:36 localhost postfix/lmtp[10591]: 0660B152F8AD: to=< [EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:24, delay=0.16, delays=0.12/0.01/0.02/0, dsn=2.1.5, status=sent (250 2.1.5 Ok) Dec 13 04:14:36 localhost postfix/qmgr[8829]: 0660B152F8AD: removed Dec 13 04:14:36 localhost postfix/smtpd[10589]: disconnect from localhost.example.com[127.0.0.1] Dec 13 04:14:36 localhost postfix/lmtp[10582]: C1B56152F8A9: to=< [EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=127.0.0.1 [127.0.0.1]:10024, delay=1.4, delays=0.05/0/0.04/1.3, dsn=2.6.0, status=sent (250 2.6.0 <[EMAIL PROTECTED]> Message accepted for delivery) Dec 13 04:14:36 localhost postfix/qmgr[8829]: C1B56152F8A9: removed Log excerpts (mailto:[EMAIL PROTECTED]): Dec 13 04:21:38 localhost postfix/smtpd[10630]: connect from demo.example.com[192.168.0.1] Dec 13 04:21:38 localhost postfix/smtpd[10630]: 6C35F152F8A9: client=demo.example.com[192.168.0.1], sasl_method=PLAIN, [EMAIL PROTECTED] Dec 13 04:21:38 localhost postfix/cleanup[10646]: 6C35F152F8A9: resent-message-id=<[EMAIL PROTECTED]> Dec 13 04:21:38 localhost postfix/cleanup[10646]: 6C35F152F8A9: message-id=<[EMAIL PROTECTED]> Dec 13 04:21:38 localhost postfix/qmgr[8829]: 6C35F152F8A9: from=<[EMAIL PROTECTED]>, size=858, nrcpt=1 (queue active) Dec 13 04:21:38 localhost cyrus/imap[10605]: open: user [EMAIL PROTECTED] opened INBOX/Sent Dec 13 04:21:39 localhost postfix/smtpd[10649]: connect from localhost.example.com[127.0.0.1] Dec 13 04:21:39 localhost postfix/smtpd[10649]: 23A93152F8AD: client=localhost.example.com[127.0.0.1] Dec 13 04:21:39 localhost postfix/cleanup[10646]: 23A93152F8AD: resent-message-id=<[EMAIL PROTECTED]> Dec 13 04:21:39 localhost postfix/cleanup[10646]: 23A93152F8AD: message-id=<[EMAIL PROTECTED]> Dec 13 04:21:39 localhost postfix/qmgr[8829]: 23A93152F8AD: from=<[EMAIL PROTECTED]>, size=1259, nrcpt=1 (queue active) Dec 13 04:21:39 localhost cyrus/lmtp[10600]: accepted connection Dec 13 04:21:39 localhost cyrus/lmtp[10600]: connection from localhost.example.com [127.0.0.1] preauth'd as postman Dec 13 04:21:39 localhost cyrus/master[10652]: about to exec /usr/lib/ cyrus/bin/lmtpd Dec 13 04:21:39 localhost cyrus/lmtp[10652]: executed Dec 13 04:21:39 localhost cyrus/lmtp[10600]: duplicate_check: <[EMAIL PROTECTED]> example.com! user.user.shared 0 Dec 13 04:21:39 localhost cyrus/lmtp[10600]: duplicate_check: <[
shared mailboxes - all so present on the web - no light yet
Hello, I just created a shared mailbox where users can subscribe and post to by addressing [EMAIL PROTECTED] mail gets delivered correctly. But I'm trying to achieve that [EMAIL PROTECTED] gets delivered to this shared mailbox. I just googled a few hours but couldn't find any pointers on how to do that. It also seems that sieve isn't an option since from what I found on the web shared mailboxes and sieve work together from >=cyrus-2.3 Any pointers on how to do that would be helpfull. I attached to log sessions, one where I successfully post to [EMAIL PROTECTED] and one where I post (unsuccessfully) to user [EMAIL PROTECTED] (the message is delivered to the users inbox). \martin Log excerpts (mailto:[EMAIL PROTECTED]): Dec 13 04:14:34 localhost postfix/smtpd[10519]: C1B56152F8A9: client=demo.example.com[192.168.0.1], sasl_method=PLAIN, [EMAIL PROTECTED] Dec 13 04:14:34 localhost postfix/cleanup[10581]: C1B56152F8A9: message-id=<[EMAIL PROTECTED]> Dec 13 04:14:34 localhost postfix/qmgr[8829]: C1B56152F8A9: from=<[EMAIL PROTECTED]>, size=601, nrcpt=1 (queue active) Dec 13 04:14:34 localhost cyrus/imap[10572]: open: user [EMAIL PROTECTED] opened INBOX/Sent Dec 13 04:14:35 localhost postfix/smtpd[10589]: connect from localhost.openforce.lan[127.0.0.1] Dec 13 04:14:36 localhost postfix/smtpd[10589]: 0660B152F8AD: client=localhost.openforce.lan[127.0.0.1] Dec 13 04:14:36 localhost postfix/cleanup[10581]: 0660B152F8AD: message-id=<[EMAIL PROTECTED]> Dec 13 04:14:36 localhost postfix/qmgr[8829]: 0660B152F8AD: from=<[EMAIL PROTECTED]>, size=988, nrcpt=1 (queue active) Dec 13 04:14:36 localhost cyrus/master[10592]: about to exec /usr/lib/ cyrus/bin/lmtpd Dec 13 04:14:36 localhost cyrus/lmtp[9685]: accepted connection Dec 13 04:14:36 localhost cyrus/lmtp[9685]: connection from localhost.openforce.lan [127.0.0.1] preauth'd as postman Dec 13 04:14:36 localhost cyrus/lmtp[10592]: executed Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_check: <[EMAIL PROTECTED]> example.com!shared 0 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_check: <[EMAIL PROTECTED]> example.com!shared 0 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: mystore: starting txn 2147483758 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: mystore: committing txn 2147483758 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: duplicate_mark: <[EMAIL PROTECTED]> example.com! shared 1165979676 140737486810112 Dec 13 04:14:36 localhost cyrus/lmtp[9685]: Delivered: <[EMAIL PROTECTED]> to mailbox: example.com!shared Dec 13 04:14:36 localhost postfix/lmtp[10591]: 0660B152F8AD: to=< [EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1]:24, delay=0.16, delays=0.12/0.01/0.02/0, dsn=2.1.5, status=sent (250 2.1.5 Ok) Dec 13 04:14:36 localhost postfix/qmgr[8829]: 0660B152F8AD: removed Dec 13 04:14:36 localhost postfix/smtpd[10589]: disconnect from localhost.example.com[127.0.0.1] Dec 13 04:14:36 localhost postfix/lmtp[10582]: C1B56152F8A9: to=< [EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, relay=127.0.0.1 [127.0.0.1]:10024, delay=1.4, delays=0.05/0/0.04/1.3, dsn=2.6.0, status=sent (250 2.6.0 <[EMAIL PROTECTED]> Message accepted for delivery) Dec 13 04:14:36 localhost postfix/qmgr[8829]: C1B56152F8A9: removed Log excerpts (mailto:[EMAIL PROTECTED]): Dec 13 04:21:38 localhost postfix/smtpd[10630]: connect from demo.example.com[192.168.0.1] Dec 13 04:21:38 localhost postfix/smtpd[10630]: 6C35F152F8A9: client=demo.example.com[192.168.0.1], sasl_method=PLAIN, [EMAIL PROTECTED] Dec 13 04:21:38 localhost postfix/cleanup[10646]: 6C35F152F8A9: resent-message-id=<[EMAIL PROTECTED]> Dec 13 04:21:38 localhost postfix/cleanup[10646]: 6C35F152F8A9: message-id=<[EMAIL PROTECTED]> Dec 13 04:21:38 localhost postfix/qmgr[8829]: 6C35F152F8A9: from=<[EMAIL PROTECTED]>, size=858, nrcpt=1 (queue active) Dec 13 04:21:38 localhost cyrus/imap[10605]: open: user [EMAIL PROTECTED] opened INBOX/Sent Dec 13 04:21:39 localhost postfix/smtpd[10649]: connect from localhost.example.com[127.0.0.1] Dec 13 04:21:39 localhost postfix/smtpd[10649]: 23A93152F8AD: client=localhost.example.com[127.0.0.1] Dec 13 04:21:39 localhost postfix/cleanup[10646]: 23A93152F8AD: resent-message-id=<[EMAIL PROTECTED]> Dec 13 04:21:39 localhost postfix/cleanup[10646]: 23A93152F8AD: message-id=<[EMAIL PROTECTED]> Dec 13 04:21:39 localhost postfix/qmgr[8829]: 23A93152F8AD: from=<[EMAIL PROTECTED]>, size=1259, nrcpt=1 (queue active) Dec 13 04:21:39 localhost cyrus/lmtp[10600]: accepted connection Dec 13 04:21:39 localhost cyrus/lmtp[10600]: connection from localhost.example.com [127.0.0.1] preauth'd as postman Dec 13 04:21:39 localhost cyrus/master[10652]: about to exec /usr/lib/ cyrus/bin/lmtpd Dec 13 04:21:39 localhost cyrus/lmtp[10652]: executed Dec 13 04:21:39 localhost cyrus/lmtp[10600]: duplicate_check: <[EMAIL PROTECTED]> example.com! user.user.shared 0 Dec 13 04:21:39 localhost cyrus/lmtp[10600]: duplicate_check: <[
Re: cyrus replication question
do thay have to be separated (user names i mean) by space or coma or something else ?? i am getting these Dec 12 21:48:34 mars syncserver[313]: can not unlink /var/imap/user/l/lenny,.seen: No such file or directory Dec 12 21:48:34 mars syncserver[313]: can not unlink /var/imap/user/l/lenny,.mboxkey: No such file or directory when i do name, "name, name" or "name name" or "name,name" > On 12 Dec 2006, at 21:08, [EMAIL PROTECTED] wrote: >> but why is it replicating only active mailboxes/subfolders ?? > > If you're enabling replication on an already in-production server, > you'll probably want to run something like: > > sync_client -l -v -u > > That will cause all existing mailboxes to be replicated. Thereafter, > you shouldn't need to intervene (much). > > :wes > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus replication question
On 12 Dec 2006, at 21:08, [EMAIL PROTECTED] wrote: but why is it replicating only active mailboxes/subfolders ?? If you're enabling replication on an already in-production server, you'll probably want to run something like: sync_client -l -v -u That will cause all existing mailboxes to be replicated. Thereafter, you shouldn't need to intervene (much). :wes Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus replication question
i did as you've said this is now the output of synctest S: * STARTTLS S: * OK mars.edpausa.com Cyrus sync server v2.3.7 Authentication failed. generic failure Security strength factor: 0 /var/log/messages shows : Dec 12 20:56:21 mars syncserver[489]: login: [192.168.0.201] cyrus PLAIN+TLS User logged in Dec 12 20:56:35 mars syncserver[313]: starttls: TLSv1 with cipher AES256-SHA (256/256 bits new) no authentication Dec 12 20:56:35 mars syncserver[313]: login: [192.168.0.201] cyrus PLAIN+TLS User logged in it seems that something did happen it replicated all the active mailboxes ( there are a few innactive from the people who recently left and a few test mailboxes) and replicated only active subfolders of these boxes. so out of 121GB only 58 GB have been replicated i see in logs things like this Dec 12 20:56:45 mars syncserver[313]: Expunged 1 messages from user.stas Dec 12 21:01:50 mars syncserver[313]: skiplist: recovered /var/imap/user/e/edpa.seen.313 (2 records, 11608 bytes) in 0 seconds so something is defetnly going on but why is it replicating only active mailboxes/subfolders ?? Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [sendmail] help with backscatter
Chris Harms <[EMAIL PROTECTED]> writes: > Thank you for the links, this looks to be very helpful. > > To those who have kindly told me to go to the Sendmail groups, I > suspect Cyrus plays a part in our problem. I'm now fairly certain > that our access db is misconfigured, with the reason stemming from > using "To:domain.tld RELAY" as a workaround for Sendmail not > delivering to Cyrus many moons ago. http://groups.google.com/group/comp.mail.sendmail/browse_thread/thread/a835de809015fa7f > [...] -- [pl2en: Andrew] Andrzej Adam Filip : [EMAIL PROTECTED] : [EMAIL PROTECTED] Home site: http://anfi.homesite.net/ Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: [sendmail] help with backscatter
Chris Harms <[EMAIL PROTECTED]> writes: > We are having some trouble with our servers sending out backscatter > spam. I realize this is really a Sendmail issue, but if any list > readers have some insights on the best way to make Sendmail stop > sending bounces to outside domains, it would be greatly appreciated. Make sendmail reject messages to non existing cyrus mailboxes in reply to "RCPT TO:" command in SMTP session. It makes host sending you the message responsible for generating bounce message. Take a look at solutions described at http://anfi.homeunix.net/sendmail/#cyrus * I suggest "Cyrus Aliases" in virtusertable or aliases for small sites or sites with stable list of user mailboxes. * Otherwise consider deploying "Real Time Cyrus Integration Version 2". (RTCyrus2). P.S. RTCyrus3 is under development http://groups-beta.google.com/group/cyrus-sendmail Testers are welcomed. -- [pl2en: Andrew] Andrzej Adam Filip : [EMAIL PROTECTED] : [EMAIL PROTECTED] Home site: http://anfi.homesite.net/ Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: help with backscatter
Chris Harms wrote: To those who have kindly told me to go to the Sendmail groups, I suspect Cyrus plays a part in our problem. I'm now fairly certain that our access db is misconfigured, with the reason stemming from using "To:domain.tld RELAY" as a workaround for Sendmail not delivering to Cyrus many moons ago. I don't think we should need to do this, but I distinctly recall it NOT working if we didn't have it in there. I suppose the 'duct tape' is coming unglued now. I'm currently working on putting together a development machine to try out 2.3.7 and removal of the aforementioned lines in access db. Any pointers on whether my hunch about the access file is correct or not are welcome. Allowing sendmail to relay based on header information is a recipe for disaster. It's possible that this is the cause of your problem, if sendmail is accepting messages from dictionary attacks and cyrus is refusing to deliver them. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
--On Tuesday, December 12, 2006 02:12:41 PM +0530 Pubudu Premachandra <[EMAIL PROTECTED]> wrote: cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' set_lk_max has been deprecated since DB 4.0. I guess it was finally removed. The following patch may be used to work around this: --- lib/cyrusdb_berkeley.c 2006-08-01 15:34:18.0 -0400 +++ /tmp/cyrusdb_berkeley.c 2006-12-12 14:04:00.0 -0500 @@ -174,7 +174,15 @@ syslog(LOG_WARNING, "DBERROR: invalid berkeley_locks_max value, using internal default"); } else { +#if DB_VERSION_MAJOR >= 4 + r = dbenv->set_lk_max_locks(dbenv, opt); + if (!r) + r = dbenv->set_lk_max_lockers(dbenv, opt); + if (!r) + r = dbenv->set_lk_max_objects(dbenv, opt); +#else r = dbenv->set_lk_max(dbenv, opt); +#endif if (r) { dbenv->err(dbenv, r, "set_lk_max"); syslog(LOG_ERR, "DBERROR: set_lk_max(): %s", db_strerror(r)); Or you can downgrade to DB 4.3 (I don't know if 4.4 will work or not) Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: help with backscatter
Thank you for the links, this looks to be very helpful. To those who have kindly told me to go to the Sendmail groups, I suspect Cyrus plays a part in our problem. I'm now fairly certain that our access db is misconfigured, with the reason stemming from using "To:domain.tld RELAY" as a workaround for Sendmail not delivering to Cyrus many moons ago. I don't think we should need to do this, but I distinctly recall it NOT working if we didn't have it in there. I suppose the 'duct tape' is coming unglued now. I'm currently working on putting together a development machine to try out 2.3.7 and removal of the aforementioned lines in access db. Any pointers on whether my hunch about the access file is correct or not are welcome. Matthew Seaman wrote: Chris Harms wrote: We are having some trouble with our servers sending out backscatter spam. I realize this is really a Sendmail issue, but if any list readers have some insights on the best way to make Sendmail stop sending bounces to outside domains, it would be greatly appreciated. The general approach is that you need to decide if a message is spam or not *during* the SMTP dialog. In that case, you can return a 5xx error code to the sending server directly. If you decide the message is spam after you've accepted it your only alternatives are to return a bounce-o-gram is to the sender address which as you've found is almost invariably forged, or to drop the message in the bit-bucket, which is counter to the letter of the SMTP standards and does nothing to indicate to the spammers that they should give up and go and do something more worthwhile. Sendmail's milter interface allows you to filter messages through AV and anti-spam filters -- FEATURE(`delay_checks') in your sendmail.mc file is often useful in that case. See http://www.sendmail.org/m4/anti_spam.html Some milters I use: spamass-milter: http://savannah.nongnu.org/projects/spamass-milt/ milter-greylist: http://hcpnet.free.fr/milter-greylist/ clamav-milter: http://www.clamav.net/ FEATURE(greet_pause) in sendmail.mc is also good at weeding out botnet style mailers. There's an excellent write up (of a pretty severe spam-filtering setup) which does a good job of exploring all the various issues at: http://www.acme.com/mail_filtering/ Cheers, Matthew Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: BUG? File descriptor use in cmd_append (for MULTIAPPEND) results in many open files
Nik Conwell wrote: I'm using the UW mailutil to transfer mailboxes from UW to Cyrus (2.3.7). It uses APPEND, specifically multiappend (single APPEND with multiple messages being appended). Cyrus-imapd handles this multiappend by creating stage files for each appended message and leaving the file descriptor open. The problem is that after 240 messages, we run out of file descriptors and so an open() of the next stage file fails with EMFILE. I updated /etc/cyrus.conf to make the max fds be 1024 (AFAICT kernel MAX) which helped somewhat but not for larger mailboxes with > 1008 messages. Shouldn't the multiappend/append be closing the FD for each stage file and then reopening it later as it needs it? Already fixed in CVS: https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/imap/imapd.c.diff?r1=1.443.2.88&r2=1.443.2.89 -- Kenneth Murchison Systems Programmer Project Cyrus Developer/Maintainer Carnegie Mellon University Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: help with backscatter
Chris Harms wrote: > We are having some trouble with our servers sending out backscatter > spam. I realize this is really a Sendmail issue, but if any list > readers have some insights on the best way to make Sendmail stop sending > bounces to outside domains, it would be greatly appreciated. The general approach is that you need to decide if a message is spam or not *during* the SMTP dialog. In that case, you can return a 5xx error code to the sending server directly. If you decide the message is spam after you've accepted it your only alternatives are to return a bounce-o-gram is to the sender address which as you've found is almost invariably forged, or to drop the message in the bit-bucket, which is counter to the letter of the SMTP standards and does nothing to indicate to the spammers that they should give up and go and do something more worthwhile. Sendmail's milter interface allows you to filter messages through AV and anti-spam filters -- FEATURE(`delay_checks') in your sendmail.mc file is often useful in that case. See http://www.sendmail.org/m4/anti_spam.html Some milters I use: spamass-milter: http://savannah.nongnu.org/projects/spamass-milt/ milter-greylist: http://hcpnet.free.fr/milter-greylist/ clamav-milter: http://www.clamav.net/ FEATURE(greet_pause) in sendmail.mc is also good at weeding out botnet style mailers. There's an excellent write up (of a pretty severe spam-filtering setup) which does a good job of exploring all the various issues at: http://www.acme.com/mail_filtering/ Cheers, Matthew -- Dr Matthew SeamanThe Bunker, Ash Radar Station PGP: 0x60AE908C on servers Marshborough Rd Tel: +44 1304 814800 Sandwich Fax: +44 1304 814899 Kent, CT13 0PL, UK signature.asc Description: OpenPGP digital signature Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: help with backscatter
Chris Harms wrote: Hello, We are having some trouble with our servers sending out backscatter spam. I realize this is really a Sendmail issue, but if any list readers have some insights on the best way to make Sendmail stop sending bounces to outside domains, it would be greatly appreciated. Take this to a sendmail newsgroup or mailing list and describe your configuration. Explain how/why your MTA accepts messages that it will bounce later. Be sure to mention if it is exposed directly to the internet, if it is behind another SMTP gateway, or if it acts as an SMTP gateway. You will be instructed not to accept messages for unknown users and not to accept messages that you intend to reject later. There are many helpful and experienced administrators on those lists that will help you with the configuration details, and you have a better chance of reaching someone with a similar environment. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: timeouts when connecting to imap server
On Tue, 12 Dec 2006, Timo Veith wrote: Hello Jorey, hello list readers this is what I was already doing (using different config files for different services). But I didn't noticed that I need unique names for them in cyrus.conf. So, let me repeat my suggestion: How would it be to have the master daemon parse the config file for mistakes like this one? It could just refuse to start or log an error message. I was looking at the logs with level debug and also with CYRUS_VERBOSE and -D as start option, but found nothing. A small extension of the manual page would also be good. Any developers around, who could pick this up? Sounds fine to me. Why not file a feature request bug at: https://bugzilla.andrew.cmu.edu/ Andy Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
help with backscatter
Hello, We are having some trouble with our servers sending out backscatter spam. I realize this is really a Sendmail issue, but if any list readers have some insights on the best way to make Sendmail stop sending bounces to outside domains, it would be greatly appreciated. Thanks in advance, Chris Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
RE: What causes DBERROR db4: PANIC: Invalid argument?
> From: [EMAIL PROTECTED] [mailto:info-cyrus- > [EMAIL PROTECTED] On Behalf Of Simon Matter > > > Yesterday our Cyrus server stopped responding and I saw the following > > messages in the log file: > > > > > > > > Dec 7 18:13:55 email imaps[9684]: [ID 866726 local6.warning] DBERROR > > db4: PANIC: Invalid argument > > > > Dec 7 18:13:55 email imaps[9684]: [ID 864961 local6.crit] DBERROR: > > critical database situation > > > > Dec 7 18:13:55 email master[248]: [ID 684980 local6.warning] service > > imaps pid 9684 in READY state: term > > > > inated abnormally > > > > Dec 7 18:13:55 email imaps[9682]: [ID 866726 local6.warning] DBERROR > > db4: PANIC: fatal region error dete > > > > cted; run recovery > > > > > > > > The last 3 lines (or variations of them) were repeated over and over. I > > was able to fix the server by shutting down Cyrus, running "ctl_cyrusdb > > -r", and restarting Cyrus. > > > > > > > > 1) What caused the PANIC: Invalid argument? Is it a Cyrus bug? > > Hm, no idea what happened here. My only suggestion is to move all db4 to > skiplist. I'm using the defaults, which means the mailbox DB is skiplist. I'm assuming the mailbox DB was hosed because the "ctl_mboxlist -d" didn't work before I ran the recover command and did work afterwards. > > 2) If the recovery had failed, I would have had to restore > > mailboxes.db from a backup. We have text backups of the mailbox db > > created by ctl_mboxlist. What is the proper procedure for restoring it? > > We would want to get rid of the corrupt data, which would involve > > deleting mailboxes.db, but are there other files that should also be > > deleted? > > Importing mailboxes.db should be done via "ctl_mboxlist -u". From my > experience it may be needed to wipe the contents of the directory > [configdir]/db/ before creating new databases. Otherwise parts of the old > db environment are still there and disturbe you. Thanks for this information. > Simon > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: timeouts when connecting to imap server
Am Dienstag 12 Dezember 2006 14:59 schrieb Jorey Bump: > Timo Veith wrote: > > Does a service name in /etc/cyrus.conf must be unique? > > Yes, it isn't really a service name (i.e. from /etc/services), but a > unique identifier. This allows you to assign names for multiple > configurations of the same network service, so you can manipulate them > separately in imapd.conf. I'm sorry I didn't see that in your original > post. You need to fix this for all of the services you've duplicated. > > In practice, this allows you to preface certain configuration > directives with the unique service name. For example, you might set a > global TLS key that all services will use by default: > > tls_key_file: /etc/ssl/imapd.key > > But you might also have a uniquely named imapd that uses a different > key: > > imapdlo_tls_key_file: /etc/ssl/imapdlo.key > > In cyrus.conf, this alternate imapd might coexist with your regular > imapd like this: > > imap cmd="imapd" listen="192.168.1.4:imap" prefork=0 > imapdlo cmd="imapd" listen="127.0.0.1:imap" prefork=0 > > Note that the listen parameter uses the actual service name defined in > /etc/services. Hello Jorey, hello list readers this is what I was already doing (using different config files for different services). But I didn't noticed that I need unique names for them in cyrus.conf. So, let me repeat my suggestion: How would it be to have the master daemon parse the config file for mistakes like this one? It could just refuse to start or log an error message. I was looking at the logs with level debug and also with CYRUS_VERBOSE and -D as start option, but found nothing. A small extension of the manual page would also be good. Any developers around, who could pick this up? Kind regards, Timo Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: timeouts when connecting to imap server
Timo Veith wrote: Does a service name in /etc/cyrus.conf must be unique? Yes, it isn't really a service name (i.e. from /etc/services), but a unique identifier. This allows you to assign names for multiple configurations of the same network service, so you can manipulate them separately in imapd.conf. I'm sorry I didn't see that in your original post. You need to fix this for all of the services you've duplicated. In practice, this allows you to preface certain configuration directives with the unique service name. For example, you might set a global TLS key that all services will use by default: tls_key_file: /etc/ssl/imapd.key But you might also have a uniquely named imapd that uses a different key: imapdlo_tls_key_file: /etc/ssl/imapdlo.key In cyrus.conf, this alternate imapd might coexist with your regular imapd like this: imap cmd="imapd" listen="192.168.1.4:imap" prefork=0 imapdlo cmd="imapd" listen="127.0.0.1:imap" prefork=0 Note that the listen parameter uses the actual service name defined in /etc/services. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: How to remove a users sieve sieve script?
Am Dienstag 12 Dezember 2006 09:16 schrieb Simon Liebold: > Hi Timo, > > i usually use the sieveshell. But if the deletion of these files work > as well i would be interested to know. > > Kind regards, > -simon With sieveshell I get $ sieveshell -a cyrus -u localhost connecting to localhost Please enter your password: Please enter your password: Bad protocol from MANAGESIEVE server: lost connection Note the two password prompts! The password is right because I can use it with cyradm. And it doesn't matter if I use the -u option or not. I get the same error. But: sieveshell works if I am not using user "cyrus". Regards, Timo Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Installtion error - cyrusdb_berkeley structure has no member named `set_lk_max'
I am following "Postfix-Cyrus-Web-cyradm-HOWTO". It's correct up to Building Cyrus-IMAP . Building Cyrus-IMAP gives error at make stage. cyrusdb_berkeley.c: In function `init': cyrusdb_berkeley.c:176: error: structure has no member named `set_lk_max' make[1]: *** [cyrusdb_berkeley.o] Error 1 --- I installed berkeley db-4.5.20 as README init said to do. (not as Postfix-Cyrus-Web-cyradm-HOWTO - I guess version mattered here so I did like) cd to build_unix folder. ../dist/configure --prefix=/usr2/servers/pub-imap/bdb (where I need it to be installed.) -- Then I did this as totorial says to do. export CPPFLAGS="-I/usr/include/et" (I guess is this the matter for the error??) Any help. I am stucked. Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus replication question
On Mon, Dec 11, 2006 at 04:36:38PM -0500, [EMAIL PROTECTED] wrote: > > another question : > > do i need to create mailboxes > on the replica server or will they be created by the replication > process ? You don't need create mailboxes manually. WBR -- Dmitriy Kirhlarov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7247 ext.208 F:+7 495 105 7246 E:[EMAIL PROTECTED] OILspace - The resource enriched - www.oilspace.com Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: How to remove a users sieve sieve script?
Hi Timo, i usually use the sieveshell. But if the deletion of these files work as well i would be interested to know. Kind regards, -simon Am Dienstag, den 12.12.2006, 08:48 +0100 schrieb Timo Veith: > Hello info-cyrus readers, > > how can I remove a users sieve script? Is it possible to just delete his > files under /var/imap/sieve/x/y ? > > Kind regards, > Timo > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ > Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki > List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html > > > !DSPAM:7,457e5feb193879813537763! > > Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: cyrus replication question
On Mon, Dec 11, 2006 at 04:35:24PM -0500, [EMAIL PROTECTED] wrote: > > i started looking around > for one i found that for whatever reason > both sync and some other default process was using 2005/tcp port > (in /etc/services ) > after taking care of that > > i kicked off on sync_client on master server > (after logging in as cyrus) > on master server i get > can not connect to server 'replica.mydomain.com trying in 15 seconds. > > and in /var/log/messages the following comes up > (still on master server) > > Dec 11 16:09:56 master_server sync_client[93038]: TLS client engine: > cannot load CA data > Dec 11 16:09:56 master_server sync_client[93038]: Doing a peer verify > Dec 11 16:09:56 master_server sync_client[93038]: verify error:num=18:self > signed certificate > Dec 11 16:09:56 master_server sync_client[93038]: starttls: TLSv1 with > cipher AES256-SHA (256/256 bits new) no authentication > Dec 11 16:09:57 master_server sync_client[93038]: No worthy mechs found > Dec 11 16:09:57 master_server sync_client[93038]: couldn't authenticate to > backend server: no mechanism available > - Check tls_key_file: tls_ca_file: tls_cert_file: in your imapd.conf WBR -- Dmitriy Kirhlarov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7247 ext.208 F:+7 495 105 7246 E:[EMAIL PROTECTED] OILspace - The resource enriched - www.oilspace.com Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
Re: How to remove a users sieve sieve script?
On Tue, Dec 12, 2006 at 08:48:27AM +0100, Timo Veith wrote: > Hello info-cyrus readers, > > how can I remove a users sieve script? Is it possible to just delete his > files under /var/imap/sieve/x/y ? Yes, it is. --Janne Peltonen Univ. of Helsinki email Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html