Re: Installing on FreeBSD
Install on FreeBSD is very easy. cd /usr/ports/mail/cyrus-imapd make make install I think it will also install sasl port itself then u go in /usr/local/etc and configure imapd.conf and cyrus.conf for your local needs, very easy and it works with no problems. Rick On Tue, 3 Jul 2001, Louis LeBlanc wrote: Hey all. I have Cyrus imapd 1.6.24 running on a RH 6.2 linux box, and it has done quite well since just after the 1.6.24 release. No complaints whatsoever. Install was complicated, but well documented in the Linux HowTo, so great. Now the problem. I am switching my server to FreeBSD 4.3 and would like to upgrade to 2.0.14 - which is present in a FreeBSD port. Does anyone know where I can find install info specific to FreeBSD? I am checking out the html install info in the distribution, and it notes a couple Linux specific steps, but . . . Any and all help is appreciated. TIA Lou -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ
Re: Installing on FreeBSD
Hi, My experience is just the oppersite: FreeBSD 4.3, Cyrus 2.0.12 from /usr/ports/mail/cyrus-imap /usr/local/etc/imapd.conf edited with sasl_pwcheck: pam I've also tried PAM. /etc/pam.conf with imap auth required /usr/local/lib/pam_mysql.so user=. and same for pop3 But nothing authenticates. When I tried imtest I found the thing replies that there's no authentification mechaism. So I investigate find that the Makefile has a single auth option listed --with-auth=unix ...arr ah! I think, so I've tried a --with-auth=pam to which it it seems to make all in man, et, sieve, acap, and lib before eventually saying don't know how to make auth_pam.o. Stop Could you possibly please let me know how you've got pam working on your cyrus??
Installing on FreeBSD
Hey all. I have Cyrus imapd 1.6.24 running on a RH 6.2 linux box, and it has done quite well since just after the 1.6.24 release. No complaints whatsoever. Install was complicated, but well documented in the Linux HowTo, so great. Now the problem. I am switching my server to FreeBSD 4.3 and would like to upgrade to 2.0.14 - which is present in a FreeBSD port. Does anyone know where I can find install info specific to FreeBSD? I am checking out the html install info in the distribution, and it notes a couple Linux specific steps, but . . . Any and all help is appreciated. TIA Lou -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ
Re: Installing on FreeBSD
It's fairly straightforward. I recommend this set of steps: 1. Install the db3 port. Just do that in the ordinary way. 2. Search the archives of this list for the SASL pwcheck_pam.c file. When you build the cyrus-sasl port, you want to modify the build so that pwcheck uses this file. 3. Modify /etc/pam.conf to add entries for the 'cyrus' service to use whichever PAM functionality you desire (at this point you have the option of adding other pam module ports if you wish, such as pam_smb). 4. Install the cyrus-imap port in the usual manner. You don't need to add any options. 5. Make yourself an /etc/mail/_.mc file. Do this by copying the sendmail.mc file and modifying it to taste. One thing you will need to do is this: FEATURE(local_lmtp)dnl define(`confLOCAL_MAILER',`cyrus')dnl MAILER(smtp)dnl MAILER_DEFINITIONS McyrusP=[IPC], F=lsSDFMngA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,U=cyrus:cyrus, A=FILE /var/imap/socket/lmtp The MAILER_DEFINITION should be salted to taste. The A argument should be set to wherever the lmtp socket lives, as defined by cyrus.conf, and the rest of the arguments should shadow the normal SMTP mailer definition for the most part. You may wish to modify the mc file in other ways (for example, adding cyrus-sasl may make it desirable to add sasl authentication to sendmail for authenticated SMTP), but such mods are outside the scope of this document. When you're done, make .cf and test it, copying it to sendmail.cf if it works. Then 'make restart' to restart sendmail. That ought to do it. Louis LeBlanc wrote: Hey all. I have Cyrus imapd 1.6.24 running on a RH 6.2 linux box, and it has done quite well since just after the 1.6.24 release. No complaints whatsoever. Install was complicated, but well documented in the Linux HowTo, so great. Now the problem. I am switching my server to FreeBSD 4.3 and would like to upgrade to 2.0.14 - which is present in a FreeBSD port. Does anyone know where I can find install info specific to FreeBSD? I am checking out the html install info in the distribution, and it notes a couple Linux specific steps, but . . . Any and all help is appreciated. TIA Lou
Re: Installing on FreeBSD
Joe Talbott wrote: Louis LeBlanc wrote: Hey all. I have Cyrus imapd 1.6.24 running on a RH 6.2 linux box, and it has done quite well since just after the 1.6.24 release. No complaints whatsoever. Install was complicated, but well documented in the Linux HowTo, so great. Now the problem. I am switching my server to FreeBSD 4.3 and would like to upgrade to 2.0.14 - which is present in a FreeBSD port. Does anyone know where I can find install info specific to FreeBSD? I am checking out the html install info in the distribution, and it notes a couple Linux specific steps, but . . . Any and all help is appreciated. Here are the steps I took to install on FreeBSD 4.3-STABLE cd /usr/ports/mail/cyrus-imapd/ sudo make clean sudo make sudo make install # edited imapd.conf, added 'root' and 'cyrus' as admins, added tls-cert and key sudo vi /usr/local/etc/imapd.conf forgot this: # run mkimap perl script to create directories and set permissions sudo /usr/local/cyrus/bin/mkimap # configured sendmail to deliver to cyrus # there's a sample file in the docs directory # created openssl cert and key sudo openssl req -new -x509 -nodes -out /var/imap/server.pem -keyout /var/imap/server.pem -days 365 # mv /usr/local/etc/rc.d/imapd.sh.sample to imapd.sh # test ssl imtest -t -a cyrus localhost # created mailbox cyradm -user cyrus localhost localhost cm user.josepht localhost quit # added sieve to inetd.conf sieve stream tcp nowait cyrus /usr/local/cyrus/bin/timsieved timsieve d # use sieveshell to manage sieve scripts sieveshell -u josepht localhost put /home/josepht/sieve_test.script activate sieve_test quit -- J o e T a l b o t t| I choose to believe OSS Engineer - Cornerstone Networks | what I was programmed An Ntelos Communications Company | to believe. [EMAIL PROTECTED] - 804-817-7000 | -Futurama
What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)
Thanks for the pointers Joe. This seems to be along the lines I went, but I am running into a hitch with the test: # cyradm -user cyrus localhost Jul 3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting Jul 3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting IMAP Password: Broken pipe Hmm. I looked in the source for a CYRUS_SERVICE tag, and found that it is limited to the master code. That process reads the /usr/local/etc/cyrus.conf file, right? I do have this file, and I made only minor mods (comment out the POP stuff). I already had the cert and a starting point for a sendmail.mc file (I am piping through procmail, which then calls deliver), so I have half the battle won, but this doesn't seem to work quite right. pwcheck is working: # ps -ax | grep pwcheck 302 ?? Is 0:00.00 /usr/local/sbin/pwcheck as is master: # ps -ax | grep master 286 con- I 0:00.10 /usr/local/cyrus/bin/master Maybe this is a clue? # imtest -t -a cyrus localhost C: C01 CAPABILITY failure: prot layer failure bash-2.05# Jul 3 17:06:14 acadia imapd: could not getenv(CYRUS_SERVICE); exiting Jul 3 17:06:14 acadia imapd: could not getenv(CYRUS_SERVICE); exiting Maybe not. Any ideas? Thanks a million. Lou On 07/03/01 03:23 PM, Joe Talbott sat at the `puter and typed: Louis LeBlanc wrote: snipped Here are the steps I took to install on FreeBSD 4.3-STABLE cd /usr/ports/mail/cyrus-imapd/ sudo make clean sudo make sudo make install # edited imapd.conf, added 'root' and 'cyrus' as admins, added tls-cert and key sudo vi /usr/local/etc/imapd.conf # configured sendmail to deliver to cyrus # there's a sample file in the docs directory # created openssl cert and key sudo openssl req -new -x509 -nodes -out /var/imap/server.pem -keyout /var/imap/server.pem -days 365 # mv /usr/local/etc/rc.d/imapd.sh.sample to imapd.sh # test ssl imtest -t -a cyrus localhost # created mailbox cyradm -user cyrus localhost localhost cm user.josepht localhost quit # added sieve to inetd.conf sieve stream tcp nowait cyrus /usr/local/cyrus/bin/timsieved timsieve d # use sieveshell to manage sieve scripts sieveshell -u josepht localhost put /home/josepht/sieve_test.script activate sieve_test quit Good Luck, Joe -- J o e T a l b o t t| I choose to believe OSS Engineer - Cornerstone Networks | what I was programmed An Ntelos Communications Company | to believe. [EMAIL PROTECTED] - 804-817-7000 | -Futurama -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ
Re: Installing on FreeBSD
On 07/03/01 05:07 PM, Joe Talbott sat at the `puter and typed: Joe Talbott wrote: bunch of trimming forgot this: # run mkimap perl script to create directories and set permissions sudo /usr/local/cyrus/bin/mkimap bunch of trimming Of course. I think this is that step that most people actually remember to do and always forget to talk about it :) I did remember this one by the way. L -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ
Re: Installing on FreeBSD
Thanks for the info Nick. I had no problems with db3 or SASL, and I already have a pretty clean sendmail config that will pipe messages through procmail - which then calls deliver. Makes for a much more dynamic and flexible mail filtering system. As for the PAM stuff, I was really planning to use pwcheck in its usual manner. I have had very good luck with this on 1.6.24 and would like to change as little as possible going to my new server (I'm already changing the OS *and* the imapd version!). Thanks for your response. Lou On 07/03/01 01:45 PM, Nick Sayer sat at the `puter and typed: It's fairly straightforward. I recommend this set of steps: 1. Install the db3 port. Just do that in the ordinary way. 2. Search the archives of this list for the SASL pwcheck_pam.c file. When you build the cyrus-sasl port, you want to modify the build so that pwcheck uses this file. 3. Modify /etc/pam.conf to add entries for the 'cyrus' service to use whichever PAM functionality you desire (at this point you have the option of adding other pam module ports if you wish, such as pam_smb). 4. Install the cyrus-imap port in the usual manner. You don't need to add any options. 5. Make yourself an /etc/mail/_.mc file. Do this by copying the sendmail.mc file and modifying it to taste. One thing you will need to do is this: FEATURE(local_lmtp)dnl define(`confLOCAL_MAILER',`cyrus')dnl MAILER(smtp)dnl MAILER_DEFINITIONS McyrusP=[IPC], F=lsSDFMngA@/:|SmXz, E=\r\n, S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,U=cyrus:cyrus, A=FILE /var/imap/socket/lmtp The MAILER_DEFINITION should be salted to taste. The A argument should be set to wherever the lmtp socket lives, as defined by cyrus.conf, and the rest of the arguments should shadow the normal SMTP mailer definition for the most part. You may wish to modify the mc file in other ways (for example, adding cyrus-sasl may make it desirable to add sasl authentication to sendmail for authenticated SMTP), but such mods are outside the scope of this document. When you're done, make .cf and test it, copying it to sendmail.cf if it works. Then 'make restart' to restart sendmail. That ought to do it. Louis LeBlanc wrote: Hey all. I have Cyrus imapd 1.6.24 running on a RH 6.2 linux box, and it has done quite well since just after the 1.6.24 release. No complaints whatsoever. Install was complicated, but well documented in the Linux HowTo, so great. Now the problem. I am switching my server to FreeBSD 4.3 and would like to upgrade to 2.0.14 - which is present in a FreeBSD port. Does anyone know where I can find install info specific to FreeBSD? I am checking out the html install info in the distribution, and it notes a couple Linux specific steps, but . . . Any and all help is appreciated. TIA Lou -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ
Re: Installing on FreeBSD
Hi, On Tue, 03 Jul 2001 15:23:46 -0400 Joe Talbott [EMAIL PROTECTED] said: josepht Here are the steps I took to install on FreeBSD 4.3-STABLE There are requests that someone wish to have spool directory in another place than default. So, current cyrus-imapd port doesn't create spool automatically. You'll see the following message at the end of install, instead. To setup mail spool, modify /usr/local/etc/imapd.conf appropriately, then run /usr/local/cyrus/bin/mkimap. josepht cd /usr/ports/mail/cyrus-imapd/ josepht sudo make clean josepht sudo make josepht sudo make install josepht # edited imapd.conf, added 'root' and 'cyrus' as admins, added tls-cert josepht and key josepht sudo vi /usr/local/etc/imapd.conf You need to run /usr/local/cyrus/bin/mkimap here. josepht # configured sendmail to deliver to cyrus josepht # there's a sample file in the docs directory -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan [EMAIL PROTECTED] [EMAIL PROTECTED] ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/
Re: What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)
On 07/03/01 08:07 PM, Ken Murchison sat at the `puter and typed: SNIP Take a look at your [x]inetd.conf file and make sure there aren't any entries for imap, pop3, etc. SNIP Is that a typo? 'make sure there aren't any entries for imap, pop3, etc'??? What about sieve? Thanks Lou -- Louis LeBlanc Fully Funded Hobbyist, KeySlapper Extrordinaire :) [EMAIL PROTECTED] http://acadia.ne.mediaone.netԿԬ