How to get FUD working
I have searched all the archives for info on FUD and am not finding much. The only fud-client I find is in the contrib directory and is fud-client.c. How would I go about building fud-client? I am trying to run fud from xinetd following a post I saw and the server does not appear to be listening on 4201. Any help would be appreciated. TIA, Brad --- 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 with multiple domains
Hi everyone, I have been using cyrus-imapd-2.1.12 with multiple domains for a while now with great success. Instead of an /etc/imapd.conf I have an /etc/cyrus.conf and then an /etc/cyrus directory where I have domain1.com.conf, domain2.com.conf etc, each with their own IP address. I am now setting up a new server and installed it with all of the latest and greatest software versions including cyrus-imapd-2.2.8. It compiled fine and I configured everything the same as the old server. When I run '/usr/cyrus/bin/master &' it crashes and the log file shows the following error: can't open configuration file /etc/imapd.conf: No such file or directory On the old system cyrus.conf replaces imapd.conf but this new system does not seem to like that. Did something change with version 2.2.8 that is causing this? The only other possibility that I can think of is this is still in a test environment and DNS is not set up for the domains, but I have hard-coded them in /etc/hosts (though there is no reverse DNS). Any help would be great...I really don't want to backtrack to a 2.1 version. TIA, Brad --- 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 with multiple domains
Hi everyone, I have been using cyrus-imapd-2.1.12 with multiple domains for a while now with great success. Instead of an /etc/imapd.conf I have an /etc/cyrus.conf and then an /etc/cyrus directory where I have domain1.com.conf, domain2.com.conf etc, each with their own IP address. I am now setting up a new server and installed it with all of the latest and greatest software versions including cyrus-imapd-2.2.8. It compiled fine and I configured everything the same as the old server. When I run '/usr/cyrus/bin/master &' it crashes and the log file shows the following error: can't open configuration file /etc/imapd.conf: No such file or directory On the old system cyrus.conf replaces imapd.conf but this new system does not seem to like that. Did something change with version 2.2.8 that is causing this? The only other possibility that I can think of is this is still in a test environment and DNS is not set up for the domains, but I have hard-coded them in /etc/hosts (though there is no reverse DNS). Any help would be great...I really don't want to backtrack to a 2.1 version. TIA, Brad --- 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 to replace UW?
I have a Red Hat 9 mail server running UW imap and I find that mail retrieval from both Windows and Linux email clients is very slow, even to the extent that the email client sometimes times out waiting for the imap server to respond. I have heard that the Cyrus imap server is somewhat faster and was wondering if replacing the UW imap server with the Cyrus server would solve my problem. Has anyone had an experience with this? I am fairly new at this so any help would be appreciated. Regards, Brad
Re: Cyrus to replace UW?
Thanks for your reply Jason. I will look into it, although from your description it may be a bit beyond me. I wonder if Linux will ever be ready for the masses? It is still way too technical for the average user. However, I'll have a go. ;-) Cheers, Brad On Monday 28 July 2003 14:53, you wrote: > > I have a Red Hat 9 mail server running UW imap and I find that mail > > retrieval from both Windows and Linux email clients is very slow, even to > > the extent that the email client sometimes times out waiting for the imap > > server to respond. > > I regularly open 20,000+ message mailboxes with pine against cyrus. This > generally takes <2 seconds to open for me. "Normal" size mailboxes don't > take any perceivable time at all to open. Your mileage may vary with > windows clients, as they typically want to download all the headers - > however, they won't be stalled on the server end scanning > /var/mail/lusername. > > > I have heard that the Cyrus imap server is somewhat faster and was > > wondering if replacing the UW imap server with the Cyrus server would > > solve my problem. > > It might. The road there is long though. If you are a do-it-yourselfer > who doesnt' mind getting dirty, reading *docs*, etc, you'll find that > cyrus is way way worth setting up from a performance and security point of > view. I won't say setting up cyrus was easy for me though. Persistance, > use of docs, use of the web search features of your favorite search > engine, etc all pay off big dividends.
mysql auxprop plugin problem
Hi all, I am trying to get cyrus up and going on fc3 with postfix and mysql. I am using the MySQL-server-4.1.7-0 rpm's from mysql.org. I also built and installed MySQL-shared-compat for other dependencies. My cyrus rpm's are cyrus-sasl-2.1.19-3, cyrus-sasl-md5-2.1.19-3, cyrus-sasl- plain-2.1.19-3, cyrus-sasl-devel-2.1.19-3, cyrus-sasl-sql-2.1.19-3, cyrus-imapd-2.2.10-1.fc3, cyrus-imapd-utils-2.2.10-3.fc3, and cyrus- imapd-devel-2.2.10-1.fc3. I built the sasl rpm's from source rpm's and included --enable-sql. When I start cyrus-imap I get the following errors in /var/log/messages: perl: unable to dlopen /usr/lib/sasl2/libsql.so.2: /usr/lib/sasl2/libsql.so.2: undefined symbol: compress Dec 17 10:58:41 mybox pop[20869]: SQL engine 'mysql' not supported Dec 17 10:58:41 mybox pop[20869]: auxpropfunc error no mechanism available and the same errors for IMAP. I followed some other posts that suggest it's a problem with not having zlib but I have zlib-1.2.1.2-1 and zlib- devel-1.2.1.2-1 installed. Here is a snippet from my imapd.conf: admins: root, cyrus allowanonymouslogin: no sasl_pwcheck_method: auxprop sasl_sql_engine: mysql sasl_sql_database: mail sasl_sql_select: SELECT password FROM accountuser WHERE username = '%u' and domain_name = '%r' auxprop_plugin: mysql sasl_sql_verbose: yes sasl_mech_list: PLAIN allowplaintext: yes sievedir: /usr/sieve sendmail: /usr/sbin/sendmail sieve_maxscriptsize: 32 sieve_maxscripts: 5 sasl_sql_user: mail sasl_sql_passwd: password sasl_sql_hostnames: localhost imapidresponse: no quotawarn: 90 Any help is appreciated. Thanks, Brad --- 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: mysql auxprop plugin problem
On Fri, 2004-12-17 at 12:07 -0600, Brad wrote: > Hi all, > > I am trying to get cyrus up and going on fc3 with postfix and mysql. I > am using the MySQL-server-4.1.7-0 rpm's from mysql.org. I also built > and installed MySQL-shared-compat for other dependencies. My cyrus > rpm's are cyrus-sasl-2.1.19-3, cyrus-sasl-md5-2.1.19-3, cyrus-sasl- > plain-2.1.19-3, cyrus-sasl-devel-2.1.19-3, cyrus-sasl-sql-2.1.19-3, > cyrus-imapd-2.2.10-1.fc3, cyrus-imapd-utils-2.2.10-3.fc3, and cyrus- > imapd-devel-2.2.10-1.fc3. I built the sasl rpm's from source rpm's and > included --enable-sql. When I start cyrus-imap I get the following > errors in /var/log/messages: > > perl: unable to > dlopen /usr/lib/sasl2/libsql.so.2: /usr/lib/sasl2/libsql.so.2: undefined > symbol: compress > > Dec 17 10:58:41 mybox pop[20869]: SQL engine 'mysql' not supported > Dec 17 10:58:41 mybox pop[20869]: auxpropfunc error no mechanism > available > > Any help is appreciated. > > Thanks, > > Brad > Does anyone know what perl is looking for in order to open the mysql plugin? I have zlib and zlib-devel as well as Compress::Zlib. Any clues? Thanks, Brad --- 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
Virtual Domain problem
I am trying to set up Postfix, Cyrus and MySQL to handle virtual domains. I have a way that works OK using separate Cyrus configs for each domain and running multiple instances of each Cyrus service. The problem with that is I am left using procmail to filter out mail by domain and hand to deliver with the -C option. Bcc does not play well with procmail. So I am changing this setup to have Postfix deliver directly to Cyrus and trying to get Cyrus going with virtual domains. I prefer the separate IP for each domain method as I don't want to make users log in with fully qualified email address. Every time I log into pop and enter user/pass, my mysql logs show a query for the default domain. My mysql setup is pretty much the setup used in web-cyradm. I am trying this with both cyrus-imapd-2.1.12 and cyrus-imapd-2.2.10. Can anyone see why Cyrus is not passing the correct domain name to the SQL auxprop plugin? Here are clips of my configs: ---imapd.conf--- configdirectory: /var/imap/domain1.com partition-default: /var/spool/imap/domain1.com servername: domain1.com admins: root, cyrus allowanonymouslogin: no sasl_pwcheck_method: auxprop sasl_sql_engine: mysql sasl_sql_database: mail sasl_sql_select: SELECT password FROM accountuser WHERE username = '%u' and domain_name = '%r' auxprop_plugin: mysql sasl_mech_list: PLAIN allowplaintext: yes sievedir: /usr/sieve sendmail: /usr/sbin/sendmail sieve_maxscriptsize: 32 sieve_maxscripts: 5 sasl_sql_user: user sasl_sql_passwd: pass sasl_sql_hostnames: localhost sasl_sql_verbose: yes imapidresponse: no quotawarn: 90 virtdomains: yes partition-domain2: /var/spool/imap/domain2.com configdirectory-domain2: /var/imap/domain2.com servername-bandk: domain2.com defaultdomain: default unixhierarchysep: yes --- ---cyrus.conf--- START { mboxlist cmd="ctl_cyrusdb -r" prefork=5 delivercmd="ctl_cyrusdb } SERVICES { imapd cmd="imapd" listen="imap" prefork=1 pop3cmd="pop3d" listen="pop3" prefork=1 } EVENTS { checkpoint cmd="ctl_cyrusdb -c" period=30 } --- ---/etc/hosts--- 127.0.0.1 morpheus localhost.localdomain localhost xxx.xxx.xxx.47mail.domain1.com xxx.xxx.xxx.47domain1.com xxx.xxx.xxx.50mail.domain2.com Thanks, Brad -- --- 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
Managing mailboxes in virtual setup
I have cyrus running in a virtual setup where my mailboxes file has entries like: domain1.com!user.test default [EMAIL PROTECTED] lrswipcda cyrus lrswipcda domain2.com!user.test default [EMAIL PROTECTED] lrswipcda cyrus lrswipcda Before moving to the virtual setup I could easily run quota or reconstruct on an individual mailbox, but now I am not sure how to. When I run 'quota [EMAIL PROTECTED]' I just get the headers of the columns but no data. Likewise with reconstruct, which I really need to be able to do to individual mailboxes. TIA, Brad --- 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: Mistake while setting up mailbox
On Thu, 2005-08-18 at 14:41 +0200, Nikola Milutinovic wrote: > >I tzried to delete the accidentally created mailbox but > > > >sam username cyrus cd > > > >causes an I/O error. > > > > > > This sounds bad. Have you tried to manually delete the mailbox? That > would have caused this. Anyway, the sequence is correct: > > cyradm> sam username cyrus c > cyradm> dm username > > I've done this several times already :-) and it works. Anotehr option is > (before you create a correct one) to rename the mailbox, but do not > forget teh ACLs. > > Nix. > If this all still fails you will need to use ctl_mboxlist as the cyrus user to remove the mailbox from mailboxes.db. You can then just delete the mailbox directory and the mailbox is gone. cp mailboxes.db mailboxes.db.bak ctl_mboxlist -d > tempfile edit tempfile and remove bad mailbox line rm mailboxes.db ctl_mboxlist -u < tempfile Hope that helps, Brad 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-imapd virtual domains
On Thu, 2005-08-18 at 15:23 -0400, Jesus Ruiz wrote: > Hello, i'm trying to configure a cyrus-imapd server to server virtual > domains. I have several mail customers with their own domain. I wonder > if there is a way to make cyrus authenticate all the users from any > domain only with their username not using [EMAIL PROTECTED] > > I have read that cyrus have a default domain, and the users from this > domain don't need to log using [EMAIL PROTECTED] > > If there is way to do this, can someone please send me suggested > readings to make this work with sendmail. > > Thank you very much If you don't supply a domain when you log in, then Cyrus should reverse the IP that the request came in on and use that as the domain to auth from. You can either put every domain on a separate IP and nobody would need their domain, or you can put it all on one IP and have that IP reverse to the domain you don't want to have to log in fully-qualified on. Hope that helps, Brad Crotchett 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 virtual domains
On Wed, 2005-08-31 at 16:37 -0400, Jesus Ruiz wrote: > Hi, i just managed to make work cyrus-imapd with cyrus-sasl and ldap. > > The problem i have is that when i try to create a virtual users in the > i get : > > createmailbox: Invalid mailbox name > i'm trying to create the mailbox like this. > cm [EMAIL PROTECTED] > What does your 'admins:' line in /etc/imapd.conf look like and how are you logging into cyradm? Brad 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 virtual domains
Try adding [EMAIL PROTECTED] to the admins line of imapd.conf and then log into cyradm as [EMAIL PROTECTED] Brad On Wed, 2005-08-31 at 18:00 -0400, Jesus Ruiz wrote: > my admins look like: > admins: cyrus > > and i'm logging into cyradm like this: > cyradm -u cyrus localhost > > Jesus > > On 8/31/05, brad <[EMAIL PROTECTED]> wrote: > On Wed, 2005-08-31 at 16:37 -0400, Jesus Ruiz wrote: > > Hi, i just managed to make work cyrus-imapd with cyrus-sasl > and ldap. > > > > The problem i have is that when i try to create a virtual > users in the > > i get : > > > > createmailbox: Invalid mailbox name > > i'm trying to create the mailbox like this. > > cm [EMAIL PROTECTED] > > > > What does your 'admins:' line in /etc/imapd.conf look like and > how are > you logging into cyradm? > > Brad > > > 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: How to export data from mailboxes.db
As the cyrus user run: ctl_mboxlist -d > filename 'filename' will now be a text file listing the mailboxes. You can directly edit this file. When you are done making changes to it you can re-import it with: ctl_mboxlist -u < filename You will want to move the mailboxes.db out of the way before importing the text file: mv mailboxes.db mailboxes.db.bak the import command mentioned earlier adds to the mailboxes.db, it does not overwrite mailboxes.db. Hope that helps, Brad On Thu, 2005-09-01 at 11:42 -0500, Saltmarsh, Evan M wrote: > Does anyone know how to export the data in the mailboxes.db to a flat > text file that can be used for importing? > > > > Evan Saltmarsh > > UNIX Systems Administrator > > Information Technology Services > > Vanderbilt University > > Office: (615) 322-2156 > > Cell: (615) 491-4115 > > > > > > 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: SQUAT failed and loglevel issue
On Tue, 2005-09-20 at 12:33 +0300, [EMAIL PROTECTED] wrote: > Hello All, > > I keep getting these kind of messages in my logs, when using horde IMP > with Cyrus-IMAP server. > > Sep 20 12:06:24 mail imap[19540]: SQUAT failed to open index file > Sep 20 12:06:24 mail imap[19540]: SQUAT failed > As the cyrus user run 'squatter'. Thanks, Brad 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: High-Availability IMAP server
On Tue, 2005-09-27 at 08:51 +0800, Ow Mun Heng wrote: > On Mon, 2005-09-26 at 10:03 -0700, Aaron Glenn wrote: > > On 9/26/05, David <[EMAIL PROTECTED]> wrote: > > > Is there any way to achieve this goal using cyrus? Which is the best > > > approach > > > to this scenario? Run daily imapsync via cron and a Load Balancer forward > > > the > > > requests to the active one? > > > > > > Any help would be appreciated. > > > > There is replication code in the 2.3 branch; though from what I can > > tell it hasn't been touched in a few months and makes me wonder if > > it's being actively developed still. Nevertheless, in my exhaustive > > search for any and all information on IMAP replication, I came across > > a few list posts detailing the 2.3 replication code in production, > > without many issues, for over a year. > > > > I would be eternally grateful if someone on the list more > > knowledgeable detailed their experiences with replication. > > > I would be very interested in this solution as well. > > I would also be interested in replication advice. Thanks, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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: High-Availability IMAP server
On Wed, 2005-09-28 at 09:02 +0100, David Carter wrote: > We use the replication engine all the time to move users back and forth > between systems so that we can patch and upgrade operating systems and/or > Cyrus without any user visible downtime. I read the documentation on replication and am interested in trying it. I have several servers that run a single domain, but are using virtdomain anyway. I would like to have one virtdomain replica server that serves as a hot spare to all of these servers. In other words server A would replicate domain A mailboxes to the replica and server B would replicate domain B to the replica. If server A fails then I could bring up the replica server for domain A but not domain B (just by not pointing domain B to the replica server). Is this possible? Thanks, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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: High-Availability IMAP server
On Wed, 2005-09-28 at 12:41 -0300, João Assad wrote: > > > I too am very interested in this replication solution. Where can I get > the src and documentation ? > > Regards, > > João Assad > This is a good start: http://www-uxsup.csx.cam.ac.uk/~dpc22/cyrus/replication.html Thanks, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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: High-Availability IMAP server
On Wed, 2005-09-28 at 13:45 -0400, Ken Murchison wrote: > I haven't tried it, but I've done nothing to purposely break replication > of virtdomains. I might give it a try and report back then. Thanks, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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 sasl realm problem
On Sat, 2005-10-01 at 13:25 +0200, Georg Gell wrote: > Hello, > > I have an old server with about 50 mail users, which uses cyrus imapd > with sasl and pam_mysql. The server settings are: > unixhierarchysep: no > virtdomains: no > > On the new server, I want users to be able to log in with their email > addresses as username, but I want to let the old users use their old > username/password combinations. So I set > unixhierarchysep: yes > virtdomains: yes > defaultdomain: servername.domainname.com > sasl_pwcheck_method: auxprop > sasl_sql_engine: mysql > sasl_sql_select: SELECT password FROM accountuser WHERE username = '[EMAIL > PROTECTED]' > ... > > This works well. But I want to migrate the old account to the new > machine. As I understand the docs, this should work, because username > without realm are used with defaultdomain as result. But this doesn't > happen for sasl authentication. > > Let's say I have user georg with password georgpass on the old server. I > thought on the new server, I would leave the mailbox on cyrus like > user/georg, and for auth in the mysql database I would just add to each > username the @servername.domainname.com, so that if the default domain > is added to the username we should be able to log in. > > But something else happens (trying to use the pop server): > If I log in from a remote computer, reading the debug log, I see that > the user is being tested with domainname.com as realm (username: > [EMAIL PROTECTED]). > But if I log in from localhost, no realm is added(username: georg). > > What I don't understand after spending much time reading the docs is this: > Who adds the realm, imapd or sasl? And why are they different depending > on the location from where I try to log in? And whatever adds the realm, > how is it decided what to use? And finally, how can I change it? > > Thanks in advance! > > Best regards > > Georg With virtdomains turned on then cyrus will use the domain sent with the username if the user logs in fully qualified. Otherwise cyrus does a reverse lookup on the IP that the user logged in on uses the domain from that lookup as the user's domain. The lookup can be either from DNS or hosts file or any other means. Hope that helps, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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 sasl realm problem
On Mon, 2005-10-03 at 15:57 +0200, Georg Gell wrote: > brad schrieb: > > With virtdomains turned on then cyrus will use the domain sent with the > > username if the user logs in fully qualified. Otherwise cyrus does a > > reverse lookup on the IP that the user logged in on uses the domain from > > that lookup as the user's domain. The lookup can be either from DNS or > > hosts file or any other means. > > > > Hope that helps, > > > Thanks for the quick reply. Sadly this is not true on my system. > trying imtest: > moritz> imtest -a georg localhost (on moritz.have2.com) > ebug.log: > Oct 3 15:46:21 [imap] sql plugin doing query SELECT password FROM > accountuser WHERE username = '[EMAIL PROTECTED]';_ > moritz.have2.com is the fqdn of my sever. > > moritz> imtest -a georg moritz.have2.com (on moritz.have2.com) > Oct 3 15:49:23 [imap] sql plugin doing query SELECT password FROM > accountuser WHERE username = '[EMAIL PROTECTED]';_ > > notebook> imtest -a georg moritz.have2.com (from home dial up) > Oct 3 15:49:23 [imap] sql plugin doing query SELECT password FROM > accountuser WHERE username = '[EMAIL PROTECTED]';_ > > Where does the realm part come from? If I connect to localhost, it uses > the server's fqdn (which is also the defaultdomain in my imapd.conf), > that's what I'd expect. If I connect from the same machine to the > external IP, I have have2.com as realm. Why? And even worse from my > dial-up ip (reverse lookup looks like dial-up-XXX.highway.telekom.at), I > have also have2.com as realm. So the realm cannot be related to the ip > of the logged in user, or am I missing something? > > Regards > > Georg I think this would be the expected behavior. It is stripping the sub- domain which IIRC is what it should do. But I am not positive why it is not stripping the sub-domain on your localhost test. Might be the way your hosts file is set up or it may not strip the sub-domain if it resolves it from the hosts file but does if it resolves it from DNS. -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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: Corrupted mail account
On Mon, 2005-10-03 at 11:25 -0400, Jason Dixon wrote: > > Where neither "Bar" folders are readable by the client. At this > point, I just want to delete them both and allow the user to recreate > their IMAP structure and upload (they POP'd all their mail to local > storage). Unfortunately, when I delete their folders and do a > reconstruct as the cyrus user, it recreates the broken structure. I > don't know much about Cyrus, but I'm guessing there's a master copy > of this information stored in db. How can I blow away this user's > mail store and rebuild? > > Thanks, > > -- > Jason Dixon > Manager, IT Services > Raba Technologies The mailboxes.db file holds the information about all users' mailboxes. You will need to use ctl_mboxlist to dump the contents of mailboxes.db to a text file. Then you can edit the text file removing the unwanted fodlers and reload it to mailboxes.db with ctl_mboxlist. Make sure you move the original (back it up first) mailboxes.db out of the way before re-loading your text file or it will just add to the mailboxes.db. Hope that helps, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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
user.sub files
We are trying to migrate a batch of users from Imail over to cyrus and are using imapsync to get the mail transferred. Even though we are using --subscribe as an imapsync option, the mailboxes are not coming in with any of the folders subscribed. We don't want every user to have to go in and subscribe to all their folders. I tried editing the user.sub file and adding a folder to the list but it still does not show up as subscribed in squirrelmail. However, if I subscribe to a folder through squirrelmail and then delete that folder from the user.sub, the folder then shows as not subscribed. Is there a trick to editing the user.sub file? It wouldn't be too painful to write a script that parses the mailboxes file and then adds all of a user's folders to their .sub file, but this isn't working for me. The only other option I am seeing is a script that logs into IMAP and issues a SUBSCRIBE for every folder in the mailboxes file. TIA, -- Brad Crotchett, RHCE [EMAIL PROTECTED] 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
sendmail, pam, saslauthd, and cyrus-imapd
Hey all, I've got a small system that I'm trying to configure using sendmail and cyrus. I want my users to exist as accounts (to support procmail scripts for my users, I hope), and I'd like to use PAM to authenticate. I'm running linux 2.4.18 on i686, sendmail 8.12.5, cyrus-imapd 2.1.11, saslauthd 2.1.10. I'm totally new to cyrus-imapd and probably a sendmail novice, too. I've gotten imapd working, at least to the point where I can log in using an IMAP client and get authenticated. There's no inbox, but I can add my own mailboxes through the IMAP client. I've run saslpasswd2 to create an account with the same user name as exists in PAM (is that the right thing to do?). I'm running 'saslauthd -a pam'. imapd.conf is set to use saslauthd as the pwcheck_method. I'm using the default cyrus.conf, and master is running. When I try to send mail to that account using sendmail, I consistently get: Jan 29 14:27:16 satchel sendmail[8093]: h0TKRGvv008093: to=<[EMAIL PROTECTED]>, delay=00:00:00, xdelay=00:00:00, mailer=cyrus, pri=90355, relay=localhost, dsn=5.1.1, stat=User unknown I'm using a more-or-less standard .mc file for sendmail: VERSIONID(`my cyrus imapd implementation') OSTYPE(linux) define(`confBIND_OPTS',`-DNSRCH -DEFNAMES') define(`confTO_IDENT',`0') define(`confLOCAL_MAILER', `cyrus') FEATURE(`accept_unresolvable_domains') dnl Just added dnl this but to of no avail. FEATURE(`nocanonify') FEATURE(`always_add_domain') MAILER(`local') MAILER(`smtp') MAILER_DEFINITIONS Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=FILE /var/imap/socket/lmtp LOCAL_RULE_0 Rbb + $+ < @ $=w . >$#cyrusbb $: $1 I worry about that last line referencing cyrusbb, if that's interfering with PAM somehow. I also worry about not using cyrusv2 as the mailer, but could find no information on how to configure it correctly. I've tried changing the above mc file to use cyrusv2, but to no avail (although somedown I don't think I need the MAILER_DEFNINITIONS or LOCAL_RULE_0 with cyrusv2). I've searched the FAQ and mailing list archives for days, and tried everything I can think of, but no luck. Anyone have any ideas? Thanks!