Re: Sieve Howto

2004-06-21 Thread Kent L. Nasveschuk
Quick an dirty sieve scripts.

There are many examples on the web but here is just one more.

require [fileinto,reject];
if header :contains X-Spam-Score * {
fileinto trash;}
elsif header :contains [Sender,From]
@wareham.k12.ma.us {
fileinto wpsstuff;}
elsif header :contains [To,Cc,From]
[EMAIL PROTECTED] {
fileinto cyrus;}
elsif header :contains [To,Cc,From,Reply-To]
[[EMAIL PROTECTED],[EMAIL PROTECTED]] {
fileinto postgresql;}
elsif header :contains [To,Cc,From,Reply-To]
[EMAIL PROTECTED] {
fileinto opengroupware;}
elsif header :contains [To,Cc,From]
[EMAIL PROTECTED] {
fileinto samba;}
elsif header :contains [To,Cc,From,Reply-To]
[EMAIL PROTECTED] {
fileinto openldap;}
else {
fileinto INBOX;
}

Create a sieve script in some directory. I use the username.sieve.

Start a sieve shell
sieveshell --user=kent --authname=cyrus localhost

put kent.sieve
activate kent.sieve
list
kent.sieve  - active script
quit

That's about it.

These are on a per user basis. I don't how many can be set active at a
time. The filtering works well. There was a lot of talk about global
sieve scripts, one script that takes care of all users. I haven't
reached that point yet.

Hope this helps.


On Mon, 2004-06-21 at 14:57, Robert wrote:
 Can someone point me to a resource where I can learn how to set up sieve for
 cyrus imapd?  I have imap running just great with postfix and I am looking
 to enhance it with sieve.  I an currently reading the sieve rfc, but is
 there a site
 that deals specifically with getting it running with cyrus imapd?  What to
 name the scripts,where to put them, global and user scripts, etc.
 
 Thanks in advance.
 
 
 
 ---
 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
-- 
Kent L. Nasveschuk [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: sendmail+smtp auth+ cyrus imap

2004-06-16 Thread Kent L. Nasveschuk
Hey thanks for replying Ben. This is what I have in my site.config.m4 at
present:

APPENDDEF(`confENVDEF', `-DSASL=2')
APPENDDEF(`conf_sendmail_LIBS', `-lsasl2')
APPENDDEF(`confLIBDIRS', `-L/usr/local/lib/sasl2')
APPENDDEF(`confINCDIRS', `-I/usr/local/include/sasl')
APPENDDEF(`conf_sendmail_ENVDEF', `-DSTARTTLS')
APPENDDEF(`conf_sendmail_ENVDEF', `-D_FFR_SMTP_SSL')
APPENDDEF(`conf_sendmail_LIBS', `-lssl -lcrypto -L/usr/lib')


On Tue, 2004-06-15 at 17:09, Ben Poliakoff wrote:
 * Kent L. Nasveschuk [EMAIL PROTECTED] [040615 12:38]:
  Has anyone successfully setup sendmail with smtp auth so users can post
  to select shared folders based on authentication? I'd be interested on
  hearing your thoughts. I'm getting close to having sendmail work with
  saslauthd that is using LDAP.
 
 As far as I know you need to compile sendmail with a for future
 release option: 
 
 _FFR_AUTH_PASSING=1
 
 Generally the easiest way to do this is to add a line like:

I will add this and see what happens.

 
 APPENDDEF(`confENVDEF', `-D_FFR_AUTH_PASSING=1')
 
 to your sendmail_src_dir/Site/site.config.m4 file.
 
 I don't know when (or if) the AUTH_PASSING stuff will stop been an
 FFR.
 
  I also want anonymous access to shared folders but am unsure how to
  proceed.Any thoughts would be appreciated.
 
 You probably need to edit your imapd.conf file (man imapd.conf), adding
 this line:
 
 allowanonymouslogin: yes
 
 And then make sure that the ACLs on your shared folders have global read
 permissions enabled. 
 
 Ben
 
 --
 
 Ben Poliakoff email: [EMAIL PROTECTED] Reed College tel:  503-788-6674 Unix
 System Administrator PGP key: 0x6AF52019 PGP fingerprint:  A131 F813
 7A0F C5B7 E74D C972 9118 A94D 6AF5 2019
-- 
Kent L. Nasveschuk [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+smtp auth+ cyrus imap

2004-06-15 Thread Kent L. Nasveschuk
Has anyone successfully setup sendmail with smtp auth so users can post
to select shared folders based on authentication? I'd be interested on
hearing your thoughts. I'm getting close to having sendmail work with
saslauthd that is using LDAP.



I also want anonymous access to shared folders but am unsure how to
proceed.Any thoughts would be appreciated.




-- 
Kent L. Nasveschuk [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


Sieve problem

2004-06-10 Thread Kent L. Nasveschuk
Hello,
I'm having a problem with sieve finding the correct mailbox

In a script when I use INBOX.backup the imapd.log says:

Jun 10 08:01:55 mail master[10743]: about to exec /usr/cyrus/bin/lmtpd
Jun 10 08:01:55 mail lmtpunix[10743]: executed
Jun 10 08:01:55 mail lmtpunix[10743]: accepted connection
Jun 10 08:01:55 mail lmtpunix[10743]: lmtp connection preauth'd as
postman
Jun 10 08:01:55 mail lmtpunix[10743]: sieve runtime error for kent id
[EMAIL PROTECTED]: Fileinto: Invalid mailbox
name

When I use kent.backup I imapd.log says:

Jun 10 08:08:57 mail master[10762]: about to exec /usr/cyrus/bin/lmtpd
Jun 10 08:08:57 mail lmtpunix[10762]: executed
Jun 10 08:08:57 mail lmtpunix[10762]: accepted connection
Jun 10 08:08:57 mail lmtpunix[10762]: lmtp connection preauth'd as
postman
Jun 10 08:08:57 mail lmtpunix[10762]: duplicate_check:
[EMAIL PROTECTED] user.kent.kent.backup 0

What do I use in the sieve script to deliver to the correct mailbox?

Sieve script:

require fileinto;
if header :contains [Sender,From] @whs1.tow.net {
fileinto INBOX.backup;}
else {
 fileinto INBOX;
}
 
-- 
Kent L. Nasveschuk [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


ACL problems

2004-06-10 Thread Kent L. Nasveschuk
I'm having some strange issues with ACLs I set in cyradm.
(version 2.2.4 Cyrus IMAPD)


I have the following ACLs set:

localhost lam public.announce
kent lrswipcda
anyone lrs
localhost lam public
kent lrswipcda
anyone lrs

User kent (me), should be able to post to the public.announce folder but
I can't. I can move mail to that folder. When I set the ACL for anyone
to lrsp the message is delivered to the correct folder.

localhost sam public.announce anyone lrsp
localhost lam public.announce
kent lrswipcda
anyone lrsp

When I set the ACL for anyone back to lrs this is my returned message:


The original message was received at Thu, 10 Jun 2004 14:46:41 -0400
from [172.16.0.22]

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 550-You do not have permission to post a message to this mailbox.)

   - Transcript of session follows -
... while talking to localhost:
 DATA
 550-You do not have permission to post a message to this mailbox.
 550-Please contact the owner of this mailbox in order to submit
 550-your message, or postmaster if you believe you
 550-received this message in error.
 550 5.7.1 Permission denied
550 5.1.1 [EMAIL PROTECTED]... User unknown
 503 5.5.1 No recipients

Is this a bug?


-- 
Kent L. Nasveschuk [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


Delivery to shared folders

2004-06-04 Thread Kent L. Nasveschuk
I still can't seem to get this to work.



imad.conf

configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
sasl_mech_list: PLAIN LOGIN DIGEST-MD5 CRAM-MD5
sasl_pwcheck_method: saslauthd
autocreatequota: 1
allowanonymouslogin: no
allowplaintext: yes
createonlogin: yes
autocreateinboxfolders: Sent|Drafts|Templates|Trash
altnamespace: yes
duplicatesupression: yes
sievedir: /usr/sieve
sendmail: /usr/sbin/sendmail

cyrus.conf

# standard standalone server implementation

START {
  # do not delete this entry!
  recover   cmd=ctl_cyrusdb -r

  # this is only necessary if using idled for IMAP IDLE
#  idledcmd=idled
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  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
  sieve cmd=timsieved listen=sieve prefork=0

  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp cmd=nntpd listen=nntp prefork=0
#  nntpscmd=nntpd -s listen=nntps prefork=0
  # at least one LMTP is required for delivery
  lmtp  cmd=lmtpd listen=lmtp prefork=0
  lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0

  # this is only necessary if using notifications
#  notify   cmd=notifyd listen=/var/imap/socket/notify
proto=udp prefork=1
}

EVENTS {
  # this is required
  checkpointcmd=ctl_cyrusdb -c period=30

  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune  cmd=cyr_expire -E 3 at=0400


maillog:

Jun  4 05:31:53 mail sm-mta[5394]: i549Vren005391:
to=[EMAIL PROTECTED], delay=00:00:00,
xdelay=00:00:00, mailer=cyrusv2, pri=30650, relay=localhost, dsn=5.7.1,
stat=User unknown
Jun  4 05:31:53 mail sm-mta[5394]: i549Vren005391: i549Vren005394: DSN:
User unknown

debug:


Jun  4 05:31:53 mail master[5392]: about to exec /usr/cyrus/bin/imapd
Jun  4 05:31:53 mail imap[5392]: executed
Jun  4 05:31:53 mail imap[5392]: accepted connection
Jun  4 05:31:53 mail master[5395]: about to exec /usr/cyrus/bin/lmtpd
Jun  4 05:31:53 mail lmtpunix[5395]: executed
Jun  4 05:31:53 mail lmtpunix[5395]: accepted connection
Jun  4 05:31:53 mail lmtpunix[5395]: lmtp connection preauth'd as
postman
Jun  4 05:31:53 mail lmtpunix[5395]: verify_user(public.minot) failed:
Permission denied

Any suggestions? I can drag messages to shared folders that I have write
access to, I just can't send messages. Sendmail doesn't appear to be
handling credentials. Do I have sendmail setup wrong? 


-- 
Kent L. Nasveschuk [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: Clean RH3 build, cyradm doesn't work here either.

2004-06-03 Thread Kent L. Nasveschuk
This worked for me:

Fix cyradm and add as follows:
PERL5LIB=/usr/local/lib/perl5/site_perl/5.8.0/i486-linux

export PERL5LIB

I had the same problem with many installations. 

You would probably replace the i486-linux with i386-linux-thread-multi



On Thu, 2004-06-03 at 14:58, Mark London wrote:
 I just installed a build RH3 AS from scratch.  I then bio;t cyrus 
 2.2.5, and I get the same error messages that others have gotten, 
 when trying to run cyradm.  I've yet to read a solution for this. 
 Any ideas out there, or is it a cyrus bug?  Thanks. -  Mark
 
 Can't load 
 '/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so' 
 for module Cyrus::IMAP 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/Cyrus/IMAP/IMAP.so: 
 undefined symbol: db_version at 
 /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229.
   at 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm 
 line 44
 Compilation failed in require at 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm 
 line 44.
 BEGIN failed--compilation aborted at 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm 
 line 44.
 Compilation failed in require at 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm 
 line 60.
 BEGIN failed--compilation aborted at 
 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Shell.pm 
 line 60.
 Compilation failed in require.
 BEGIN failed--compilation aborted.
 ---
 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
-- 
Kent L. Nasveschuk [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


posting messages to cyrus shared folders

2004-06-01 Thread Kent L. Nasveschuk
Hello,
I have a question. I've created some shared folders with cyradm an given
my test user p - post acl on the folder. How do I post messages into
that folder. I saw some postings on the internet that explained I should
use a (+) between the folders in the hierarchy:

ex. [EMAIL PROTECTED]

When I read the maillog from sendmail it says unknown user and it is
retured to me.

May 30 10:39:32 mail sm-mta[1171]: i4UEdV8x001169:
to=[EMAIL PROTECTED], delay=00:00:01,
xdelay=00:00:00, mailer=cyrusv2, pri=30650, relay=localhost, dsn=5.1.1,
stat=User unknown
May 30 10:39:32 mail sm-mta[1171]: i4UEdV8x001169: i4UEdW8x001171: DSN:
User unknown



I realize that this is somewhat dependent on the capabilities of the
mail client, but it seems to be reaching the cyrus-imap server just not
being resolved. I also tryed:

public.announce

Any suggestions?
-- 
Kent L. Nasveschuk [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


sasldb2

2004-05-30 Thread Kent L. Nasveschuk
Hello,
I have cyradm working but I had an initial problem setting a password
for user cyrus in sasl. It was a permissions thing. Permissions on
/etc/sasldb2 were originally 640 root.root. This did not allow me to add
a password so I could login to the localhost. I changed the permissions
to:
 -rwxrwxrwx1 root root12288 May 30 06:49 /etc/sasldb2*

I can now set a password using saslpasswd2 and login to localhost with
cyradm.

What do permissions really have to be so I can set this up correctly?
. 
-- 
Kent L. Nasveschuk [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: Cyradm still not working

2004-05-28 Thread Kent L. Nasveschuk
Chris,
How did you get around the perl path problem? I've installed cyrus on a
Slackware 9.1 system, similar to your configuration however I'm using
OpenLDAP as a backend. It works with exception of cryadm. I filed a bug
on the software:

Subject: [Bug 2430] IMAP.so does not have full runpath


http://bugzilla.andrew.cmu.edu/show_bug.cgi?id=2430

[EMAIL PROTECTED] changed:

   What|Removed |Added

Summary|Bug in IMAP.so when running |IMAP.so does not have
full
   |cyradm  |runpath


Anyway how can I get around that so that cyradm works?


 Kent,
 
 Luckly I made some really bad notes when I went through this exact 
 problem a few months ago, which basically just tell me that I had problems.
 A coworker likes to upgrade our installed packages frequently so I 
 really can't say what was installed when I had my ordeal.
 I've tried compiling both your way and what I had in my notes on the 
 same source tree and machine on which I had the problems but it finds 
 the libraries.
 
 After pasting in the info below, I realize now that one problem was that 
 my perl installation is in /usr/lib/perl5 but Cyrus by default puts 
 things in /usr/local/lib/perl5.  Thus after make install I have to 
 manually copy files to the proper location which is irritating.  I think 
 I discovered that little nugget on day 2 of my struggle.  If that's not 
 your current problem, you'll likely face it when you get past your 
 present one.
 
 Sorry I cannot be of any more assistance.  Hopefully some of this is useful.
 Chris
 
 My present config is:
 
 ./configure \
 --with-cyrus-prefix=/usr/cyrus \
 --with-openssl=/usr/local/ssl \
 --with-bdb=skiplist \
 --with-auth=unix
 
 Have compiled SASL as follows:
 
 ./configure --disable-krb4 \
 --disable-gssapi \
 --enable-login \
 --enable-plain \
 --disable-anon \
 --disable-otp \
 --enable-sql \
 --without-saslauthd \
 --without-des \
 --without-pam \
 --without-opie \
 --with-openssl=/usr/local/ssl \
 --with-pgsql=/usr/local/pgsql \
 --with-mysql=/usr/local/mysql
 
 
 We run slackware 9.1 current package list includes:
 
 
 aaa_base-9.1.0-noarch-2
 aspell-0.50.5-i486-1
 aspell-en-0.51_0-noarch-1
 autoconf-2.59-noarch-1
 automake-1.8.4-noarch-1
 bash-2.05b-i486-3
 bc-1.06-i386-2
 bin-9.0.0-i486-2
 binutils-2.15.90.0.3-i486-1
 bison-1.875-i386-1
 byacc-1.9-i386-1
 bzip2-1.0.2-i486-5
 coreutils-5.2.1-i486-1
 cvs-1.11.15-i486-1
 db4-4.2.52-i486-1
 dcron-2.3.3-i386-4
 devfsd-1.3.25-i386-2
 devs-2.3.1-noarch-20
 dhcp-3.0pl2-i386-1
 dhcpcd-1.3.22pl4-i386-1
 diffutils-2.8.1-i386-1
 e2fsprogs-1.35-i486-1
 elflibs-9.1.0-i486-2
 elvis-2.2_0-i486-2
 etc-5.1-noarch-7
 expat-1.95.7-i486-1
 expect-5.41.0-i486-1
 findutils-4.1.7-i386-1
 flex-2.5.4a-i486-2
 floppy-5.4-i386-3
 gawk-3.1.3-i486-1
 gcc-3.4.0-i486-1
 gcc-g++-3.3.3-i486-1
 gcc-g++-3.4.0-i486-1
 gettext-0.14.1-i486-1
 gettext-tools-0.14.1-i486-2
 glibc-2.3.2-i486-5
 glibc-solibs-2.3.2-i486-5
 glibc-zoneinfo-2.3.2-noarch-5
 gmp-4.1.3-i486-2
 gnupg-1.2.4-i486-1
 grep-2.5-i386-2
 groff-1.17.2-i386-3
 guile-1.6.4-i486-1
 gzip-1.3.3-i386-2
 infozip-5.50-i486-2
 j2sdk-1_4_2_04-i586-3
 less-382-i486-1
 libpng-1.2.5-i486-2
 libtool-1.5.6-i486-1
 libxml2-2.6.9-i486-1
 libxslt-1.1.6-i486-1
 logrotate-3.6.8-i486-1
 lynx-2.8.5rel.1-i486-2
 m4-1.4-i386-2
 make-3.80-i386-1
 man-1.5m2-i486-1
 man-pages-1.60-noarch-1
 ncftp-3.1.7-i486-1
 ncurses-5.4-i486-2
 nmap-3.50-i486-1
 openssh-3.8p1-i486-1
 pciutils-2.1.11-i486-5
 pcre-4.5-i486-1
 perl-5.8.4-i486-1
 pine-4.60-i486-1
 pkgconfig-0.15.0-i486-1
 pkgtools-9.1.3-i486-1
 pmake-2.1.35-i386-2
 popt-1.7-i386-1
 procmail-3.15.2-i386-1
 procps-2.0.18-i486-1
 python-2.3.3-i486-2
 quota-3.09-i486-1
 raidtools-1.00.3-i386-1
 readline-4.3-i486-3
 reiserfsprogs-3.6.14-i486-1
 rsync-2.6.2-i486-1
 sed-4.0.9-i486-2
 sendmail-8.12.10-i486-1
 shadow-4.0.3-i486-8
 slocate-2.7-i486-2
 strace-4.5.2-i486-1
 stunnel-4.05-i486-1
 sysklogd-1.4.1-i486-9
 syslinux-2.09-i486-1
 sysvinit-2.84-i486-39
 tar-1.14-i486-1
 tcl-8.4.6-i486-1
 tclx-8.3.5-i386-1
 tcpdump-3.8.3-i486-2
 tcpip-0.17-i486-26
 tk-8.4.6-i486-1
 traceroute-1.4a12-i386-2
 utempter-1.1.1-i486-1
 util-linux-2.12-i486-1
 vim-6.2.393-i486-1
 wget-1.9.1-i486-1
 
 
 
 Kent L. Nasveschuk wrote:
 
 Hello Chris,
 Thanks for trying to help me out on this.
 This is what I did again.
 
 Added:
 /usr/local/BerkeleyDB.4.2/lib to ld.so.conf then ran ldconfig
 
 Tried to recompile with the following:
 
 export LDFLAGS=-L/usr/local/BerkeleyDB.4.2/lib; ./configure
 --with-bdb=/usr/local/BerkeleyDB.4.2
 --with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
 --with-bdb-incdir=/usr/local/BerkeleyDB.4.2/inc --disable-krb4
 
 I also went into a subdirectory from the source directory that has
 makedepend, compiled that and copied it to /usr/local/bin/makedepend
 
 
 Same thing. Nothing seems to work. What platform do other people run
 Cyrus IMAP

Re: Please help, Perl Module problem.

2004-05-28 Thread Kent L. Nasveschuk
This is what I added but I get the same db_version error :(
I have yet to get this to run, very frustrating. It obviously works
people use it. I'm so close on this...


case x$BASH_VERSION in
x) exec perl -MCyrus::IMAP::Shell
-I/usr/lib/perl5/site_perl/5.8.0/i486-linux -e shell -- ${1+$@} ;;
*) exec perl -MCyrus::IMAP::Shell
-I/usr/lib/perl5/site_perl/5.8.0/i486-linux -e shell -- $@ ;;
esac
echo $0: how did I get here? 2
exit 1



On Fri, 2004-05-28 at 10:31, Andrew J Caird wrote:
 On Fri, 28 May 2004, Kent Nasveschuk wrote:
 
  Hello,
  You had a perl path problem back in April in cyradm (Cyrus IMAP) that it
  seems many people had. I was just wondering if you solved it and exactly
  what you did to solve it. I have Cyrus 2.2.4 installed and working on a
  test machine with exception of cyradm. Any help would be appreciated,
  I'm really beating my head against the wall on this one.
 
 Kent,
   If your problem is truely only a path problem, you might want to try
 what I do, which is adding:
   -I/usr/local/cyrus/lib/perl5/site_perl/5.8.3/sun4-solaris to the two
 exec perl lines at the top of cyradm (see below).  Of course, if you
 aren't using solaris or Perl v5.8.3, the last two components of the path
 will be different for you.
   Hope this helps.
 --
 Andrew Caird
 
 -
 Now the top of cyradm looks like:
 
 case x$BASH_VERSION in
 x) exec perl -MCyrus::IMAP::Shell 
 -I/usr/local/cyrus/lib/perl5/site_perl/5.8.3/sun4-solaris -e shell -- ${1+$@} ;;
 *) exec perl -MCyrus::IMAP::Shell 
 -I/usr/local/cyrus/lib/perl5/site_perl/5.8.3/sun4-solaris -e shell -- $@ ;;
 esac
 echo $0: how did I get here? 2
 exit 1
-- 
Kent L. Nasveschuk [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


Debian saslauth

2004-05-27 Thread Kent L. Nasveschuk
Does anyone know what saslauthd authentication mechanisms the current
distribution of Debian supports in the sasl package? In particular I am
interested in using LDAP directly or possibly LDAP through PAM if
supported to authenticate users to Cyrus IMAP. I've never used Debian,
but I'm utterly frustrated with trying to get sasl and cyrus imap to
work on Slackware and Redhat systems. After many attempts at getting
cyradm admin program to work and failing, I've decided to try to get
this running on a different platform. Debian has a cyrus imapd packages.



-- 
Kent L. Nasveschuk [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


Cyrus IMAP not recieving mail

2004-05-26 Thread Kent L. Nasveschuk
Hello,
I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
forwarding on (Slackware 9.1). Using a mail client like Evolution or
Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
folders. I can also create folders. Seems like the IMAP side is working.

I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
internet to create the sendmail.cf.I can telnet to port 25 and get a
sendmail connection:
220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
06:11:03 -0400
When I do netstat I see that I've established a tcp connection smtp.

I just can't seem to get anything delevered to the IMAP server from
sendmail. Any suggestions on where to look?



-- 
Kent L. Nasveschuk [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 IMAP not recieving mail

2004-05-26 Thread Kent L. Nasveschuk
It was my sendmail configuration. I believe I have it set up correctly
but more testing is needed. Thanks.



On Wed, 2004-05-26 at 11:00, Frank Zhang wrote:
 It maybe the path problem for the program deliver, sendmail will look
 for /usr/cyrus/bin/deliver, but actually its location is
 /usr/lib/cyrus-imapd/deliver, so you may need to make a UNIX link.
 Frank
 
 On Wed, 26 May 2004, Ken Murchison wrote:
 
  Kent L. Nasveschuk wrote:
 
   Hello,
   I have my IMAP server v 2.2.4 behind a firewall that I'm doing port
   forwarding on (Slackware 9.1). Using a mail client like Evolution or
   Outlook Express I can authenticate using saslauthd (LDAP) and recieve my
   folders. I can also create folders. Seems like the IMAP side is working.
  
   I'm using sendmail as the MTA. I used the cyrusv2.mc posted on the
   internet to create the sendmail.cf.I can telnet to port 25 and get a
   sendmail connection:
   220 mail.tow.net ESMTP Sendmail 8.12.10/8.12.10; Wed, 26 May 2004
   06:11:03 -0400
   When I do netstat I see that I've established a tcp connection smtp.
  
   I just can't seem to get anything delevered to the IMAP server from
   sendmail. Any suggestions on where to look?
 
  This might be related to a bug uncovered by 2.2.4.  Try 2.2.3 or apply
  the following patch to 2.2.4:
 
  https://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/hash.c.diff?r1=1.11r2=1.12f=u
 
  --
  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
 
 ---
 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
-- 
Kent L. Nasveschuk [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


sasl ldap how do I compile

2004-05-25 Thread Kent L. Nasveschuk
I am trying to compile Cyrus-SASL with LDAP support and OpenLDAP with
Cyrus-SASL support. I want to use saslauthd for IMAP users to
authenticate to our OpenLDAP directory. The problem is that each seems
to be dependent on the other.



Anyone have some ideas on this? I'm doing this on a Slackware 9.1
system.
-- 
Kent L. Nasveschuk [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


Mailbox creation

2004-05-24 Thread Kent L. Nasveschuk
I'm trying to set up the IMAP server so that the mail boxes are auto
created. For authentication I'm using saslauthd that uses my OpenLDAP
server. I can authenticate fine but the mailboxes don't seem to get
created.

This is my /etc/imapd.conf:
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: saslauthd
autocreatequota: 1
allowanonymouslogin: no
allowplaintext: yes
createonpost: on
autocreateinboxfolders: sent|drafts|spam|templates

When I logged in initially I got a directory created:
/var/imap/user/k/kent.stub

Under /var/spool/imap/stage./ there is nothing. Is there something that
I need to add to LDAP or is my configuration wrong?


-- 
Kent L. Nasveschuk [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


Alternative to cyradm

2004-05-21 Thread Kent L. Nasveschuk
Hello all,
Is there an alternative to cyradm? I haven't been able to get this to
run yet. I continue to get: IMAP.so: undefined symbol: db_version. 


-- 
Kent L. Nasveschuk [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


Cyradm

2004-05-20 Thread Kent L. Nasveschuk
Hello,
I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
out there resolve the undefined symbol db_version problem that
accompanies cyradm?

I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
same problems. I've read a good deal of postings on this problem but
everyting up until now has not worked.


-- 
Kent L. Nasveschuk [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: Cyradm

2004-05-20 Thread Kent L. Nasveschuk
First installation I used the stock Berkeley DBs. Then I tryed this
after installing BerkeleyDB 4.2.52. I used the following command line
options on configure:

--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
--disable-krb4


It compiles and starts, but cyradm refuses to function. Running ldd on
IMAP.so got:

ldd IMAP.so
libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x4001e000)
libssl.so.2 = /lib/libssl.so.2 (0x40032000)
libcrypto.so.2 = /lib/libcrypto.so.2 (0x40062000)
libc.so.6 = /lib/i686/libc.so.6 (0x4200)
libdl.so.2 = /lib/libdl.so.2 (0x40136000)
libresolv.so.2 = /lib/libresolv.so.2 (0x40139000)
libcrypt.so.1 = /lib/libcrypt.so.1 (0x4014b000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)

How do I force to find the libraries?


On Thu, 2004-05-20 at 10:57, Chris Harms wrote:
 I seem to recall getting this one on a few occasions...at least one time 
 it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
 directory and see if it found DB.  If not you'll need to reconfigure 
 using some of the following configure options setting DIR as appropriate.
 
 --with-bdb=DIR  use Berkeley DB (in DIR) [yes]
 --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
 --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
 
 Chris
 
 Kent L. Nasveschuk wrote:
 
 Hello,
 I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
 out there resolve the undefined symbol db_version problem that
 accompanies cyradm?
 
 I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
 same problems. I've read a good deal of postings on this problem but
 everyting up until now has not worked.
 
 
   
 
-- 
Kent L. Nasveschuk [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: Cyradm still not working

2004-05-20 Thread Kent L. Nasveschuk
Hello Chris,
Thanks for trying to help me out on this.
This is what I did again.

Added:
/usr/local/BerkeleyDB.4.2/lib to ld.so.conf then ran ldconfig

Tried to recompile with the following:

export LDFLAGS=-L/usr/local/BerkeleyDB.4.2/lib; ./configure
--with-bdb=/usr/local/BerkeleyDB.4.2
--with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
--with-bdb-incdir=/usr/local/BerkeleyDB.4.2/inc --disable-krb4

I also went into a subdirectory from the source directory that has
makedepend, compiled that and copied it to /usr/local/bin/makedepend


Same thing. Nothing seems to work. What platform do other people run
Cyrus IMAP on? I never had this many problems trying to to get something
to work as this.



On Thu, 2004-05-20 at 11:47, Chris Harms wrote:
 I think I went down that road once also.  In my experience, the cyrus 
 configure/build process likes to ignore things from time to time.  Try 
 setting the LD_LIBRARY_PATH or putting it in ld.so.conf but that's just 
 a guess.
 
 chris
 
 Kent L. Nasveschuk wrote:
 
 First installation I used the stock Berkeley DBs. Then I tryed this
 after installing BerkeleyDB 4.2.52. I used the following command line
 options on configure:
 
 --with-bdb=/usr/local/BerkeleyDB.4.2
 --with-bdb-libdir=/usr/local/BerkeleyDB.4.2/lib
 --with-bdb-inc=/usr/local/BerkeleyDB.4.2/inc
 --disable-krb4
 
 
 It compiles and starts, but cyradm refuses to function. Running ldd on
 IMAP.so got:
 
 ldd IMAP.so
 libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x4001e000)
 libssl.so.2 = /lib/libssl.so.2 (0x40032000)
 libcrypto.so.2 = /lib/libcrypto.so.2 (0x40062000)
 libc.so.6 = /lib/i686/libc.so.6 (0x4200)
 libdl.so.2 = /lib/libdl.so.2 (0x40136000)
 libresolv.so.2 = /lib/libresolv.so.2 (0x40139000)
 libcrypt.so.1 = /lib/libcrypt.so.1 (0x4014b000)
 /lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x8000)
 
 How do I force to find the libraries?
 
 
 On Thu, 2004-05-20 at 10:57, Chris Harms wrote:
   
 
 I seem to recall getting this one on a few occasions...at least one time 
 it wasn't finding my DB library.  Run ldd on IMAP.so in the perl 
 directory and see if it found DB.  If not you'll need to reconfigure 
 using some of the following configure options setting DIR as appropriate.
 
 --with-bdb=DIR  use Berkeley DB (in DIR) [yes]
 --with-bdb-libdir=DIR   Berkeley DB lib files are in DIR
 --with-bdb-incdir=DIR   Berkeley DB include files are in DIR
 
 Chris
 
 Kent L. Nasveschuk wrote:
 
 
 
 Hello,
 I have yet to get cyradm working on v 2.2.3 or the recent 2.2.4. Anyone
 out there resolve the undefined symbol db_version problem that
 accompanies cyradm?
 
 I've tried 2 installations on RedHat 8.0 and 1 on Slackware 9.0 with the
 same problems. I've read a good deal of postings on this problem but
 everyting up until now has not worked.
 
 
  
 
   
 
 
 
 ---
 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
-- 
Kent L. Nasveschuk [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