Strange mail date problem with outlook
Hi, I have migrated all mail on my server to cyrus-imap with imapsync tool. All has worked perfectly on server and on most mail clients. But on Outlook 2002 and 2003, all mail migrated have date set to migration day but are sort by original mail date. I have run a little perl script on mail server to set file date to date entry in mail but that didn't change anything( i would be surprised if that's worked). Someone has a explanation for this problem and/or know how to correct this problem ? Thanks, Kardiac --- 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: Strange mail date problem with outlook
Ok, After more search, it was a problem with INTERNALDATE field. I needed to suppress cyrus.index file and reconstruct mailbox to correct problem. It will worked first time if i have used --syncinternaldates flag in imapsync. Kardiac Darrell Berry wrote: i can't remeber the answer but its been asked before and answered -- if no one gets back to you, it will be out there on google somewhere -- sorry i can't remember what the problem was, but its an outlook 'oddity' and there's a simple hack to the migration script to fit it... kardiac wrote: Hi, I have migrated all mail on my server to cyrus-imap with imapsync tool. All has worked perfectly on server and on most mail clients. But on Outlook 2002 and 2003, all mail migrated have date set to migration day but are sort by original mail date. I have run a little perl script on mail server to set file date to date entry in mail but that didn't change anything( i would be surprised if that's worked). Someone has a explanation for this problem and/or know how to correct this problem ? Thanks, Kardiac --- 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 --- 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: lmtp versus deliver
On Fri, 05 Nov 2004 15:00:34 -0500 Ken Murchison <[EMAIL PROTECTED]> wrote: > Philip Chambers wrote: > > > This is cyrus-imap.2.2.8 with exim-4.41: > > > > I had been using lmtp to do normal deliveries but deliver to deliver to > > specific > > folders (as for spam being diverted to a spam-folder. > > > > I noticed in my exim logs that at busy times I was getting a few failures > > from the > > deliver program (logged as error code 75 or 65 by exim). Can someone tell > > me what > > these two codes mean? > > > > On reflection I thought that I might be able to use lmtp to deliver to > > specific > > folders instead by using "[EMAIL PROTECTED]" as the address. I tried this > > and it worked. An advantage of this is the benefit of multiple deliveries > > in one go. > > > > However, I have now found a difference which it would be nice to remove: > > > > Using deliver to deliver to "user.folder", if the folder does not exist, it > > delivers > > to the user's inbox. Using lmpt, if the folder does not exist, it rejects > > the > > message. > > > > Is it possible to get lmtp to deliver to the inbox if the specified folder > > does not > > exist? > > Either I'm confused or you're using the incorrect syntax. To deliver to > a user-specific folder via LMTP, the address should be > [EMAIL PROTECTED] If the folder doesn't exist (or doesn't allow > posting by the [un]authenticated user, then the message *will* go to the > user's INBOX. Thanks for that information, as you say, using plus as the separator delivers to the folder if there is a suitable acl or to the inbox if not. Using a dot to separate the username and foldername certainly works and the delivery takes place without any acl on the folder. Phil. --- Phil Chambers ([EMAIL PROTECTED]) University of Exeter --- 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: V #586
Date: Thu, 4 Nov 2004 18:45:19 +0100 From: Ralph Roessner <[EMAIL PROTECTED]> Subject: Re: using ldap for obtaining group membership information Cyrus IMAP with LDAP ptloader still uses saslauthd for authentication. But before it does authentication, it uses LDAP to canonify the user name. That is what you are seeing here: First it binds with admin rights: Then it changes uid to the user that is being canonified and asks for its own user name. The assumption is that the LDAP server will return the canonical user name. (In LDAPish this reads: execute a "who am i" extended operation with "proxyauthz" control in place). Note the error 32. This is called LDAP_NO_SUCH_OBJECT and means in this case that the search base ("uid=jon,cn=simple,cn=auth") does not exist. You probably need to adjust the SASL -> uid mapping in the LDAP configuration so that "The user with authcid 'jon' authenticated by the simple mechanism" gets translated to "uid=jon,cn=people,dc=mydomain,dc=com" or whatever your user subtree is called. See the slapd.conf man page, keyword "sasl-regexp". To summarize: The Cyrus IMAP ptloader does not find your users in the LDAP tree. Neither authentication nor group lookup is even tried. OK. That makes sense. What confuses me is that I have "ldap_sasl: 0" in imapd.conf, no SASL support in my LDAP server, and "sasl-authz-policy none" in slapd.conf (just for good measure). So why is ptloader trying to do proxyauth at all? It looks like I am being forced to use SASL and proxyauthz when using ptloader. Is this correct? Then try turning SASL off: option "ldap_sasl: 0". This may save you the trouble of finding a working "sasl-regexp". Have done, see below Date: Thu, 4 Nov 2004 13:46:50 -0500 (EST) From: Igor Brezac <[EMAIL PROTECTED]> Subject: Re: using ldap for obtaining group membership information Show us your config and I can help you from there. There are quite a few ways you can configure ptloader. imapd.conf configdirectory: /var/imap partition-default: /home/cyrus/mail admins: cyradmin plaintextloginpause: 0 sieveusehomedir: false sievedir: /home/cyrus/sieve sasl_pwcheck_method: saslauthd sasl_mech_list: plain login allowplaintext: 0 ptloader_sock: /var/imap/ptclient/ptsock ldap_base: dc=mydomain,dc=com ldap_deref: never lmtp_downcase_rcpt: 1 ldap_filter: "&(objectclass=inetOrgPerson)(uid=%u))" ldap_group_base: "ou=groups,dc=mydomain,dc=com" ldap_group_filter: "&(objectclass=posixGroup)(cn=%u)" ldap_group_scope: sub ldap_member_base: "ou=groups,dc=mydomain,dc=com" ldap_member_atttribute: memberUid ldap_member_method: attribute ldap_member_scope: sub ldap_bind_dn: cn=Manager,dc=mydomain,dc=com ldap_password: p ldap_uri: ldap://localhost/ ldap_sasl: 0 ldap_authz: 0 tls_cert_file: /var/imap/server.pem tls_key_file: /var/imap/server.pem ## cyrus.conf START { recover cmd="ctl_cyrusdb -r" } SERVICES { imap cmd="imapd" listen="imap" prefork=0 imaps cmd="imapd -s" listen="imaps" prefork=0 pop3 cmd="pop3d" listen="pop3" prefork=0 pop3s cmd="pop3d -s" listen="pop3s" prefork=0 lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0 ptloader cmd="ptloader" listen="/var/imap/ptclient/ptsock" prefork=1 } EVENTS { checkpointcmd="ctl_cyrusdb -c" period=30 delprune cmd="cyr_expire -E 3" at=0400 tlsprune cmd="tls_prune" at=0400 } --- 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: 2.2.8/timsieved/comparator-i;ascii-numeric support...?
Henrique de Moraes Holschuh wrote: On Sun, 07 Nov 2004, Ken Murchison wrote: It *should* be reported by timsieved. The fact that its not is a bug which I just fixed in CVS. Would that be true also for Sieve in Cyrus 2.1 ? If 2.1 had the relational extension, which requires the numeric comparator, then the answer would be yes. I'd have to check CVS to see when I added relational. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- 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: POP3 re-downloading mail
On Sun, Nov 07, 2004 at 11:53:52PM -0500 or thereabouts, Warrick FitzGerald wrote: > They are using POP3 and have outlook set to leave messages on the > server. Is it possible that Outlook got confused with the mail server > change and now somehow can not figure out that it's downloaded emial > that's have already been downloaded? Hi Warrick, seen information is saved at server side for imap and pop3, too. If you have moved the server sided pop3 mailboxes using a mailclient tool, this information might have changed, so they have the status "not seen" and outlook behaves right. If you have moved them at filesystem level their status should not have changed and outlook misbehaves. cu Sascha --- 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: POP3 re-downloading mail
Sascha Wuestemann wrote: On Sun, Nov 07, 2004 at 11:53:52PM -0500 or thereabouts, Warrick FitzGerald wrote: They are using POP3 and have outlook set to leave messages on the server. Is it possible that Outlook got confused with the mail server change and now somehow can not figure out that it's downloaded emial that's have already been downloaded? Hi Warrick, seen information is saved at server side for imap and pop3, too. If you have moved the server sided pop3 mailboxes using a mailclient tool, this information might have changed, so they have the status "not seen" and outlook behaves right. If you have moved them at filesystem level their status should not have changed and outlook misbehaves. cu Sascha --- 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 Hi Sascha, Thanks for the response, but that doesn't make sense (to my feeble mind anyway ;-) ). Let's say you have two POP3 clients one set to leave mail on the server for a week and one set to leave mail on the server for a day. If the one that's leaving thing on the server for a week pick's up mail, the other is not effected in any way .. and you're messages are not marked as seen in any way. Are you sure POP3 has seen state on the server? Sorry, I'm sure you know a lot more about this than I do but I'm just trying to understand. Thanks again Warrick --- 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: POP3 re-downloading mail
- Original Message - From: "Sascha Wuestemann" <[EMAIL PROTECTED]> To: "Cyrus List" <[EMAIL PROTECTED]> Sent: Monday, November 08, 2004 7:44 AM Subject: Re: POP3 re-downloading mail > On Sun, Nov 07, 2004 at 11:53:52PM -0500 or thereabouts, Warrick FitzGerald wrote: > > They are using POP3 and have outlook set to leave messages on the > > server. Is it possible that Outlook got confused with the mail server > > change and now somehow can not figure out that it's downloaded emial > > that's have already been downloaded? > > Hi Warrick, > > seen information is saved at server side for imap and pop3, too. > If you have moved the server sided pop3 mailboxes using a mailclient > tool, this information might have changed, so they have the status "not > seen" and outlook behaves right. If you have moved them at filesystem > level their status should not have changed and outlook misbehaves. > > cu > Sascha I've seen it numerous times where Outlook/OE is stupid and "forgets" its settings. Never seen it happen with any mail client except O/OE, and I've never found a way to stop it. We had three people on that "leave messages on server" setting and their "multiple downloads" were never sync'd and we never could find a corrolation. (One guy NEVER had it happen, one was intermittant and one happened fairly regularly...but never regularly enough for us to pin it down.) -Mike/Szii --- 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
cyrus-imap rejects several email
Hello list, today I wanted to copy lots of emails from Outlook & Outlook Express to an cyrus-imap (2.2.8 on SuSE 9.2). But cyrus-imap rejects several emails ... the error message (within OE) is: Message contains invalid header Is there an option I have to check to disable this feature? I'd like to use one mail-storage only in the future ... Here are two examples: [Header-1] > From [EMAIL PROTECTED] Tue, 02 Apr 2002 08:07:55 -0800 Received: from [216.33.156.139] by hotmail.com (3.2) with ESMTP id MHotMailBE7321B6006040043157D8219C8BF7F616; Tue, 02 Apr 2002 08:06:00 -0800 Received: from leeta.ebay.com (leeta [10.201.2.31]) by jadzia.ebay.com (8.10.2/8.10.2) with ESMTP id g32Fi7S03290 for <[EMAIL PROTECTED]>; Tue, 2 Apr 2002 07:44:07 -0800 Received: from lisbon.sjc.ebay.com (lisbon.sjc.ebay.com [10.6.52.27]) by leeta.ebay.com (8.10.2/8.10.2) with SMTP id g32FhG305619 for <[EMAIL PROTECTED]>; Tue, 2 Apr 2002 07:43:16 -0800 Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Subject: Aenderung der E-Mail-Adresse Date: Tue, 02 Apr 2002 07:43:16 PST [/Header-1] [Header-2] > From [EMAIL PROTECTED] Tue, 23 Apr 2002 11:35:45 -0700 Received: from [207.171.187.128] by hotmail.com (3.2) with ESMTP id MHotMailBE8EF478000F4136E859CFABBB80A01D0; Tue, 23 Apr 2002 11:35:36 -0700 Received: from online-250.amazon.com (207-171-182-50.amazon.com [207.171.182.50]) by husqvarna.amazon.com (Postfix) with ESMTP id BC7B2228133 for <[EMAIL PROTECTED]>; Tue, 23 Apr 2002 11:36:16 -0700 (PDT) Received: by online-250.amazon.com Date: Tue, 23 Apr 2002 11:36:16 -0700 Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Your Order with Amazon.com (#002-xxx-yyy) Cc: Sender: [EMAIL PROTECTED] X-Amazon-ORDER-Sender: [EMAIL PROTECTED] X-Amazon-ORDER-Sender-IP: [80.135.146.9] X-Amazon-ORDER-Date: Tue, 23 Apr 2002 18:36:16 + (UTC) X-Amazon-ORDER-Recipient: [EMAIL PROTECTED] [/Header-2] Thanks in advance! Torsten --- 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: POP3 re-downloading mail
On Mon, Nov 08, 2004 at 12:44:08PM -0500 or thereabouts, Warrick FitzGerald wrote: > >seen information is saved at server side for imap and pop3, too. > >If you have moved the server sided pop3 mailboxes using a mailclient > >tool, this information might have changed, so they have the status "not > >seen" and outlook behaves right. If you have moved them at filesystem > >level their status should not have changed and outlook misbehaves. > > > > Thanks for the response, but that doesn't make sense (to my feeble mind > anyway ;-) ). > > Let's say you have two POP3 clients one set to leave mail on the server > for a week and one set to leave mail on the server for a day. > > If the one that's leaving thing on the server for a week pick's up mail, > the other is not effected in any way .. and you're messages are not > marked as seen in any way. Are you sure POP3 has seen state on the server? Hi again, I am no expert and I do not know the correspondig rfcs without looking them up, but that is what my experience is. This is what I can remember: If I (somehow) have downloaded from the pop3 server but not flushed emails, they stay at the server which I have prooven by telneting to it and asked the server myself. I had to tell fetchmail the "fetchall" keyword which is "Fetch all messages wether seen or not" to get them, too, and not only new, unseen mails. ...I don't know how outlook behaves at such, but this shows pop3 _has_ a seen state. cu Sascha --- 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
Compile Problems Solaris 9, Cyrus-SASL-2.1.20, Cyrus-Imapd-2.2.8
Hello; I'm looking for some help trying to get Cyrus-Imapd version 2.2.8 to compile on a Solaris 9 box. I have installed Cyrus-SASL version 2.1.20 and its running fine, make depend is fine, however make fails in the imap subdirectory ### Making all in /private/build/cyrus-imapd-2.2.8/imap make[1]: Entering directory `/private/build/cyrus-imapd-2.2.8/imap' rm -f version.o AWK=gawk ./xversion.sh gcc -c -I.. -I./../lib -I../et -I/usr/local/db/include -I/usr/local/include -I/usr/local/openssl/include -I/usr/local/net-snmp-5.1.1/include -I/private/software/cyrus-sasl/include -DHAVE_CONFIG_H -g -O2 \ version.c gcc -L/usr/local/openssl/lib -R/usr/local/openssl/lib -L/usr/local/db/lib -R/usr/local/db/lib -L/usr/local/lib -R/usr/local/lib -o imapd \ ../master/service.o pushstats.o backend.o imapd.o index.o tls.o version.o mutex_fake.o \ libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/private/software/cyrus-sasl/lib -R/private/software/cyrus-sasl/lib -lsasl2 -lresolv -ldl -lresolv -lsocket -lnsl -L/usr/local/db/lib -R/usr/local/db/lib -ldb-4.1 -lssl -lcrypto -lrt ../et/libcom_err.a -lwrap -lnsl Undefined first referenced symbol in file add_to_error_table libimap.a(imap_err.o) ld: fatal: Symbol referencing errors. No output written to imapd collect2: ld returned 1 exit status make[1]: *** [imapd] Error 1 make[1]: Leaving directory `/private/build/cyrus-imapd-2.2.8/imap' make: *** [all] Error 1 thanks -Jeff --- 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: POP3 re-downloading mail
> Sascha Wuestemann wrote: > > >On Sun, Nov 07, 2004 at 11:53:52PM -0500 or thereabouts, Warrick FitzGerald wrote: Hi Warrick and Sascha, > >Hi Warrick, > > > >seen information is saved at server side for imap and pop3, too. [snip] > Let's say you have two POP3 clients one set to leave mail on the server > for a week and one set to leave mail on the server for a day. > > If the one that's leaving thing on the server for a week pick's up mail, > the other is not effected in any way .. and you're messages are not > marked as seen in any way. Are you sure POP3 has seen state on the server? Yes it is...in a way. It's actually "saved" on both. Technically it's only saved on the client, but it uses to the server to tell what's been downloaded. The client asks the server to give a "UID" of the messages on the server. The client then downloads the messages and records what UIDs it has seen. When the client checks mail again, it requests UIDs again. Any UID that it hasn't seen, it requests retrieval. Here's how you can try it out yourself: - Open a command prompt - Open a telnet session to your mail server on port 110 - e.g. telnet mail.sascha.fi 110 - You'll get a POP3 banner. Login as follows: - user(this is how your client passes login name) - pass (this is how your client passes your password) - list (this is how your client gets a list of your messages. You are returned a message number with a message size.) - uidl (this is how your client gets a list of UIDs for each message. You are returned a message number with UID) - At this point you can get a message using RETR (e.g. RETR 1 will retrieve message 1) - If your client is set to delete messages after retrieval, the client then deletes using DELE (e.g. DELE 1 will delete message 1) [snip] Anyway, what this all means is that the new server-side software merely recalculated all of your users' UIDs, thus making them appear to be new to your clients. POP3 is very simple compared to IMAP. There is no "seen" flag. Michael --- 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 + LDAP Suggestions/Help
> On Sat, 6 Nov 2004, Igor Brezac wrote: [snip] > Based on your saslauthd startup you need to use (unless you have some > vendor specific cyrus-sasl version): > sasl_saslauthd_path: /var/run/saslauthd/mux/mux Hey Igor, I think I'm getting closer: Nov 8 11:38:03 dev2 saslauthd[4679]: Retrying authentication Nov 8 11:38:03 dev2 saslauthd[4679]: do_auth : auth failure: [user=michaeln] [service=pop] [realm=] [mech=ldap] [reason=Unknown] Nov 8 11:38:03 dev2 pop3[4691]: badlogin: localhost.localdomain [127.0.0.1] plaintext michaeln SASL(-13): authentication failure: checkpass failed The actual session looks like this: Escape character is '^]'. +OK dev2 Cyrus POP3 v2.2.8 server ready <[EMAIL PROTECTED]> user michaeln +OK Name is a valid mailbox So for some reason, it still doesn't see my user. Thanks, guys. Michael --- 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: POP3 re-downloading mail
I've run into this with a number of pop based clients. From what I have seen, the problem comes up on a client IF there was some sort of error that occured the previous time that client ran. For example, the client for some reason disconnected in the middle of downloading a message. There are 100 message on server. The last 10 were not seen by the client yet so it was downloading those. In the middle of message "new-9" or 99, an error occurred. The client now gets confused about what it has and the next time it downloads, it starts over at message 1. It's wrong, but it happens. I would not blame the server unless I had a strong case that it really did recalc all message UIDL. --Gene "Michael Nguyen" made the following keystrokes: >> Sascha Wuestemann wrote: >> >> >On Sun, Nov 07, 2004 at 11:53:52PM -0500 or thereabouts, Warrick >FitzGerald wrote: > >Hi Warrick and Sascha, > >> >Hi Warrick, >> > >> >seen information is saved at server side for imap and pop3, too. > >[snip] > >> Let's say you have two POP3 clients one set to leave mail on the server >> for a week and one set to leave mail on the server for a day. >> >> If the one that's leaving thing on the server for a week pick's up mail, >> the other is not effected in any way .. and you're messages are not >> marked as seen in any way. Are you sure POP3 has seen state on the server? > >Yes it is...in a way. It's actually "saved" on both. Technically it's only >saved on the client, but it uses to the server to tell what's been >downloaded. The client asks the server to give a "UID" of the messages on >the server. The client then downloads the messages and records what UIDs it >has seen. When the client checks mail again, it requests UIDs again. Any >UID that it hasn't seen, it requests retrieval. > >Here's how you can try it out yourself: > > - Open a command prompt > - Open a telnet session to your mail server on port 110 > - e.g. telnet mail.sascha.fi 110 > - You'll get a POP3 banner. Login as follows: >- user(this is how your client passes login name) >- pass (this is how your client passes your password) >- list (this is how your client gets a list of your messages. >You are returned a message number with a message size.) >- uidl (this is how your client gets a list of UIDs for each >message. You are returned a message number with UID) > - At this point you can get a message using RETR (e.g. RETR 1 will retrieve >message 1) > - If your client is set to delete messages after retrieval, the client then >deletes using DELE (e.g. DELE 1 will delete message 1) > >[snip] > >Anyway, what this all means is that the new server-side software merely >recalculated all of your users' UIDs, thus making them appear to be new to >your clients. POP3 is very simple compared to IMAP. There is no "seen" >flag. > > >Michael > >--- >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 > --- 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: POP3 re-downloading mail
- Original Message - From: "Gene Rackow" <[EMAIL PROTECTED]> > I've run into this with a number of pop based clients. From what I have > seen, the problem comes up on a client IF there was some sort of error > that occured the previous time that client ran. For example, the > client for some reason disconnected in the middle of downloading a message. > There are 100 message on server. The last 10 were not seen by the client > yet so it was downloading those. In the middle of message "new-9" or 99, > an error occurred. The client now gets confused about what it has and > the next time it downloads, it starts over at message 1. It's wrong, > but it happens. I would not blame the server unless I had a strong > case that it really did recalc all message UIDL. This is true. The most common cause of this is a client error (e.g. a user reinstalls Outlook Express thus removing the list of UIDs). However, Warrick's issue was that quite a few users were re-downloading email. I don't know how many users this really is, but if he's talking dozens of users, it's far more likely that it had to do with the new server than anything else. [snip] Michael --- 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 + LDAP Suggestions/Help
On Mon, 8 Nov 2004, Michael Nguyen wrote: On Sat, 6 Nov 2004, Igor Brezac wrote: [snip] Based on your saslauthd startup you need to use (unless you have some vendor specific cyrus-sasl version): sasl_saslauthd_path: /var/run/saslauthd/mux/mux Hey Igor, I think I'm getting closer: Nov 8 11:38:03 dev2 saslauthd[4679]: Retrying authentication Nov 8 11:38:03 dev2 saslauthd[4679]: do_auth : auth failure: [user=michaeln] [service=pop] [realm=] [mech=ldap] [reason=Unknown] Nov 8 11:38:03 dev2 pop3[4691]: badlogin: localhost.localdomain [127.0.0.1] plaintext michaeln SASL(-13): authentication failure: checkpass failed You should get more messages in the syslog from saslauthd. Can you double check? -- Igor --- 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 + LDAP Suggestions/Help
From: "Igor Brezac" <[EMAIL PROTECTED]> > > On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] > > Nov 8 11:38:03 dev2 saslauthd[4679]: Retrying authentication > > Nov 8 11:38:03 dev2 saslauthd[4679]: do_auth : auth failure: > > [user=michaeln] [service=pop] [realm=] [mech=ldap] [reason=Unknown] > > Nov 8 11:38:03 dev2 pop3[4691]: badlogin: localhost.localdomain [127.0.0.1] > > plaintext michaeln SASL(-13): authentication failure: checkpass failed > > > > You should get more messages in the syslog from saslauthd. Can you double > check? I double checked. This is definitely all I'm getting. I have a few more of the first two lines (the retrying authentication) but I think that that's from trying it a few times. Michael --- 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: Compile Problems Solaris 9, Cyrus-SASL-2.1.20, Cyrus-Imapd-2.2.8
On Mon, 8 Nov 2004, Jeff Tomaszewski wrote: Hello; I'm looking for some help trying to get Cyrus-Imapd version 2.2.8 to compile on a Solaris 9 box. I have installed Cyrus-SASL version 2.1.20 and its running fine, make depend is fine, however make fails in the imap subdirectory ### Making all in /private/build/cyrus-imapd-2.2.8/imap make[1]: Entering directory `/private/build/cyrus-imapd-2.2.8/imap' rm -f version.o AWK=gawk ./xversion.sh gcc -c -I.. -I./../lib -I../et -I/usr/local/db/include -I/usr/local/include -I/usr/local/openssl/include -I/usr/local/net-snmp-5.1.1/include -I/private/software/cyrus-sasl/include -DHAVE_CONFIG_H -g -O2 \ version.c gcc -L/usr/local/openssl/lib -R/usr/local/openssl/lib -L/usr/local/db/lib -R/usr/local/db/lib -L/usr/local/lib -R/usr/local/lib -o imapd \ ../master/service.o pushstats.o backend.o imapd.o index.o tls.o version.o mutex_fake.o \ libimap.a ../lib/libcyrus.a ../lib/libcyrus_min.a -L/private/software/cyrus-sasl/lib -R/private/software/cyrus-sasl/lib -lsasl2 -lresolv -ldl -lresolv -lsocket -lnsl -L/usr/local/db/lib -R/usr/local/db/lib -ldb-4.1 -lssl -lcrypto -lrt ../et/libcom_err.a -lwrap -lnsl Undefined first referenced symbol in file add_to_error_table libimap.a(imap_err.o) ld: fatal: Symbol referencing errors. No output written to imapd collect2: ld returned 1 exit status make[1]: *** [imapd] Error 1 make[1]: Leaving directory `/private/build/cyrus-imapd-2.2.8/imap' make: *** [all] Error 1 You have common error library conflict somewhere. Most likely your openssl package is built with krb5 support which uses its own libcom_err. You can either re-build openssl without krb5 support or use libcom_err from your krb5 package to build cyrus. -- Igor --- 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: POP3 re-downloading mail
It could still be the server at fault (sorta) if the new server has different timing than the old which is resulting in client side errors which in turn result in re-download. I've seen various timing issues, etc that have caused disconnect problems as well. This really bit us once in the past where someone posted something huge to about 20 users.These users ran into trouble with the data not transfering in time or the data being too large to transfer properly over their VPN connections. That took some tracing to find out why. Increasing the server timeouts and updating some older VPN software fixed the problem, but those users ran into the redownload the world problem rather badly. "Michael Nguyen" made the following keystrokes: >- Original Message - >From: "Gene Rackow" <[EMAIL PROTECTED]> > > >> I've run into this with a number of pop based clients. From what I have >> seen, the problem comes up on a client IF there was some sort of error >> that occured the previous time that client ran. For example, the >> client for some reason disconnected in the middle of downloading a >message. >> There are 100 message on server. The last 10 were not seen by the client >> yet so it was downloading those. In the middle of message "new-9" or 99, >> an error occurred. The client now gets confused about what it has and >> the next time it downloads, it starts over at message 1. It's wrong, >> but it happens. I would not blame the server unless I had a strong >> case that it really did recalc all message UIDL. > >This is true. The most common cause of this is a client error (e.g. a user >reinstalls Outlook Express thus removing the list of UIDs). However, >Warrick's issue was that quite a few users were re-downloading email. I >don't know how many users this really is, but if he's talking dozens of >users, it's far more likely that it had to do with the new server than >anything else. > >[snip] > > >Michael > >--- >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 > --- 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 + LDAP Suggestions/Help
On Mon, 8 Nov 2004, Michael Nguyen wrote: From: "Igor Brezac" <[EMAIL PROTECTED]> On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] Nov 8 11:38:03 dev2 saslauthd[4679]: Retrying authentication Nov 8 11:38:03 dev2 saslauthd[4679]: do_auth : auth failure: [user=michaeln] [service=pop] [realm=] [mech=ldap] [reason=Unknown] Nov 8 11:38:03 dev2 pop3[4691]: badlogin: localhost.localdomain [127.0.0.1] plaintext michaeln SASL(-13): authentication failure: checkpass failed You should get more messages in the syslog from saslauthd. Can you double check? I double checked. This is definitely all I'm getting. I have a few more of the first two lines (the retrying authentication) but I think that that's from trying it a few times. OK. You need to setup syslog severity level for auth facility to debug. This will give you a few more messages in the syslog. Can you debug your ldap server and what is going on? -- Igor --- 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 + LDAP Suggestions/Help
From: "Igor Brezac" <[EMAIL PROTECTED]> > > On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] > OK. You need to setup syslog severity level for auth facility to debug. > This will give you a few more messages in the syslog. Igor, I want to first thank you for all of your help and direction. The debug logs pointed me in the right direction and I can now authenticate: testsaslauthd -u michaeln -p password2 -f /var/run/saslauthd/mux/mux 0: OK "Success." However, I'm having trouble getting Cyrus to find the location of the maildir. I have Postfix setup with LDAP routing. The LDAP entry for the above test user is as follows: # [EMAIL PROTECTED], dev2, test, spam dn: [EMAIL PROTECTED],dc=dev2,dc=test,dc=spam objectClass: top objectClass: MailAccount accountStatus: TRUE uid: 1000 userName: michaeln mail: [EMAIL PROTECTED] mailMessageStore: m.sub/i.sub/michaeln.macnt/ mailHost: dev2.test.spam clearPassword: password2 userPassword:: cGFzc3dvcmQy Postfix is working such that the mail store for [EMAIL PROTECTED] is /var/Accounts/m.sub/i.sub/michaeln.macnt/ How do I get Cyrus to "know" what directory to look in for this user's mail? I'm looking at the imapd.conf man page and I don't see a value that matches. I'm really close! Michael --- 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: POP3 re-downloading mail
Warrick FitzGerald wrote: Hi All, I recently switched from an ASP mail provider to hosting a Cyrus + Postfix combo. Some of my users are complaining that Outlook keeps re-downloading the same emails. They are using POP3 and have outlook set to leave messages on the server. Is it possible that Outlook got confused with the mail server change and now somehow can not figure out that it's downloaded emial that's have already been downloaded? If I'm not mistaken, this problem has been discussed serveral times and has been traced to the fact that Outlook doesn't like the UIDs return by Cyrus. Since the UIDs returned are completely legal per RFC 1939, we have no plans to fix them. I have not verified that this is indeed the problem, I'm just going from memory. -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- 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: lmtp versus deliver
Philip Chambers wrote: On Fri, 05 Nov 2004 15:00:34 -0500 Ken Murchison <[EMAIL PROTECTED]> wrote: Philip Chambers wrote: This is cyrus-imap.2.2.8 with exim-4.41: I had been using lmtp to do normal deliveries but deliver to deliver to specific folders (as for spam being diverted to a spam-folder. I noticed in my exim logs that at busy times I was getting a few failures from the deliver program (logged as error code 75 or 65 by exim). Can someone tell me what these two codes mean? On reflection I thought that I might be able to use lmtp to deliver to specific folders instead by using "[EMAIL PROTECTED]" as the address. I tried this and it worked. An advantage of this is the benefit of multiple deliveries in one go. However, I have now found a difference which it would be nice to remove: Using deliver to deliver to "user.folder", if the folder does not exist, it delivers to the user's inbox. Using lmpt, if the folder does not exist, it rejects the message. Is it possible to get lmtp to deliver to the inbox if the specified folder does not exist? Either I'm confused or you're using the incorrect syntax. To deliver to a user-specific folder via LMTP, the address should be [EMAIL PROTECTED] If the folder doesn't exist (or doesn't allow posting by the [un]authenticated user, then the message *will* go to the user's INBOX. Thanks for that information, as you say, using plus as the separator delivers to the folder if there is a suitable acl or to the inbox if not. Using a dot to separate the username and foldername certainly works and the delivery takes place without any acl on the folder. Hmm, its probably because you are running deliver as the recipient user and the mailbox name is taken literally (as the internal name). -- Kenneth Murchison Oceana Matrix Ltd. Software Engineer 21 Princeton Place 716-662-8973 x26 Orchard Park, NY 14127 --PGP Public Key--http://www.oceana.com/~ken/ksm.pgp --- 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 + LDAP Suggestions/Help
On Mon, 8 Nov 2004, Michael Nguyen wrote: From: "Igor Brezac" <[EMAIL PROTECTED]> On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] OK. You need to setup syslog severity level for auth facility to debug. This will give you a few more messages in the syslog. Igor, I want to first thank you for all of your help and direction. The debug logs pointed me in the right direction and I can now authenticate: testsaslauthd -u michaeln -p password2 -f /var/run/saslauthd/mux/mux 0: OK "Success." However, I'm having trouble getting Cyrus to find the location of the maildir. I have Postfix setup with LDAP routing. The LDAP entry for the above test user is as follows: # [EMAIL PROTECTED], dev2, test, spam dn: [EMAIL PROTECTED],dc=dev2,dc=test,dc=spam objectClass: top objectClass: MailAccount accountStatus: TRUE uid: 1000 userName: michaeln mail: [EMAIL PROTECTED] mailMessageStore: m.sub/i.sub/michaeln.macnt/ mailHost: dev2.test.spam clearPassword: password2 userPassword:: cGFzc3dvcmQy Postfix is working such that the mail store for [EMAIL PROTECTED] is /var/Accounts/m.sub/i.sub/michaeln.macnt/ postfix must not be used as an MDA (mail delivery agent) when used with cyrus. Setup postfix for lmtp. See postfix docs. How do I get Cyrus to "know" what directory to look in for this user's mail? I'm looking at the imapd.conf man page and I don't see a value that matches. You do not need to know this information. Cyrus (via lmtp) will 'drop' messages to the appropriate location on the file system. If you really want to know where the physical location of each mailbox is use 'mbpath' utility. (Do not try to change user's mailbox manually because more than likely you will corrupt the mailbox) -- Igor --- 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 + LDAP Suggestions/Help
From: "Igor Brezac" <[EMAIL PROTECTED]> > On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] > > Postfix is working such that the mail store for [EMAIL PROTECTED] is > > /var/Accounts/m.sub/i.sub/michaeln.macnt/ > > postfix must not be used as an MDA (mail delivery agent) when used with > cyrus. Setup postfix for lmtp. See postfix docs. HmmI considered doing this. I guess I'll have to try it. > > How do I get Cyrus to "know" what directory to look in for this user's mail? > > I'm looking at the imapd.conf man page and I don't see a value that matches. > > > > You do not need to know this information. Cyrus (via lmtp) will 'drop' > messages to the appropriate location on the file system. If you really > want to know where the physical location of each mailbox is use 'mbpath' > utility. (Do not try to change user's mailbox manually because more than > likely you will corrupt the mailbox) Hmm...well, I probably should try it before saying anything, but my only thought is that I wanted to control mailbox location via LDAP to facilitate user migration (which is an inevitable issue). This might work, but do I have any other options? Being able to re-route a user's mail to another server + directory with a mere LDAP change was something that was going to be very useful. What happens if I were to change another attribute of the user (e.g. the username)? This is also a fairly common procedure. How would that affect delivery? The the Postfix + LDAP delivery scheme, a user's username is completely irrelevant. Mail for that user goes exactly where we want it to. All of these questions relate to support and scalability. I sort of fear the scenario of "Well, where did the mail go?" "I don't know...where ever Cyrus thought it should go." I'll try it out and we'll see, but if there's a good answer to my concerns, I'd love to hear them. Michael --- 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 + LDAP Suggestions/Help
On Mon, 8 Nov 2004, Michael Nguyen wrote: From: "Igor Brezac" <[EMAIL PROTECTED]> On Mon, 8 Nov 2004, Michael Nguyen wrote: [snip] Postfix is working such that the mail store for [EMAIL PROTECTED] is /var/Accounts/m.sub/i.sub/michaeln.macnt/ postfix must not be used as an MDA (mail delivery agent) when used with cyrus. Setup postfix for lmtp. See postfix docs. HmmI considered doing this. I guess I'll have to try it. How do I get Cyrus to "know" what directory to look in for this user's mail? I'm looking at the imapd.conf man page and I don't see a value that matches. You do not need to know this information. Cyrus (via lmtp) will 'drop' messages to the appropriate location on the file system. If you really want to know where the physical location of each mailbox is use 'mbpath' utility. (Do not try to change user's mailbox manually because more than likely you will corrupt the mailbox) Hmm...well, I probably should try it before saying anything, but my only thought is that I wanted to control mailbox location via LDAP to facilitate user migration (which is an inevitable issue). This might work, but do I have any other options? Being able to re-route a user's mail to another server + directory with a mere LDAP change was something that was going to be very useful. What happens if I were to change another attribute of the user (e.g. the username)? This is also a fairly common procedure. How would that affect delivery? The the Postfix + LDAP delivery scheme, a user's username is completely irrelevant. Mail for that user goes exactly where we want it to. All of these questions relate to support and scalability. I sort of fear the scenario of "Well, where did the mail go?" "I don't know...where ever Cyrus thought it should go." I'll try it out and we'll see, but if there's a good answer to my concerns, I'd love to hear them. I'll let others tackle this issue. I do suggest you learn cyrus internals before you proceed. Again, start with the source ($cyrus-imapd/doc)... -- Igor --- 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