Re: Why doesn't Cyrus put mail into boxes?

2004-08-16 Thread Joakim Ryden
On Mon, 2004-08-16 at 15:37, Mike Jones wrote:
[...]
> However, no mail ends up in the mailboxes underneath the
> 
> /var/spool/cyrus/mail directory.
[...]

Start with the logs. What does Postfix tell you? I think on Debian the
logging goes in /var/log/mail.log - does it look like Postfix has
successfully handed off to Cyrus?

--Jo

---
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: [partly solved] Authenticate via saslauthd: 'generic failure: checkpass failed'

2004-08-12 Thread Joakim Ryden
On Thu, August 12, 2004 7:21 am, Jacob Friis Larsen said:
[...]
> The problem is that now I can not use squirrelmail.
> And I don't see pam using the log as it should in MySQL. Also it only
> works when I have sasl_sql_ settings so I guess the problem is with
> pam/saslauthd
> Any ideas?

Set this in squirrelmail's config.php:

$imap_auth_mech = 'digest-md5';

[...]

--Jo



---
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: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 10:41 am, Rob Tanner wrote:
> --On Tuesday, August 10, 2004 10:23:16 AM -0700 Joakim Ryden
>
> <[EMAIL PROTECTED]> wrote:
> > What do your logs say when you try it?
> >
> > --Jo
>
> Duh!  I didn't even think to check there.  Here are two examples, the
> sieveshell that fails followed by a smartsieve login that worked.  In
> bothe cases I logged in (or tried to login in) as the same user.  The
> one difference I note is that the failed login does not list the user
> name while the successful login does.  Is that significant?
[...]

Try this and see if it makes a difference:

# sieveshell --authname=rtanner localhost

--Jo
---
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: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 10:16 am, Rob Tanner wrote:
> --On Tuesday, August 10, 2004 10:12:10 AM -0700 Joakim Ryden
>
> <[EMAIL PROTECTED]> wrote:
> > On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote:
> >> Hi,
> >>
> >> I have sieve up and running (cyrus-imap v2.2.3) and a php application to
> >> allow users some limited access for setting up forwarding and vacation
> >> scripts.  I am looking at sieveshell as a possible tool to do
> >> administrative maintenance, but whenever I try to invoke it, it fails.
>
>  [...]
>
> > Do you have an entry for sieve in /etc/services?
> >
> > --Jo
>
> Yes.  Otherwise the php app wouldn't work either.

What do your logs say when you try it?

--Jo
---
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: Newbie sieve problem w/sieveshell

2004-08-10 Thread Joakim Ryden
On Tuesday 10 August 2004 09:31 am, Rob Tanner wrote:
> Hi,
>
> I have sieve up and running (cyrus-imap v2.2.3) and a php application to
> allow users some limited access for setting up forwarding and vacation
> scripts.  I am looking at sieveshell as a possible tool to do
> administrative maintenance, but whenever I try to invoke it, it fails.
>
> I have tried accessing it both as the administrative user (cyrus) and as
> myself, and I have specified the server both as localhost and with the
> FQDN. Below are two example command lines:
>
> sieveshell --user cyrus localhost
> sieveshell --user cyrus mail.linfield.edu
>
> In every case, it prompts for the password, and then returns the error
> (line broken for readability):
>
> unable to connect to server at \
>/usr/local/cyrus/bin/sieveshell line 169,  line 1.
[...]

Do you have an entry for sieve in /etc/services?

--Jo
---
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: cyrdeliver to mailbox

2004-03-06 Thread Joakim Ryden
On Friday 05 March 2004 09:11 am, Lutz Kittler wrote:
[...]
> What can I do to insert the mails in the right mailbox ?
[..]

Set up Sieve filter(s) for 'kittler' to filter the e-mails into the folders 
you want them to go?

--Jo
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Mixed case incoming e-mail addresses being bounced.

2004-03-02 Thread Joakim Ryden
On Tuesday 02 March 2004 06:21 pm, Edward Rudd wrote:
[...]
> Is there anyway I can have either postfix or cyrus lower the case on the
> e-mail address? (but not the + recipient_delimiter information)
[...]

The man page for imapd.conf(5) talks about lmtp_downcase_rcpt.

--Jo
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Verification error...

2004-02-28 Thread Joakim Ryden
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Anders
> Norrbring
> Sent: Saturday, February 28, 2004 2:47 PM
> To: Postfix mailing list
> Cc: 'Cyrus IMAP Mailing List'
> Subject: Verification error...
[...]
> Feb 28 23:30:43 hulda saslauthd[797]: pam_mysql: where clause =
> Feb 28 23:30:43 hulda saslauthd[797]: SELECT password FROM
> accountuser WHERE
> username='[EMAIL PROTECTED]'
[...]

Also, since I don't use pam_mysql I'm gonna throw out another guess and
suggest that: "SELECT password FROM accountuser WHERE
username='[EMAIL PROTECTED]'" doesn't look like a where clause
to me, it looks like a full select statement.

--Jo



!DSPAM:40412973330855560519922!


---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RE: Verification error...

2004-02-28 Thread Joakim Ryden
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Anders
> Norrbring
> Sent: Saturday, February 28, 2004 2:47 PM
> To: Postfix mailing list
> Cc: 'Cyrus IMAP Mailing List'
> Subject: Verification error...
[...]
> Feb 28 23:30:43 hulda saslauthd[797]: pam_mysql: where clause =
> Feb 28 23:30:43 hulda saslauthd[797]: SELECT password FROM 
> accountuser WHERE
> username='[EMAIL PROTECTED]'
[...]
Have you tried this SQL query against MySQL and checked what it returns?

--Jo


!DSPAM:40412860330675557512026!


---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Supress duplicate delivery supression ?

2004-02-18 Thread Joakim Ryden
On Wednesday 18 February 2004 02:17 am, Per Steinar Iversen wrote:
> Is it possible to avoid the use of duplicate delivery suppression?
[...]

'man imapd.conf' - look for 'duplicatesuppression'.

--Jo

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: ACL usage revisted (need feedback)

2004-02-10 Thread Joakim Ryden
on 02/10/2004 04:23 PM Ken Murchison said the following:

How is SMTP Auth going to help with this problem?


When the MUA authenticates to the MTA, the authid is passed along to 
lmtpd in the AUTH= keyword in the MAIL FROM command.  lmtpd then checks 
to see if this authid has posting rights on the rcpt mailbox.  Without 
the authid given by the MTA, lmtpd assumes that the authid is 
"anonymous", which means you would have to grant anyone posting rights 
on the mailbox, which is what Jason is trying to avoid.
Gotcha. No reason not to use Postfix then, which has an SMTP Auth 
implementation, unless your saying passing of the AUTH= keyword is 
Sendmail specific, that Postfix doesn't, and Exim does.

--Jo

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: ACL usage revisted (need feedback)

2004-02-10 Thread Joakim Ryden
on 02/10/2004 02:10 PM Alberto Tablado said the following:
El mar, 10-02-2004 a las 22:07, Pat Lashley escribió:

--On Monday, February 09, 2004 17:18:39 -0800 Jason Williams <[EMAIL PROTECTED]> wrote:

I share your manager's concern about using Sendmail; but are you
certain that this can't be done with Exim ?  (http://www.exim.org/)


Exim can. I suggest you to read chapter 33
(http://www.exim.org/exim-html-4.30/doc/html/spec_33.html)
How is SMTP Auth going to help with this problem?

--Jo

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: backend database ?

2004-02-08 Thread Joakim Ryden
on 02/08/2004 03:15 AM Michael Jonsson said the following:
For all the mail...
Mail is not stored in any database.

--Jo

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: backend database ?

2004-02-08 Thread Joakim Ryden
on 02/07/2004 04:30 PM Michael Jonsson said the following:
Hi,

Can I use MySQL for backend database, or most I use Berkeley DB ???
Backend database for what?

--Jo

---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Cyrus and Postfix question

2004-01-09 Thread Joakim Ryden
Nick Fisher wrote:
>> In my case I wrote a wrapper around deliver that filters the mail
>> through SpamAssassin.
Which would be better done using something like spampd or amavisd-new
and/or using Postfix advanced content filtering of course...
Actually I know what I'm doing and I'm quite happy with it. I do use spamd
(the wraper implements spamc) and because postfix is trying to deliver it
to a perticular user, I can easily implement per-user settings (-u on
spamc). It's also a bonus doing this at the delivery agent because I don't
have worry about not checking out bound mail (As I would have to if I did
this with a cf). Frankly any extra overhead due to it being pipe rather
than lmtp is dwarfed by SpamAssassin. It's quick n' easy, for me it's the
perfect solution ;)
And if one is happy and things are working one should stick with it of 
course. :)

I was just trying to point out that if you're handling a fairly large 
amount of e-mail and from Postfix are calling wrapper+spamc+running 
spamd+deliver chances are you wouldn't be that happy. ;)

--Jo



Re: Cyrus and Postfix question

2004-01-09 Thread Joakim Ryden
Jason Williams wrote:
[...]
Then in my master.cf

# Cyrus 2.1.5
cyrus unix  -   n   n   -   -   pipe
  user=cyrus argv=/usr/local/cyrus/bin/deliver -r ${sender} -m 
${extension} ${user}

So it envokes the cyrus deliver program.
I see how that works.
Just trying to find out more on the two options: advantages and 
disadvantages of both.


If you have any kind of traffic I would *NOT* use this option as any 
Postfix calls to external programs will slow things down and eat far 
more resources than necessary.

Generally speaking if Cyrus is running on the same machine as Postfix 
the entry that you have is the best (mailbox_transport = 
lmtp:unix:/var/imap/socket/lmtp).

LMTP over tcp works well if you have a setup like... firewall -> Postfix 
server - Cyrus server, which is what I use. The Cyrus server as well as 
the Postfix are on internal IPs, Postfix server has port 25 open and 
Nat'ed from firewall, Cyrus server has IMAP and IMAP over SSL (ports 143 
& 993 NAT'ed from firewall so (hopefully) no one should even know that 
the LMTP tcp port is open on the Cyrus server. Even so I still use 
password authentication for Postfix to deliver to the Cyrus box.

>> In my case I wrote a wrapper around deliver that filters the mail
>> through SpamAssassin.
Which would be better done using something like spampd or amavisd-new 
and/or using Postfix advanced content filtering of course...

[...]

--Jo



Re: sasl password change over web or poppassd

2003-12-14 Thread Joakim Ryden
On 12/14/03 2:48 PM Cristian Livadaru wrote:
I am looking for something that makes it posible, preferebly by
poppassd, to change your saslpassword.
I don't know of any ( OK that was a lie; I do know of saslpasswd(2) ) - 
just wanted to take a step back and point out the difficulty of a 
generic SASL password changer. Since there are so many ways one can 
store SASL passwords (Kerberos, LDAP, SQL, sasldb etc) it would probably 
take some thinking before writing, and a lot of writing after thinking, 
something that takes all of those into account.

--Jo



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problems with Cyrus and SquirrelMail

2003-12-11 Thread Joakim Ryden
On 12/11/03 12:20 PM Geoff Soper wrote:
[...]
Every time I set up SM with Cyrus and use altnamespace I always have to
set:
$noselect_fix_enable= true;

in config/config.php



Hi,
could you explain a little bit more about this please? What effect does
this option have?
My 'grep' is as good as yours. :)

functions/imap_mailbox.php:487:

if ($noselect_fix_enable) {
$lsub_args = "LSUB \"$folder_prefix\" \"*%\"";
} else {
$lsub_args = "LSUB \"$folder_prefix\" \"*\"";
}
--Jo


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Problems with Cyrus and SquirrelMail

2003-12-05 Thread Joakim Ryden
On 12/5/03 12:37 PM Geoff Soper wrote:
I've installed SquirrelMail (a PHP IMAP webmail client) on my webserver
and have it acessing my account on the mail server running Cyrus. Both are
commercially hosted and the hosting company doesn't support webmail
software. I have a problem with replying to messages, almost everytime I
go to send the reply I get:
ERROR : Connection dropped by imap-server.
Query: STORE 753:753 +FLAGS (\Answered)
By searching the source code and not finding this error I assume it comes
from Cyrus. I'm guessing it's having problems setting the answered flag on
the message that was replied to? Can anyone suggest why this might be the
case? Does anyone have any experience of SquirrelMail and Cyrus? What can
I do next in the way of diagnosis or remedy?
Every time I set up SM with Cyrus and use altnamespace I always have to set:

$noselect_fix_enable= true;

in config/config.php

*shrug*

--Jo



Admin CGI

2003-11-25 Thread Joakim Ryden
Hey folks -

does anyone have any nice perl/php/python/whatever CGI scripts that they 
use to administer their Cyrus installation(s) and feel like sharing? I 
suppose I could just write my own but no need to re-invent the wheel.

--Jo



cyr_expire or ipurge?

2003-11-23 Thread Joakim Ryden
Hey folks -

I've been looking into setting up some housekeeping on a Cyrus server 
and I'm a little confused about cyr_expire vs. ipurge...

I've come up with an ipurge event like so:

purgeold  cmd="ipurge -f -d 15 user.*.Junk user.*.Trash" at=0315

Should/could this be rewritten with cyr_expire instead? If so, how? 
Using 2.2.2.

Thanks.

--Jo



Re: lmtpd rejecting messages

2003-11-19 Thread Joakim Ryden
On Nov 19, 2003, at 12:44 PM, Alex Cresswell wrote:

So I posted earlier with Service unavailable messages coming back from 
lmtpd, this is the bounce message I'm seeing.  Is there any way to 
override lmtpd so that it will accept these messages or fix to filter 
these characters out?

... while talking to localhost:
>>> DATA
<<< 554 5.6.0 Message contains NUL characters
554 5.0.0 Service unavailable
I've done some homework on this as well... There doesn't seem to be a 
(to me at least) real good satisfactory solution. Searching around in 
various places people have suggested using your MTA's filtering 
capabilities against *all* incoming e-mail to filter out NULs. 
Since this kind of filtering is pretty expensive in terms of horsepower 
this is not an acceptable solution for me. Which so far has brought me 
back to square one, grinding my teeth and accepting the 
rejections.. Please let the list know if you come up with anything.

--Jo



Re: Imap and PostFix - Authentication

2003-11-17 Thread Joakim Ryden
On Nov 17, 2003, at 8:57 AM, Tim Branson wrote:

How do I get the SMTP part of PostFixto do theunixauthentication?  I 
have IMAP authenticating to unixfine.  What about Postfix? Thanks so 
much.
README_FILES/SASL_README in the Postfix distribution has pretty 
detailed information on setting this up.

--Jo




Re: createmailbox virtual domain problem

2003-11-16 Thread Joakim Ryden
On Nov 16, 2003, at 6:20 PM, Troex Nevelin wrote:

Hello.

I want to set up cyrus-imapd to work with virtual domains but I have
problems creating mail box'es:
as it is written in documentation:

To create a new INBOX for user 'test' in defaultdomain:
   cm user.test
To create a new INBOX for user 'test' in domain 'example.com':
   cm [EMAIL PROTECTED]
[...]

before i didn't use virtual domains and everything worked fine.
any ideas?
Virtual domain support is only available in 2.2.x.

--Jo



Realms?

2003-11-15 Thread Joakim Ryden
Hey everyone -

this (or variations of this) has worked for me so many times in the 
past that I never considered it a hump to get over but this time I'm 
confuzzled.

I can't get realm auth working with 2.2.2-BETA (and SASL 2.1.15). I add 
a user like so:

saslpasswd2 -c jryden

test it with

imtest -a jryden localhost

This user is able to log in to the IMAP server no problem.  I add 
another user:

saslpasswd2 -u test.com -c test

test it with

imtest -a test -r test.com localhost

and various variations of the imtest command. No dice:

Nov 15 04:16:32 cyrus imap[12149]: badlogin: localhost [127.0.0.1] 
CRAM-MD5 [SASL(-13): user not found: no secret in database]

(I tried several mechs with the same result (and the plugins are all 
there).)

What did I miss??

My imapd.conf:

configdirectory: /var/imap
partition-default: /var/spool/imap
sievedir: /var/spool/sieve
altnamespace: yes
virtdomains: yes
defaultdomain: our-own.net
userprefix: Other Users
sharedprefix: Shared Folders
admins: cyrus
allowanonymouslogin: no
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
duplicatesuppression: yes
singleinstancestore: yes
sendmail: /usr/sbin/sendmail
--Jo



Re: Still need help PLEASE!!

2003-10-24 Thread Joakim Ryden
On Friday 24 October 2003 10:24 am, JHolmes wrote:

> I was just forced into an upgrade of my mail system. I was running
> Cyrus-IMAPD 1.6 and am now on 2.x. I was not able to get the older
> version to compile and resorted to RPMs for the new version. The
> problem I am having is that I cannot read any of the old messages. Is
> there any way for me to wither convert them to whatever the new
> format is or even to flat file(s)?

Which upgrade documents have you been following?

--Jo



Re: Slightly off-topic question but very useful one

2003-10-24 Thread Joakim Ryden
On Friday 24 October 2003 08:44 am, [EMAIL PROTECTED] wrote:
> > Jim Howell wrote:
> >> Hi,
> >> I apologize for this off-topic question but I think we will all
> >> find this useful.  What mailfile size limits do folks support and the
> >> user mailbox quota size?  We are being told by some of our users that we
> >> are too restrictive.  Here at Cornell we allow 15MB mailfiles from 8am
> >> to 6pm and 100MB mailfiles from 6pm to 8am.
> >
> > Wow!  If you have users complaining about 15MB, let alone 100MB, you
> > probably need to teach them that email isn't a file transfer protocol
> > ;)  If somebody needs to send a file that large, they should be emailing
> > the link, and not the file.
>
> I'm going to chime in here as a "joe user".
>
> Most IT environments do not provide a "File Transfer Protocol" to the
> users which might be appropriate for transfer of data between departments,
> buildings, organizations, or even companies/universities...
>
> If you first solve that problem, then you might be able to address this
> (secondary) problem of people using SMTP instead of FTP.
>
> As a not-so joe user...

I'm gonna chime in under this heading too As an administrator I find that 
oftentimes there *is* a method in place for this sort of thing but it just 
doesn't seem to come to mind to the user until I grab the user's hand and 
guide his mouse movements to the big shiny SMB share icons on his desktop...

--Jo



Re: execvp

2003-10-22 Thread Joakim Ryden
:-)

There is no execvp program. That's a system call. You will probably want to 
make sure the saslauthd binary is where it says in /etc/init.d/saslauthd that 
it is.

--Jo


On Wednesday 22 October 2003 01:44 pm, [EMAIL PROTECTED] wrote:
> Hello all,
>
> I recently moved my lovely Cyrus server (on a RedHat 9 box) across the
> country (Boston, MA to Boulder, CO) and now, somehow, I appear to be
> missing execvp.
>
> When trying to connect to the imapd server I get the message that saslauthd
> was unable to connect.  Fine.  When I try to launch the saslauthd sever I
> get this:
>
> [EMAIL PROTECTED] log]# /etc/rc.d/init.d/saslauthd start
> Starting saslauthd: execvp: No such file or directory [FAILED]
>
> A quick locate for execvp turns up:
>
> [EMAIL PROTECTED] init.d]# locate execvp
> /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/POSIX/execvp.al
> /usr/share/man/man3/execvp.3.gz
>
> So, it appears that the execvp program is missing.  I tried to find this
> file on the net, but have been unsuccessful.  Is this part of a package
> that I can download, or is there any suggestion for where I can find this
> file.
>
> Thanks,
>
> ~~Guildencrantz



Re: LMTP ownership?

2003-10-21 Thread Joakim Ryden
What are the permissions on the directory where the socket lives? Can postfix 
search the directory?

--Jo

On Tuesday 21 October 2003 01:39 pm, Doug Koobs wrote:
> Setting up Postfix and Cyrus on RH9. I can send mail, but can not seem to
> receive. In /var/log/maillog, the following error shows up:
>
> (connect to /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp]: No such
> file or directory)
>
> The file does exist, and is owned by root, but has rwx set for all other
> users:
>
> [EMAIL PROTECTED] socket]# pwd
> /var/lib/imap/socket
> [EMAIL PROTECTED] socket]# ls -l lmtp
> srwxrwxrwx1 root root0 Oct 21 16:08 lmtp
> [EMAIL PROTECTED] socket]#
>
>
> What do I need to do to fix this? Go to the Postfix mailing list? :) Does
> the sticky bit have something to do with this?
>
> Thanks,
>
> Doug
>
>
>
>
> !DSPAM:3f959e3b40694931561495!



Re: spam filtering

2003-10-15 Thread Joakim Ryden
On Wednesday 15 October 2003 02:37 am, Tom Allison wrote:
[...]
> I'm thinking your answer might be correct.
>
> Even though I tried a rpm for amavisd-new and that was a pretty bad
> failure, it might make sense for me to just install and configure all of
> this without trying to rely on any packaging.

The modules install pretty easily (using perl -MCPAN -e shell) provided you 
have a fairly recent version of Perl. Note also that some of the modules are 
optional as far as just getting amavisd running.

--Jo



Re: broken mailbox

2003-10-15 Thread Joakim Ryden
On Tuesday 14 October 2003 08:59 am, Gerard Ceraso wrote:
>  I don't know what I did but I think I broke one of my mail boxes. I cannot
> get to it from any of my mail browsers, this folder is pretty hefty though.
> I am using cyrus imap I believe version 1.5. I get this error when trying
> to rename it from cyradm.
>
> localhost> renm "INBOX.Debian Users" INBOX.DebianUsers
> command failed: Mailbox has an invalid format

You're not using Red Hat, are you?

--Jo



Re: lmtp connect problem

2003-10-09 Thread Joakim Ryden
On Thursday 09 October 2003 04:26 pm, Jon Johnson wrote:
JJ> First, many thanks to Rob on helping with my last
JJ> question. Secondly, sorry for bugging you all again,
JJ> but I have been searching for info on this like mad
JJ> and none applies to my problem:
JJ>
JJ> I have cyrus running ok when I call it as
JJ> "/usr/cyrus/bin/master &" , but when I try to run it
JJ> from xinetd, I get messages that say
JJ> "connect(/var/imap/socket/lmtp) failed: Connection
JJ> refused" and mail doesn't get through.
JJ>
JJ> Now, in /etc/cyrus.conf I have (among other things):
JJ>
JJ> lmtpunix cmd="lmtpd"
JJ> listen="/var/imap/socket/lmtp" prefork=1
JJ>
JJ>
JJ> In /etc/xinetd.d/lmtp I have:
JJ>
JJ> service lmtp
JJ> {
JJ> disable = no
JJ> socket_type = stream
JJ> protocol= tcp
JJ> wait= no
JJ> user= cyrus
JJ> server  = /usr/cyrus/bin/deliver -e -l
JJ> }
JJ>
JJ>
JJ> and in /etc/postfix/main.cf I have:
JJ>
JJ>
JJ> mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
JJ>
JJ> And so far all the answers in the archives I've seen
JJ> for this sort of problem assume that you're missing
JJ> one of those things. Any ideas?

This is going to save you a lot of time: don't try to run anything from 
[x]inetd and definitely read up on the installation documentation. I've never 
heard of anyone running a Cyrus installation out of [x]inetd and I don't know 
if it's even possible. If it is you have the configuration all mixed up.

The 'master' process is what binds to the IMAP/POP ports and forks off IMAP 
processes when there are incoming connections, it also creates the LMTP 
socket (in /var/imap/socket if that is where you configured it to be) for 
your MTA to deliver to. If you use Postfix to hand the messages over to Cyrus 
via LMTP the deliver program is redundant.

--Jo



info-cyrus@lists.andrew.cmu.edu

2003-09-24 Thread Joakim Ryden
On Tuesday 23 September 2003 23:58, Simon Matter wrote:
> Hi,
>
> I've got a problem report from a user of my cyrus-imapd rpms who tried
> to create a mailbox like this:
>
> localhost.localdomain> cm 'user.&g0l6Pw-'
> syntax error: cannot deal with `&' here
>
> I tried it on RedHat 7.2 and it works, but it doesn't on RedHat 9. RH7.2
> uses Perl 5.6.1 while RH 9 uses Perl 5.8.0.
>
> Does anybody know what the problem could be?

You could try the usual RH LANG variable dance before using cyradm and see 
what happens...

--Jo



Re: can´t compile cyradm

2003-09-22 Thread Joakim Ryden
On Monday 22 September 2003 15:45, Danny García Hernández wrote:
> ldd command show:
>
> [EMAIL PROTECTED] cyrus-imapd-2.2.1-BETA]$ ldd
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus/IMAP/IMAP.so
> libssl.so.2 => /lib/libssl.so.2 (0x40018000)
> libcrypto.so.2 => /lib/libcrypto.so.2 (0x40046000)
> libc.so.6 => /lib/libc.so.6 (0x4010c000)
> libdl.so.2 => /lib/libdl.so.2 (0x40233000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)
> [EMAIL PROTECTED] cyrus-imapd-2.2.1-BETA]$
>
> I think that i have to problems:
>
> 1- Why perl Makefile.PL can´t find my libsasl2 into /opt/lib ?
> 2- After fix Makefile.PL with the correct path to INCs and LIBs, why i
> can´t exceute cyradm?


I really don't know because I've never compiled cyradm "standalone" like that. 
Chances are if you fix #1 you will automagically fix #2 as well.

--Jo




Re: can´t compile cyradm

2003-09-22 Thread Joakim Ryden
What does
'ldd /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus/IMAP/IMAP.so'
show?

--Jo


On Monday 22 September 2003 15:21, Danny García Hernández wrote:
> Yes, i did it.
>
> My cyrus-imap was compiled with  sasl support. Right now, i need to compile
> the perl scripts and cyradm administrative tool, and here is the the
> problem. I was looking for into Makefiel.PL and changind the SASL_INC  and
> SASL_LIB values, the compile process finish OK, but executing cyradm i get
> this errors:
>
> [EMAIL PROTECTED] cyrus-imapd-2.2.1-BETA]# /usr/bin/cyradm
> Can't load
> '/usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus/IMAP/IMAP.so' for
> module Cyrus::IMAP:
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/auto/Cyrus/IMAP/IMAP.so:
> undefined symbol: sasl_client_init at
> /usr/lib/perl5/5.6.1/i386-linux/DynaLoader.pm line 206.
>  at /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 44
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 44.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Admin.pm line 44.
> Compilation failed in require at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm line 60.
> BEGIN failed--compilation aborted at
> /usr/lib/perl5/site_perl/5.6.1/i386-linux/Cyrus/IMAP/Shell.pm line 60.
> Compilation failed in require.
> BEGIN failed--compilation aborted.
>
> Any advice will be very appreciated
> Thanks
> Danny
>
> - Original Message -
> From: "Etienne Goyer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 22, 2003 10:39 PM
> Subject: Re: can´t compile cyradm
>
> > I guess you want to specify "--with-sasl=/opt/include/sasl" or something
> > along that line to ./configure.  Have you tried it ?
> >
> > On Mon, Sep 22, 2003 at 09:28:57PM +0200, Danny García Hernández wrote:
> > > Ken, thank for the first answer to my fisrt problem with cyrus-imapd.
> > >
> > > But i already have the second stone in my way and the name is CYRADM.
>
> The problem is that i have installed cyrus-imap into /opt directory, the
> library are into /opt/lib/sasl2  and the include files are into
> /opt/include/sasl. Then,  i´km trying to compile cyradm following the
> documentation and i can´t, the compiled proccess is getting this message.
>
> > > Note (probably harmless): Not found libsasl2
> > >
> > > Can any one advice with this?
> > >
> > > Thank in advanced
> > > Danny
> >
> > --
> > Etienne GoyerLinux Québec Technologies Inc.
> > http://www.LinuxQuebec.com   [EMAIL PROTECTED]
>
> !DSPAM:3f6f6e31166561399114306!




Re: [Fwd: Virtual domains shared folders]

2003-09-17 Thread Joakim Ryden
Ken Murchison wrote:



Joakim Ryden wrote:

No takers on this one? From the description below can anyone say if I
did something obviously wrong? Or does it sound like a "it should be
working but it isn't"? More info needed to troubleshoot?


This should work.  Did you set 'postuser' to something other than the 
default ""?


You da man Ken. Too many sudo'ers on this machine editing too many files 
they shouldn't be. :) Resetting it back to its default empty string took 
care of the problem. Many thanks!

--Jo



[Fwd: Virtual domains shared folders]

2003-09-17 Thread Joakim Ryden
No takers on this one? From the description below can anyone say if I
did something obviously wrong? Or does it sound like a "it should be
working but it isn't"? More info needed to troubleshoot?

--Jo

-Forwarded Message-----
From: Joakim Ryden <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Virtual domains shared folders
Date: Tue, 16 Sep 2003 16:57:58 -0700

Hey fellas -

so I've seen some confusion about shared folders and thought I'd check
out what the fuss was all about. ;)

I've used shared folders very happily and successfully in the past, but
on slightly older installations of Cyrus (this particular installation
is 2.2.1), and obviously never in a virtual domains environment. 

Ok, so what I did was:

localhost.freebsd.se> cm [EMAIL PROTECTED]
localhost.freebsd.se> sam [EMAIL PROTECTED] anyone lrspi
localhost.freebsd.se> sam [EMAIL PROTECTED] anonymous p
localhost.freebsd.se> lam [EMAIL PROTECTED]
anonymous p
anyone lrspi

Now, using any IMAP client the folder shows up just fine and everyone
can do what they need to do to it. I cannot for the life of me figure
out how to send mail to this new "folder". The LMTP conversation between
Postfix and Cyrus goes something like (sorry for the crappy wrapping):

Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute:
original_recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name:
original_recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute value:
[EMAIL PROTECTED]
Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute:
recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.0.0 ok
Sep 17 01:53:31 hq postfix/lmtp[19514]: deliver_message: reusing (count
1) session with: /var/imap/socket/lmtp
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: MAIL
FROM:<[EMAIL PROTECTED]> SIZE=908
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: RCPT
TO:<[EMAIL PROTECTED]>
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: DATA
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.1.0 ok
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-Mailbox unknown. 
Either there is no mailbox associated with this
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-name or you do not
have authorization to see it.
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550 5.1.1 User unknown

Did I miss something silly?

--Jo



Re: \HasNoChildren

2003-09-17 Thread Joakim Ryden
On Wed, 2003-09-17 at 02:11, damian wrote:
> Hi Jo,
> 
> I tried to issue cm user.damian,'INBOX'
> 
> however, it still says (\HasNoChildren).
> 
> Is that the correct way to create subfolders?

No, the correct way would be:

cm user.damian.sublevel1.sublevel2

etc.

Also, user.damian is the INBOX. You don't need to create that.

--Jo



Re: \HasNoChildren

2003-09-17 Thread Joakim Ryden
On Wed, 2003-09-17 at 01:12, damian wrote:
> Hi,
> 
> I try to add a user in cryadm using cm.
> 
> cm user.damian
> 
> however, when I issue a lm command, it shows user.damian(\HasNoChildren)
> when I issue a ls command, there is no damian directory.
> 
> Did I did anything wrong?

No. :)  It's supposed to look that way. HasNoChildren just means you
haven't created any subfolders of user.damian (yet).

--Jo



Re: Virtual domains shared folders

2003-09-16 Thread Joakim Ryden
On Tue, 2003-09-16 at 23:16, Tarjei Huse wrote:
> Hi,
> 
> >I've used shared folders very happily and successfully in the past, but
> >on slightly older installations of Cyrus (this particular installation
> >is 2.2.1), and obviously never in a virtual domains environment. 
> >  
> >
> What's your postfix version?

It's a snapshot from a couple of weeks ago.

--Jo



Virtual domains shared folders

2003-09-16 Thread Joakim Ryden
Hey fellas -

so I've seen some confusion about shared folders and thought I'd check
out what the fuss was all about. ;)

I've used shared folders very happily and successfully in the past, but
on slightly older installations of Cyrus (this particular installation
is 2.2.1), and obviously never in a virtual domains environment. 

Ok, so what I did was:

localhost.freebsd.se> cm [EMAIL PROTECTED]
localhost.freebsd.se> sam [EMAIL PROTECTED] anyone lrspi
localhost.freebsd.se> sam [EMAIL PROTECTED] anonymous p
localhost.freebsd.se> lam [EMAIL PROTECTED]
anonymous p
anyone lrspi

Now, using any IMAP client the folder shows up just fine and everyone
can do what they need to do to it. I cannot for the life of me figure
out how to send mail to this new "folder". The LMTP conversation between
Postfix and Cyrus goes something like (sorry for the crappy wrapping):

Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute:
original_recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name:
original_recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute value:
[EMAIL PROTECTED]
Sep 17 01:53:31 hq postfix/lmtp[19514]: lmtp socket: wanted attribute:
recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: input attribute name: recipient
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.0.0 ok
Sep 17 01:53:31 hq postfix/lmtp[19514]: deliver_message: reusing (count
1) session with: /var/imap/socket/lmtp
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: MAIL
FROM:<[EMAIL PROTECTED]> SIZE=908
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: RCPT
TO:<[EMAIL PROTECTED]>
Sep 17 01:53:31 hq postfix/lmtp[19514]: >
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: DATA
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 250 2.1.0 ok
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-Mailbox unknown. 
Either there is no mailbox associated with this
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550-name or you do not
have authorization to see it.
Sep 17 01:53:31 hq postfix/lmtp[19514]: <
/var/imap/socket/lmtp[/var/imap/socket/lmtp]: 550 5.1.1 User unknown

Did I miss something silly?

--Jo




Re: Sql based Spamassassin with sieve

2003-09-15 Thread Joakim Ryden
On Mon, 2003-09-15 at 08:38, Ramprasad A Padmanabhan wrote:
> On Mon, 2003-09-15 at 20:54, Darron Froese wrote: 
> > On Monday, September 15, 2003, at 01:53 AM, Joakim Ryden wrote:
> > 
> > >>> How about this?
> > >>> http://au2.spamassassin.org/full/2.5x/dist/sql/README
> > >>>
> > >>> works for me.
> > >>> --
> > >>> darron froese
> > >> I started from that page too. My actual problem is How Do I tell cyrus
> > >> ( or sieve ) to run spamassassin with the user name to whom the mail
> > >> is addressed
> > >
> > > As far as I have been able to understand you don't. You'll have to use
> > > procmail (or maildrop or whatever is your preference) as your
> > > LDA/intermediary ( IDA? :) - call SA from procmailrc the first thing 
> > > you
> > > do and call deliver the last thing you do. But I may be missing
> > > something.
> > 
> > This is how I do it:
> > 
> > Start spamd so it's listening on localhost:
> > 
> > spamd -d -q -x -u cyrus
> > 
> > In postfix/main.cf:
> > 
> > mailbox_command = /usr/bin/procmail -t -a "$EXTENSION"
> > mailbox_transport = procmail
> > 
> > In postfix/master.cf:
> > 
> > procmail  unix  -   n   n   -   -   pipe
> > flags=Ru user=cyrus argv=/usr/bin/procmail -t -m USER=${user} 
> > EXTENSION=${extension} /etc/procmailrc
> > 
> > Then in my procmail recipe it sends the email via spamc:
> > 
> > DELIVERMAIL="/usr/lib/cyrus/deliver"
> > IMAP="$DELIVERMAIL -e -a $USER -m user.$USER"
> > SPAMIT="$DELIVERMAIL -e -a $USER -m user.$USER.spam"
> > 
> > DROPPRIVS=yes
> > :0fw
> > | /usr/bin/spamc -f -u $USER
> > 
> > :0
> > * ^X-Spam-Status: Yes
> > | $SPAMIT
> > 
> > # If it's got an extension - put it there.
> > :0 w
> > * EXTENSION ?? [EMAIL PROTECTED]
> > | $IMAP.$EXTENSION
> > 
> > # If there's no extension - put it in the INBOX.
> > :0 w
> > | $IMAP
> > 
> > :0 w
> > {
> > EXITCODE=$?
> > HOST
> > }
> So Does that mean That I have to use procmail and .procmailrc
> 
> But my problem is I dont  the (Unix )users created on my imap server.
> The users are simple LDAP accounts and cyrus Account
> So there are no home areas and no procmailrc file
> That is why I Have to use cyrus with lmtp 
> I was just wondering if it would be possible to do it in sieve

That's why the above Postfix config uses /etc/procmailrc - that's all
you need, not a .procmailrc in each user's home dir.

--Jo



Re: Sql based Spamassassin with sieve

2003-09-15 Thread Joakim Ryden
On Mon, 2003-09-15 at 00:35, Ramprasad A Padmanabhan wrote:
> On Fri, 2003-09-12 at 21:16, Darron Froese wrote: 
> > On Friday, September 12, 2003, at 03:11 AM, Ramprasad A Padmanabhan 
> > wrote:
> > 
> > > Precisely.
> > > But thats what I do not want. There are some people in my office who
> > > themselves will decide what is spam and what is not
> > > Now How Can I run a spamassassasin with individual settings
> > > If there are 5 rcpts the SA must sperate instances run for all 5 of 
> > > them
> > > Must be someway in sieve But I am not able to get one working
> > 
> > How about this?
> > http://au2.spamassassin.org/full/2.5x/dist/sql/README
> > 
> > works for me.
> > --
> > darron froese
> I started from that page too. My actual problem is How Do I tell cyrus
> ( or sieve ) to run spamassassin with the user name to whom the mail
> is addressed

As far as I have been able to understand you don't. You'll have to use
procmail (or maildrop or whatever is your preference) as your
LDA/intermediary ( IDA? :) - call SA from procmailrc the first thing you
do and call deliver the last thing you do. But I may be missing
something.

--Jo



Re: Re[2]: How to hand over mails from postfix to cyrus

2003-09-14 Thread Joakim Ryden
If you read LMTP_README I think the bottom line is: don't use the pipe
transport with Cyrus; it isn't the best option available.

HTH,
Jo

On Sun, 2003-09-14 at 19:27, Oliver Demetz - Hardware-XPress.de wrote:
> OK, but now an ongoing question:
> in pipe-manpage, they just take [EMAIL PROTECTED] as
> example-mailadress.
> $extension is 'bar'
> $mailbox is 'foo+bar'
> $user is 'foo'
> OK.
> But what, if mail goes to [EMAIL PROTECTED]
> And, in my master.cf, -m parameter is '$extension $user'
> According to the '[EMAIL PROTECTED]'- example,
> would the commandline be '-m bar foo' or '-m barfoo'???
> 
> I hope you were able to follow my argumentation
> I'm not very good at English :-/
> Big Thanks in advance...
> Oliver
> 
> Joakim Ryden wrote:
> > The pipe(8) man page is a good, short and easy read. The LMTP_README
> > that comes with Postfix also has lots of good tips and stuff in it.
> 
> > --Jo
> 
> > On Sun, 2003-09-14 at 18:26, Oliver Demetz - Hardware-XPress.de wrote:
> >> Hi!
> >> I searched for hours now for a documentation on how postfix hands over
> >> mail to cyrus.
> >> 
> >> An Example:
> >> I want to host an emailadress [EMAIL PROTECTED]
> >> This Mail shall be stored in a mailbox called xxx-xyz-com for
> >> example. So, how can I tell postfix and cyrus to do that???
> >> 
> >> What I already found out:
> >> 
> >> The commandline, which is executed by Postfix (defined in master.cf)
> >> is:
> >> pipe user=cyrus argv=/usr/cyrus/bin/deliver -e -r ${sender} -m ${extension} 
> >> ${user}
> >> so, deliver is told to store the mail into a mailbox. My question:
> >> what's the value of $extension and $user???
> >> Is $user always = cyrus (as defined at the beginning of the line?
> >> Why do I even need to specify a user? Wouldn't it be enough to tell imap the
> >> destination-mailbox?
> >> And, in the case that user is cyrus, from where takes postfix the
> >> password for cyrus to authenticate against cyrusimapserver???
> >> 
> >> I'm really confused.
> >> Please help me getting light into the dark!
> >> 
> >> So long and really BIG THANKS to all of you in advance!
> >> 
> >> Oliver Demetz
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> 
> 
> 



Re: How to hand over mails from postfix to cyrus

2003-09-14 Thread Joakim Ryden
The pipe(8) man page is a good, short and easy read. The LMTP_README
that comes with Postfix also has lots of good tips and stuff in it.

--Jo

On Sun, 2003-09-14 at 18:26, Oliver Demetz - Hardware-XPress.de wrote:
> Hi!
> I searched for hours now for a documentation on how postfix hands over
> mail to cyrus.
> 
> An Example:
> I want to host an emailadress [EMAIL PROTECTED]
> This Mail shall be stored in a mailbox called xxx-xyz-com for
> example. So, how can I tell postfix and cyrus to do that???
> 
> What I already found out:
> 
> The commandline, which is executed by Postfix (defined in master.cf)
> is:
> pipe user=cyrus argv=/usr/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
> so, deliver is told to store the mail into a mailbox. My question:
> what's the value of $extension and $user???
> Is $user always = cyrus (as defined at the beginning of the line?
> Why do I even need to specify a user? Wouldn't it be enough to tell imap the
> destination-mailbox?
> And, in the case that user is cyrus, from where takes postfix the
> password for cyrus to authenticate against cyrusimapserver???
> 
> I'm really confused.
> Please help me getting light into the dark!
> 
> So long and really BIG THANKS to all of you in advance!
> 
> Oliver Demetz
> 
> 
> 
> !DSPAM:3f651886132314374319027!
> 
> 



Re: AW: Cyrus-Imap gmake problems

2003-09-10 Thread Joakim Ryden
I certainly don't mean to be rude, just wanted to point out that if you
don't know how to check if perl is working you are going to have a very
hard time installing and configuring Cyrus in general Perhaps there
is a prepackaged version of Cyrus for the system you are running?

--Jo

On Wed, 2003-09-10 at 11:07, Peter Rottmann wrote:
> Hi Rob,
> 
> Thanks for your quick reply.
> Ok, I understand, but how can I check if perl works fine ...
> As I said, unfortunately not a UNIX Expert.




Re: SIEVE variables not working

2003-08-29 Thread Joakim Ryden
On Fri, 2003-08-29 at 09:34, Ken Murchison wrote:
> David Meier wrote:
> 
> > When I am sending mailto notifications the following variables are not resolved:
> > 
> > $env-from$
> > $text$
> > $text[n]$
> 
> The $text$ variables aren't implemented yet.  $env_from$ IS implemented, 
> but I can't see any obvious reason in the source that would cause it not 
> to work.

$env-from$ or $env_from$ ? :)

--Jo



Re: shared folder for spam

2003-08-24 Thread Joakim Ryden
Etienne Goyer said the following on 08/22/2003 03:28 PM:
On Fri, Aug 22, 2003 at 12:41:52PM -0600, Gary C. New wrote:

Does anyone know how to configure horde's imp for shared cyrus folders?


AFAIK, released IMP do not support IMAP shared folder.  However, support
is in the CVS.  I am using it here and it work great.
I haven't tried IMP with shared folders on a Cyrus server but on a 
courier-imap server the shared folders work great in the latest release 
versions of IMP too.

--Jo




Re: root mail account problem

2003-08-06 Thread Joakim Ryden
On Wed, 2003-08-06 at 15:01, Oliver wrote:
> I now tryied with local_transport = lmtp:unix:/var/lib/imap/socket/lmtp in
> /etc/postfix/main.c and the new error is
> 
> 
> Aug  7 00:52:58 serenity postfix/qmgr[23637]: CB4CEC0445:
> from=<[EMAIL PROTECTED]>, size=649, nrcpt=1 (queue active)
> Aug  7 00:52:58 serenity postfix/lmtp[23659]: C6E5EBFBE7:
> to=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>,
> relay=/var/imap/socket/lmtp[/var/imap/socket/lmtp], delay=64494,
> status=deferred (host /var/imap/socket/lmtp[/var/imap/socket/lmtp] said: 452
> 4.2.2 Over quota (in reply to RCPT TO command))
[...]

That error message is pretty clear though, isn't it? 

--Jo



Re: Anyone migrating from lotus to cyrus

2003-08-01 Thread Joakim Ryden
On Fri, 2003-08-01 at 01:24, Ramprasad A Padmanabhan wrote:
> On Wed, 2003-07-16 at 12:28, Joakim Ryden wrote: 
[...]
> > Check out this tool:
> > http://www.jplanglois.com/products/imapcp/
> > 
> > I have used it for Exchange, cyrus, courier and whole bunch of other IMAP
> > migrations. It has never given me any problems at all.
> > 
> > --Jo
> But this does not work for lotus notes server 5.0.8
> 
> Strangely enough when I configure my outlook express client It is able
> to fetch the mails. So If the lotus server were not standards
> compliant then how does it work with outlook express

Are you saying that you think OE is standards compliant? That's a hoot.

Seriously though, can you be a little more specific about what is not
working? Error messages?

--Jo



Re: Sieve vacation failure

2003-07-31 Thread Joakim Ryden
Hi -

make sure

sendmail:

in your imapd.conf is pointing to the right place.

--Jo

On Thu, 2003-07-31 at 08:21, John Lederer wrote:
> Sure would appreciate any hints on how to diagnose the problem|
> 
> John Lederer wrote:
> 
> > We are running Postfix with Cyrus .
> >
> > Sieve works fine for filing in mailboxes, and for redirects.  It 
> > doesn't do anything for vacation.
> >
> > here is the sieve script:
> >
> > #Mail filter rules for bjz
> > #Generated by bjz using SmartSieve 0.5.0-devel 2003/07/29 11:44:00
> > require ["vacation"];
> >
> > vacation :days 5 :addresses ["[EMAIL PROTECTED]", 
> > "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "[EMAIL PROTECTED]"] text:
> > I wish I was on vacation
> > .
> > ;
> >
> > The postfix log shows no indication that the vacation filter worked at 
> > all:
> > Jul 30 11:26:29 mailbackup postfix/qmgr[7697]: DB0F014452: 
> > from=<[EMAIL PROTECTED]>, size=1901, nrcpt=1 (queue active)
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: input attribute name: 
> > status
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: input attribute value: 0
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: public/cleanup socket: 
> > wanted attribute: reason
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: input attribute name: 
> > reason
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: input attribute value: 
> > (end)
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: public/cleanup socket: 
> > wanted attribute: (list terminator)
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: input attribute name: 
> > (end)
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: > 
> > localhost[127.0.0.1]: 250 Ok: queued as DB0F014452
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: watchdog_pat: 0x808ad10
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: < 
> > localhost[127.0.0.1]: QUIT
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: > 
> > localhost[127.0.0.1]: 221 Bye
> > Jul 30 11:26:29 mailbackup postfix/smtpd[9970]: disconnect from 
> > localhost[127.0.0.1]
> > Jul 30 11:26:29 mailbackup postfix/smtp[9967]: < 127.0.0.1[127.0.0.1]: 
> > 250 Ok
> > Jul 30 11:26:29 mailbackup postfix/smtp[9967]: C241314402: 
> > to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], 
> > delay=0, status=sent (250 Ok)
> > Jul 30 11:26:29 mailbackup postfix/smtp[9967]: > 127.0.0.1[127.0.0.1]: 
> > QUIT
> > Jul 30 11:26:29 mailbackup postfix/smtp[9967]: name_mask: resource
> > Jul 30 11:26:29 mailbackup postfix/smtp[9967]: name_mask: software
> > Jul 30 11:26:30 mailbackup postfix/pipe[9972]: DB0F014452: 
> > to=<[EMAIL PROTECTED]>, relay=cyrus, delay=1, status=sent 
> > (mailbackup.dewittross.net)
> >
> > Similarly the imapd log indicates nothing:
> > Jul 30 11:26:29 mailbackup master[9974]: about to exec 
> > /usr/lib/cyrus/bin/lmtpd
> > Jul 30 11:26:29 mailbackup lmtpunix[9974]: executed
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: accepted connection
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: lmtp connection preauth'd as 
> > postman
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: duplicate_check: 
> > <[EMAIL PROTECTED]>user.bjz 0
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: mystore: starting txn 2147483886
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: mystore: committing txn 
> > 2147483886
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: duplicate_mark: 
> > <[EMAIL PROTECTED]>user.bjz 1059582390
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: mystore: starting txn 2147483887
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: mystore: committing txn 
> > 2147483887
> > Jul 30 11:26:30 mailbackup lmtpd[9974]: duplicate_mark: 
> > <[EMAIL PROTECTED]>.bjz+.sieve. 1059582390
> > Jul 30 11:27:30 mailbackup master[6690]: process 9974 exited, status 0
> >
> >
> >
> > I would appreciate any thoughts on how I can track down the problem.
> >
> >
> > John
> >
> >
> >
> >
> >



Re: cyradm and spaces

2003-07-22 Thread Joakim Ryden
On Tue, 2003-07-22 at 17:09, joe ritter wrote:
> The other oddity is that user who are accessing cyrus
> boxes through a squirrel mail front end can create
> mail
> boxes with space in the name just fine? Is there
> another means of create? This is really strange.
> Thanks again for your help.

This is a complete shot in the dark... but maybe there is something with
how the spaces are treated on the command line since Red Hat now uses
utf8 by default. Try setting the LANG variable to en_US before using
cyradm and then try to add something with spaces.

--Jo



Re: empty line Cyrus' reject/vacation messages (was: Re: Sievewrites an empty line in headers for reject/vacation)

2003-07-22 Thread Joakim Ryden
On Tue, 2003-07-22 at 01:56, Stephen Grier wrote:
> On Sat, 2003-07-19 at 21:41, Bernhard Erdmann wrote:
> > Hi,
> > 
> > if Cyrus 2.1.13 sends reject or vacation messages generated by Sieve on 
> > Exim 3.36 Linux systems and being filed back from Exim into Cyrus, a 
> > blank line is added in the middle of the header lines causing the second 
> > part of the header being treated as the body of the mail.
> 
> We were seeing this with Cyrus and exim-3.22.
> 
> > Exim 4.20 has an option drop_cr [5] but not Exim 3.36.
> 
> exim-3.22 has a -dropcr command line option.

I am seeing this using the latest snapshot version of Postfix and Cyrus
2.2.1. There's no reject/vacation messages involved though, just regular
lmtp delivery and it doesn't happen all the time. Does anyone know if
there is a drop_cr equivalent for Postfix?

--Jo



Re: Anyone migrating from lotus to cyrus

2003-07-16 Thread Joakim Ryden
En viss Ramprasad A Padmanabhan skrev:
[...]
> Great to hear that you too are using Mail::IMAPClient. Just a question
> When I used the migrate function to migrate the folders ( from a WU-imap
> server to a cyrus server ) I found that My script would sometimes just
> hang. This would happen whenever the mails included some spechial
> charachters and '\0' chars
> So I did the laborius way of getting the mail list and copying all mails
> one by one and timing out if a mail took too long. This way I also got
> rid of the bug that would set an incorrect date on the destination
> server. The date problem occurred only for Outlook Express clients.
> BTW I am using Mail::IMAPClient ver 2.2.7
>
> Now When I am trying to migrate from a lotus server I am having more
> problems of mails timing out
> Besides there is an excellent pascal script for IMAP copy at
> http://home.arcor.de/armin.diehl/imapcopy/imapcopy.html
> But that too does not copy all mails
>
> I was looking if there was a utlility that could directly read the
> ".nsf" files from a lotus server and convert to mails in cyrus
>
> Did you not face these problems at all, Can you just me mail me your
> script If you dont mind.

Check out this tool:

http://www.jplanglois.com/products/imapcp/

I have used it for Exchange, cyrus, courier and whole bunch of other IMAP
migrations. It has never given me any problems at all.

--Jo



Re: Webmail -- What's recommended?

2003-07-15 Thread Joakim Ryden
On 2003.07.15 18:49 Wil Cooley wrote:
=> On Tue, 2003-07-15 at 07:27, Etienne Goyer wrote:
=> > I love IMP.  It's very flexible and have a ton of features.  But,
=> as
=> > somebody else mentioned, it's a pain to configure.
=> => This is quickly getting OT, and I apologize in advance to the 
rest of
=> the list, but does Horde still require some parts to run SUID root?
=> The
=> last time I really looked at it was several years ago, and it did
=> then
=> if memory serves.

I can't imagine what did back then - I know nothing does now though. 
It's "just" a bunch of PHP scripts.

--Jo


Re: sa prior to lmtp delivery

2003-07-15 Thread Joakim Ryden
En viss Sebastian Hagedorn skrev:
> --On Montag, 14. Juli 2003 16:36 Uhr -0700 pnelson <[EMAIL PROTECTED]>
> wrote:
>
>> How do you setup sendmail to first filter for spam and then send the
>> email onto cyrus lmtp for delivery, where sieve pprocesses the email
>> header for a spam line (or whatever sa does to the header).  Anyone give
>> me a clue, I'm kinda lost... and feeling like it can't be done.
>
> We use miltrassassin:
> 

I have to chime in too of course... Check out spampd:
http://www.wdg.us/index.cfm/rd/mta/spampd.htm

No need to run both a milter and spamd + it speaks lmtp! It rocks.

--Jo