Re: virtual domains in Cyrus 2.2

2003-01-24 Thread Ken Murchison


[EMAIL PROTECTED] wrote:
> 
> Hello,
> 
> Is there any documentation around on how to use the virual domains feature
> which is available in Cyrus 2.2 from CVS ? If no, could maybe someone tell
> me how do I enable this ?

If you have the 2.2 code, its doc/install-virtdomains.html (linked from
doc/install.html).  Otherwise, you get get it from CVSweb:
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/~checkout~/src/cyrus/doc/Attic/install-virtdomains.html?rev=1.1.2.5&content-type=text/html&hideattic=0

The document is still a little sparse.  I haven't touched this doc in
quite a while and need to get back to it soon.

> Another question regarding this feature, from the MTA point of view does
> that mean that the MTA needs to pass the account name as the full email
> address ([EMAIL PROTECTED]) ? I am asking this because then I will need to
> change my virtualuser table and such, right ?

Yes, you need the fully qualified username passed in RCPT TO.  Users in
the defaultdomain (if configured) can be passed unqualified.

-- 
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



virtual domains in Cyrus 2.2

2003-01-24 Thread marc . bigler
Hello,

Is there any documentation around on how to use the virual domains feature
which is available in Cyrus 2.2 from CVS ? If no, could maybe someone tell
me how do I enable this ?

Another question regarding this feature, from the MTA point of view does
that mean that the MTA needs to pass the account name as the full email
address ([EMAIL PROTECTED]) ? I am asking this because then I will need to
change my virtualuser table and such, right ?

Thanks
Regards




Re: Removing user doesn't remove sieve scripts

2003-01-24 Thread Ken Murchison


Roland Rosenfeld wrote:
> 
> Hi!
> 
> I just noted, that removing a user removes
> - mail//user/
> - user//.seen
> - quota//user.
> 
> but sieve// with all the files in it still persists.
> Is there any option or trick to automate removing this directory on
> user deletion, or do I have to write a cleanup mechanism to remove
> this directory by hand?

What version of Cyrus?  Auto-deleting of the sieve tree was added in
2.1.4.  You'll either have to upgrade or clean it up by hand.  Note that
if you're using fulldirhash that you'll have to grab user.c from CVS or
apply a small 1 line patch.

-- 
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



Removing user doesn't remove sieve scripts

2003-01-24 Thread Roland Rosenfeld
Hi!

I just noted, that removing a user removes 
- mail//user/
- user//.seen
- quota//user.

but sieve// with all the files in it still persists.
Is there any option or trick to automate removing this directory on
user deletion, or do I have to write a cleanup mechanism to remove
this directory by hand?

Tscho

Roland



Re: Working Vacation?? [solved?]

2003-01-24 Thread Igor Brezac

On Fri, 24 Jan 2003, John Alton Tamplin wrote:

> Igor Brezac wrote:
>
> >virtusertable:
> >[EMAIL PROTECTED]  [EMAIL PROTECTED]
> >
> >
> So you have to have an entry in virtusertable for every user on the
> domain?

Yes.

> What is the _mbox%3 part for?

userid_mbox is really meant to be a name of the mailbox.

%3 handles plussed email addresses, [EMAIL PROTECTED]

-- 
Igor






Re: Working Vacation?? [solved?]

2003-01-24 Thread Igor Brezac

On Thu, 23 Jan 2003, John Alton Tamplin wrote:

> Mikael Brandström wrote:
>
> >It should be possible to rewrite rulset Parse0 (and maybe Parse1) to make
> >them leave the local adress qualified while delivering locally. There
> >might even be something among the files in cf/cf which kan fix it, I have
> >a vague memory of something such.  Just my 2c.
> >
> >
> I made changes locally that amounted to always setting $@ whenever
> $#local was selected as a mailer (for mailers that don't use $h, it
> shouldn't matter at all).  If you redefine the local mailer to be
> cyrusv2, then look for $#cyrusv2.  The places that have to be changed are:
>
> Ruleset 0, change:
>
> R<@>$#local $: <@>  special case error msgs
>
> to
>
> R<@>$#local $@ $M $: <@>special case error msgs
>
> (if you aren't masquerading use $j instead of $M -- it could be cleaned
> up so it would work for more general configs but I was in a hurry to get
> something working for our setup).  In Ruleset Parse1, change:
>
> R< > $+ + $* < $+ > $#local $: $1 + $2  plussed name?
>
> to
>
> R< > $+ + $* < @ $+ >   $#local $@ $3 $: $1 + $2plussed name?
>
> and then the last two rules in Parse1 change from:
>
> R$=L$#local $: @ $1  special local names
> R$+ $#local $: $1regular local names
>
> to
>
> R$=L$#local $@ $M $: @ $1special local names
> R$+ $#local $@ $M $: $1  regular local names
>
> Remember that tabs separate the columns, not spaces.
>
> Then in the mailer definition, you can pass $u@$h rather than just $u.
>  I am currently using my own deliver program which then connects to LMTP
> -- this should work for the stock deliver program as well, but for
> direct LMTP delivery from sendmail you will have to get more creative.
>  I haven't tried it, but it should be possible to copy ruleset
> EnvFromSMTP to something else and modify it to add @$h to the end of the
> address if $h is defined, and then change the cyrusv2 mailer to use that
> for the envelope sender rewrite ruleset.
>

This is what I use (no sendmail m4 hacking neccessary).

FEATURE(`mailertable', ...
define(`_VIRTUSER_STOP_ONE_LEVEL_RECURSION_', `1')dnl
FEATURE(`virtusertable', ...

Mcyrus, P=[IPC], F=1lsDFMnqAmXzS,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE $h

virtusertable:
[EMAIL PROTECTED]  [EMAIL PROTECTED]

mailertable:
domain.com lmtp:/var/imap/socket/lmtp

Hope this helps.

> If anyone wants patches to the stock sendmail 8.12.7 proto.m4 file, I
> will be happy to send them with the usual disclaimers (I have not made
> any effort to make the changes more general, just working for our
> particular configuration -- YMMV).
>
> I also have changes (including 3 lines of source changes) to allow the w
> flag to be used with a local mailer yet pass through any users that
> aren't listed in getpwent (ie, I wanted to have user .forward files yet
> still allow delivery to shared mailboxes).  This hack is even more
> likely to be a problem in the future, as they are likely to eventually
> use the flag letter 'y' for something else, but if you want them just ask.
>
> One day when I get time I will clean these up and try and submit them to
> see if they will get included.
>
>

-- 
Igor











Re: cyrus 2.0.11 + snmp + Red Hat 7.3 compile fails

2003-01-24 Thread Scott Russell
On Fri, Jan 24, 2003 at 11:03:08AM -0500, Scott Russell wrote:
> Greets -
> 
> After the recent talk of snmp stats I've decided to play with it
> myself. My system is Red Hat 7.3, ucd-snmp-4.2.5-7.73.0 an cyrus
> 2.0.11 from source.

Err, Umm, make that Cyrus 2.1.11 from source. :) Sorry. Anyone have
some clues for the rest of the problem described below?

> During the build of master.c it fails with some missing libs. I found
> an old email from Igor which helps but doesn't quite solve it. After
> adding this to master/master.c to support libwrap:
> 
>   int allow_severity = LOG_DEBUG;
>   int deny_severity = LOG_ERR;
> 
> And adding -lrpmio -lrpmdb -lrpm -lpopt -lwrap to the LDLIBS to
> pulling required libs I still get the following build error. I see
> from hosts_access(5) that hosts_ctl comes from libwrap and I've
> verified that /usr/lib/libwrap.a exists. I assume ld is picking it up
> since it doesn't give me an error. At this point my amature C skills
> come to an abrubt halt. :) Any thoughts on what tweak I need to get
> past this build error?
> 
> [root@imap master]# make
> gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib  -L/usr/lib -Wall -g
> -O2  -o master master.o masterconf.o cyrusMasterMIB.o -lrpmio -lrpmdb
> -lrpm -lpopt -lwrap -lucdagent -lucdmibs -lsnmp -lssl -lcrypto  -lfl
> -ldb-3.3  -lresolv  /usr/lib/libcom_err.a
> 
> /usr/lib/libucdmibs.so: undefined reference to hosts_ctl'
> collect2: ld returned 1 exit status
> make: *** [master] Error 1
> 


-- 
  Scott Russell ([EMAIL PROTECTED])
  Linux Technology Center, System Admin, RHCE.
  Dial 877-735-8200 then ask for 919-543-9289 (TTY)




msg10627/pgp0.pgp
Description: PGP signature


cyrus 2.0.11 + snmp + Red Hat 7.3 compile fails

2003-01-24 Thread Scott Russell
Greets -

After the recent talk of snmp stats I've decided to play with it
myself. My system is Red Hat 7.3, ucd-snmp-4.2.5-7.73.0 an cyrus
2.0.11 from source.

During the build of master.c it fails with some missing libs. I found
an old email from Igor which helps but doesn't quite solve it. After
adding this to master/master.c to support libwrap:

  int allow_severity = LOG_DEBUG;
  int deny_severity = LOG_ERR;

And adding -lrpmio -lrpmdb -lrpm -lpopt -lwrap to the LDLIBS to
pulling required libs I still get the following build error. I see
from hosts_access(5) that hosts_ctl comes from libwrap and I've
verified that /usr/lib/libwrap.a exists. I assume ld is picking it up
since it doesn't give me an error. At this point my amature C skills
come to an abrubt halt. :) Any thoughts on what tweak I need to get
past this build error?

[root@imap master]# make
gcc -L/usr/local/lib -Wl,-rpath,/usr/local/lib  -L/usr/lib -Wall -g
-O2  -o master master.o masterconf.o cyrusMasterMIB.o -lrpmio -lrpmdb
-lrpm -lpopt -lwrap -lucdagent -lucdmibs -lsnmp -lssl -lcrypto  -lfl
-ldb-3.3  -lresolv  /usr/lib/libcom_err.a

/usr/lib/libucdmibs.so: undefined reference to hosts_ctl'
collect2: ld returned 1 exit status
make: *** [master] Error 1

-- 
  Scott Russell ([EMAIL PROTECTED])
  Linux Technology Center, System Admin, RHCE.
  Dial 877-735-8200 then ask for 919-543-9289 (TTY)




msg10626/pgp0.pgp
Description: PGP signature


Re: howto port cyrus-sasl-2.x on redhat linux 7.3

2003-01-24 Thread Ken Murchison
What do you mean by "port"?  It will compile out of the box, or you can
grab RPMs from members of this list.

-- 
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



howto port cyrus-sasl-2.x on redhat linux 7.3

2003-01-24 Thread crab ravi
 
 Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Re: ctl_cyrusdb DBERRORs

2003-01-24 Thread Juergen Wolf


--On Monday, January 20, 2003 08:32:20 AM +0100 Juergen Wolf 
<[EMAIL PROTECTED]> wrote:

Hi @all,

I am still getting these strange DB_ERRORS, unfortunately nobody seems to 
know any solution for this. After lots of testing I found, that these 
errors only appear if the cyrus master process is starting the "ctl_cyrusdb 
-c" process. If I start the same process as user cyrus, everything is fine.
I would greatly appreciate any hints for my situation as I can't go into 
production status with these errors occuring.

Regards,
	JuWo


--
email: [EMAIL PROTECTED]
gilb:  FhG-IIS AEMT, Helmholtzring 1, 98693 Ilmenau
Tel.:  +49 3677 69-4882Fax:   +49 3677 69-4399



Re: convert Unix-style spooled mail to cyrus

2003-01-24 Thread Mike Brodbelt
test s wrote:
> Hi,
> 
> Does anyone know how to convert Unix-style spooled mail to cyrus.

There's a program called mbxcvt in the UW imap-utils package that'll do
it. It will parse a unix mailbox file and put it into an IMAP folder
using IMAP commands.

I think they've changed the name in recent versions - I haven't used it
for a while.

HTH,

Mike.




Fwd: Mail not processed for some users.

2003-01-24 Thread Adam Soltan
Hi!

I have a wierd problem (bug?) in my Postfix-Cyrus mail
system. When mails arrive for a number of users they
seem to be ignored. Postfix receives them and
apparently tries to pass them to Cyrus through lmtpd.
But it seems that Cyrus never accepts these mails.
Following error messages appear in the maillog:

... postfix/lmtp[32720]: E2E6F4BB40: to=<...>,
relay=/public/lmtp[/public/lmtp], delay=249115,
status=deferred (lost connection with /public/
lmtp[/public/lmtp] while sending end of data --
message may be sent more than once)

The messages will go into deffered queue and will be
dropped alltogether evetually (with an appropriate
message to the sender).

The 'delay' part might be a clue but the problem is
that the delay is sometimes down to under 200 while
at the same time other users work fine even if they
occasionally get large delays too. When we tried to
remove the mailbox directory the error message stayed
the same which in my opinion should meen that Cyrus
never even tries to access the mailbox.

We are using postfix 1.1.3 and mysql 11.15 Distrib
3.23.41. I'm not sure about the versions on the Cyrus
software. All I could find was cyrus-sasl-2.1.5 and
cyrus-imapd-2.0.16. We have some 200 users and the
problem appears for 2 of them and concernes every mail
that is sent to them.

Any clues?..

Regards,


=
/Adam Soltan, jr.
([EMAIL PROTECTED])

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



Re: Working Vacation?? [solved?]

2003-01-24 Thread Mark Keasling
Hi,

>Gary Mills says
> Sendmail can rewrite header addresses for local delivery.  This works
> well.  It's only the envelope recipient that has the domain stripped.

And it has only taken a week or two to figure out how to prevent that...
cyrusv2.mc patch:
-cyrusv2.mc-
  # divert(-1)
  #
  #   (C) Copyright 2000 by Carnegie Mellon University
  #
  #   This sample mc file is for a site that uses the Cyrus IMAP server
  #   exclusively for local mail. This requires Sendmail 8.10 or later.
  #
  # $Id: cyrusv2.mc,v 1.4 2001/08/23 23:26:56 leg Exp $
  
  divert(0)dnl
  VERSIONID(`cyrus v2 sample configuartion')
  
  OSTYPE(linux)
  define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
  define(`confTO_IDENT',`0')
  
  dnl setting cyrus as the trusted user will make it easier to pass
  dnl Sendmail's safefile checks.  however, it means that someone with the
  dnl "cyrus" password could easily become root.
  dnl define(`confTRUSTED_USER', `cyrus')
  
  define(`confLOCAL_MAILER', `cyrus')
  
  dnl if you aren't using Sendmail 8.12, you might need to remove
  dnl the following feature.
  FEATURE(`preserve_local_plus_detail')
  
  FEATURE(`nocanonify')
  FEATURE(`always_add_domain')
  MAILER(`local')
  MAILER(`smtp')
  
  MAILER_DEFINITIONS
  Mcyrus, P=[IPC], F=lsDFMnqA@/:|SmXz, E=\r\n,
- S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, 
+ S=EnvFromL, R=HdrToL, T=DNS/RFC822/X-Unix, 
A=FILE /var/imap/socket/lmtp
  
  LOCAL_RULE_0
  Rbb + $+ < @ $=w . >$#cyrus $: + $1
  


Dump `EnvToL/' from R= and you get working sieve vacations.
The fix turned out to be rather trivial.

Does anyone spot problems with this?

On Thu, 23 Jan 2003 08:25:05 -0600, Gary Mills <[EMAIL PROTECTED]> wrote...
> On Thu, Jan 23, 2003 at 08:02:42PM +0900, Mark Keasling wrote:
> > 
> > Sendmail is removing the domain part from smtp envelope TO
> > addresses (RCPT TO) when they are sent to the local deliverer
> > in my case LMTP.  Apparently, there is no way to avoid this
> > obnoxious behavior.  Hacking on sendmail.cf has had no effect.
> 
> Yes, sendmail assumes that the domain name is not needed for the
> envelope recipient for local delivery.
> 
> > No vacation reply gets sent because lmtpd substitutes "unspecified-domain"
> > for the domain which was removed by sendmail.  Its "to me" check
> > fails because user@unspecified-domain is definitely not in the
> > message's headers.
> 
> Yes, when I was debugging this, I found that CCing the message to
> user@unspecified-domain would cause vacation to work!
> 
> > The following patches seem to fix the sieve vacation problem.
> > It would be nice if these patches could be incorporated into
> > the main source so that other people who use sendmail can have
> > vacations too.  If someone spots a problem with these patches
> > or notices a deficiency PLEASE let me know how they should be
> > fixed as I'll be putting them into production use RSN.
> 
> I'm using a similar set of patches.  I did submit them to the Cyrus
> maintainers, but they were rejected as unnecessary.
> 
> > There will be some interactions with aliases where [EMAIL PROTECTED]
> > [EMAIL PROTECTED] and [EMAIL PROTECTED]
> > are all equivalent and all are used.  Mail sent to one address will
> > get vacation replies while mail sent to the others will not.  I
> > know of no simple way to solve this unless sendmail is kind enough
> > to rewrite the addresses in the message header.
> 
> Sendmail can rewrite header addresses for local delivery.  This works
> well.  It's only the envelope recipient that has the domain stripped.
> 
> -- 
> -Gary Mills--Unix Support--U of M Academic Computing and Networking-

Regards,
Mark Keasling <[EMAIL PROTECTED]>