LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2006, 04:19 PM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Has ANYONE successfuly run Cyrus-IMAP on Slackware ?


I am very weary of following the provided howto's. I've recompiled cyrus-sasl and cyrus-imap at least 20 times. They install fine.
I am using inetd for the pop and imap services.
Then running a netsat command shows listening on 110 and 143. Every time I try the 'imtest' I get the following output :

'failure: prot layer failure'

Syslog won't tell me much other than this :
'Jun 5 10:04:11 jac3 imapd: could not getenv(CYRUS_SERVICE); exiting'

Whatever that environment variable is, I have no idea.

Here is my config for cyrus-sasl:
./configure --enable-anon --enable-plain --enable-login

Config for cyrus-imap:
./configure --with-bdb-incdir=/usr/include/db4 --disable-sieve --with-auth=unix
 
Old 06-06-2006, 08:08 PM   #2
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
My Slackware-current mail server is running:
postfix with uucp
cyrus-imap
cyrus-sasl
procmail
squirrelmail on apache1

I use the linuxpackages builds of the first two and cyrus-sasl from Slackware
 
Old 06-06-2006, 10:14 PM   #3
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks!, I'll give that setup a go. At least I know some one has done it.
 
Old 06-06-2006, 10:18 PM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
linuxpackages does not seem to have a cyrus-imap package, only a cyrus-sasl package.
 
Old 06-07-2006, 05:07 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Cyrus-sasl is part of official slackware, at least since 10.2.

I am running a Slackware 10.0 server with cyrus-sasl and cyrus-imap, and for the mail transport I use sendmail with amavisd-new plugged into it, providing virus- and spam scanning using clamav and spamassassin.
This has been running for a few years now, and with no problems at all.
I do have a cyrus-imap SlackBuild that I never published, but I can have a look at it and polish it for general use. Setting up Cyrus on Slackware should not be that difficult - setting up Sendmail with a proper virus/spam scanning is harder.

I configured my cyrus-sasl like this:
Code:
./configure --prefix=/usr \
            --localstatedir=/var
            --sysconfdir=/etc \
            --enable-static --enable-shared \
            --enable-gssapi \
            --disable-krb4 \
            --enable-login \
            --with-bdb-incdir=/usr/include/db4 \
but you might also want to look at the Slackware 10.2 SlackBuild file.

My cyrus-imap was basically configured using
Code:
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --program-prefix="" \
  --program-suffix="" \
  --enable-netscapehack \
  --enable-listext \
  --with-idle=idled \
  --disable-murder \
  --enable-nntp \
  --without-snmp \
  --with-perl=`which perl` \
  --with-cyrus-prefix=/usr/lib/cyrus-imapd \
  --with-service-path=/usr/lib/cyrus-imapd \
  --with-auth=unix \
  --with-bdb-incdir=/usr/include/db4 \
  --with-syslogfacility=MAIL \
  --with-libd=/usr/lib
Note, that it is a good thing to have Sieve. Sieve is a powerful server-side filtering language (meaning you can setup filters on the server and don't have to depend on mail client filters like you can define in Thinderbird) and you can use it for vacation messages and auto-forwarding too.

Could you post your /etc/imapd.conf and /etc/cyrus.conf perhaps?
And how exactly do you start saslauthd?

Hope this helps.

Eric
 
Old 06-07-2006, 06:26 AM   #6
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Whoops, posting when half asleep from the wrong machine problem again
My mail system is not running cyrus-imap but courier-imap

Why not use courier anyway, it is a very solid imap and pop server with support for maildirs instead of mbox stores.
 
Old 06-07-2006, 06:47 AM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Because Cyrus-IMAPd scales well, is secure, fast, and is favored in the larger (aka commercial) distributions and groupware server setups as the IMAP server of choice. It does not use mbox files, has quota support and does not require a local Linux user account for every inbox that you create (so you can set it up as a IMAP black box server in your network if you want).

Overall, I am very happy with Cyrus IMAP. Of course, for a small network with one or two users it might have too much functionality. But it does not put a high load on your server anyway.

Eric
 
Old 06-07-2006, 10:24 AM   #8
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Many thanks Alien Bob! I'm going to take your advice and try again. One thing to note is the fact that when I install cyrus-imap I do not get the /etc/cyrus.conf file. It sounds like it is needed for proper operation of the 'master' process. I also neglected to even think about saslauthd.

davidsrsb, I already do have courier running on our server, along with Open-Xchange. I see that the OX team always uses cyrus for IMAP, and I believe that there are good reasons as to why. Not to mention the reasons stated by Alien Bob. But I do appreciate your help.
 
Old 06-07-2006, 11:01 AM   #9
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Back to the original post
From the cyrus-imap faq
quote
Q: I'm getting a message about "imapd: could not getenv(CYRUS_SERVICE); exiting" in my imapd.log. What's wrong?

A: Remove all imap, pop, lmtp and sieve lines from [x]inetd.conf and restart [x]inetd. Cyrus is run out of its own "master" process.
/quote
Slackware has pop3d and imapd by default which need to be removed.
 
Old 06-07-2006, 01:13 PM   #10
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
You guys have led me to at least the point I am at. Before, I could not get 'master' to run. It was the missing '/etc/cyrus.conf' file that halted the whole works.
Now the daemon stays running, it is listening on 143, and I can get a login screen when I run 'imtest'. Now to iron out authentication.
 
Old 06-07-2006, 01:39 PM   #11
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Now I can authenticate. This was the trick :
saslpasswd <user_name> -f /etc/sasldb2

I did of course create the file '/etc/sasldb2' before running that command.

Just my opinion, but I believe that a whole lot of trouble can be avoided by having these files created during install. It would have saved me hours. And a crucial tip was provided by Alien Bob when he mentioned the need to start the process 'saslauthd'. That was not mentioned at all in the Cyrus howto's. The '/etc/cyrus.conf' file was also not mentioned in any howto's. That seems very strange to me.

davidsrsb also provided a crucial tip. Cyrus is indeed not supposed to run through inetd anymore. The Cyrus 'master' process runs the show.

Now off to setting up mailboxes. I'm almost at the finish line.

Last edited by lostboy; 06-07-2006 at 01:43 PM.
 
Old 06-07-2006, 02:01 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116Reputation: 8116
Quote:
Originally Posted by lostboy
Now I can authenticate. This was the trick :
saslpasswd <user_name> -f /etc/sasldb2

I did of course create the file '/etc/sasldb2' before running that command.
If you want to use your existing Linux user accounts for authentication instead of duplicating your passwords into /etc/sasldb2, you could try and start saslauthd on boot (from rc.local for instance) like this:
Code:
/usr/sbin/saslauthd -a shadow
Eric
 
Old 06-07-2006, 02:30 PM   #13
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Once again, thanks. Mission accomplished. I am now recieving mail in the IMAP mailbox.

That is a good idea Alien Bob(adding entry to rc.local), however Patrick V was nice enough to create '/etc/rc.d/rc.saslauthd' in the prebuilt Slackware cyrus-sasl package.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 08:01 PM
IMAP and Cyrus-IMAP on Slackware 10 cyberjames Slackware 2 01-10-2005 02:07 AM
cyrus imap pndaw Linux - Software 0 08-11-2003 05:50 AM
Cyrus IMAP dwpondscum Linux - Software 2 07-07-2003 03:39 PM
Has anyone successfuly got VPN to run? mjohnson Linux - Networking 0 01-20-2001 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration