Re: problem with sync_server and CYRUS_SERVICE

2012-10-23 Thread Nic Bernstein
Never mind -- realized I need to list sync_server under SERVICES and not 
START.


Cheers,
-nic

On 10/23/2012 02:24 PM, Nic Bernstein wrote:

Folks,
I have been building and using Cyrus IMAP since 1995, but I've just 
run into an issue I've never encountered before.  I've had the same 
issue with 2.4.16 and 2.5, both built from sources retrieved via Git.  
This is on Ubuntu 12.04.01 LTS, in LXC containers on an Ubuntu 
12.04.01 LTS host.


When I start cyrus I see this in syslog:

Oct 23 19:08:26 mailbox master[1323]: about to exec 
/usr/lib/cyrus/bin/sync_server
Oct 23 19:08:26 mailbox sync_server: could not getenv(CYRUS_SERVICE); 
exiting
Oct 23 19:08:26 mailbox master[1313]: process 1323 exited, status 70
Oct 23 19:08:26 mailbox master[1313]: unable to setsocketopt(IP_TOS): 
Operation not supported

I don't think the getenv problem is related to the IP_TOS issue, is 
it?  I've checked all around for what can cause the 
getenv(CYRUS_SERVICE) issue, which was typically (in the old days) 
interference from inetd, but that can't be the problem here, since 
there is no inetd running on the container or the parent host.


/etc/cyrus.conf looks like this:

START {
recover cmd="/usr/sbin/cyrus ctl_cyrusdb -r"
idled   cmd="idled"
tlsprunecmd="/usr/sbin/cyrus tls_prune"
syncserver  cmd="/usr/lib/cyrus/bin/sync_server" listen="csync"
}

SERVICES {
imapcmd="imapd -U 30" listen="imap" prefork=0
pop3cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
lmtpcmd="lmtpd" listen="lmtp" prefork=1
sieve   cmd="timsieved" listen="sieve" prefork=0
notify  cmd="notifyd" listen="/var/run/cyrus/socket/notify" 
proto="udp" prefork=1
}

EVENTS {
checkpoint  cmd="/usr/sbin/cyrus ctl_cyrusdb -c" period=30
delprunecmd="/usr/sbin/cyrus expire -E 3 -D 60 -X 60" at=0401
tlsprunecmd="/usr/sbin/cyrus tls_prune" at=0401
squatter_1  cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -s" 
period=180
squatter_a  cmd="/usr/sbin/cyrus squatter" at=0117
}

and /etc/services contains this:

# Local services
lmtp24/tcp  # Cyrus IMAP LMTP 
transport
csync   2005/tcp# Cyrus IMAP replication

Any thoughts?

Cheers,
-nic
--
Nic bernstein...@onlight.com
Onlight, Inc.www.onlight.com
219 N. Milwaukee St., Suite 2av. 414.272.4477
Milwaukee, Wisconsin  53202



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


--
Nic Bernstein n...@onlight.com
Onlight, Inc. www.onlight.com
219 N. Milwaukee St., Suite 2av. 414.272.4477
Milwaukee, Wisconsin  53202


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

problem with sync_server and CYRUS_SERVICE

2012-10-23 Thread Nic Bernstein

Folks,
I have been building and using Cyrus IMAP since 1995, but I've just run 
into an issue I've never encountered before.  I've had the same issue 
with 2.4.16 and 2.5, both built from sources retrieved via Git.  This is 
on Ubuntu 12.04.01 LTS, in LXC containers on an Ubuntu 12.04.01 LTS host.


When I start cyrus I see this in syslog:

   Oct 23 19:08:26 mailbox master[1323]: about to exec 
/usr/lib/cyrus/bin/sync_server
   Oct 23 19:08:26 mailbox sync_server: could not getenv(CYRUS_SERVICE); exiting
   Oct 23 19:08:26 mailbox master[1313]: process 1323 exited, status 70
   Oct 23 19:08:26 mailbox master[1313]: unable to setsocketopt(IP_TOS): 
Operation not supported

I don't think the getenv problem is related to the IP_TOS issue, is it?  
I've checked all around for what can cause the getenv(CYRUS_SERVICE) 
issue, which was typically (in the old days) interference from inetd, 
but that can't be the problem here, since there is no inetd running on 
the container or the parent host.


/etc/cyrus.conf looks like this:

   START {
recover cmd="/usr/sbin/cyrus ctl_cyrusdb -r"
idled   cmd="idled"
tlsprunecmd="/usr/sbin/cyrus tls_prune"
syncserver  cmd="/usr/lib/cyrus/bin/sync_server" listen="csync"
   }

   SERVICES {
imapcmd="imapd -U 30" listen="imap" prefork=0
pop3cmd="pop3d -U 30" listen="pop3" prefork=0 maxchild=50
lmtpcmd="lmtpd" listen="lmtp" prefork=1
sieve   cmd="timsieved" listen="sieve" prefork=0
notify  cmd="notifyd" listen="/var/run/cyrus/socket/notify" 
proto="udp" prefork=1
   }

   EVENTS {
checkpoint  cmd="/usr/sbin/cyrus ctl_cyrusdb -c" period=30
delprunecmd="/usr/sbin/cyrus expire -E 3 -D 60 -X 60" at=0401
tlsprunecmd="/usr/sbin/cyrus tls_prune" at=0401
squatter_1  cmd="/usr/bin/nice -n 19 /usr/sbin/cyrus squatter -s" 
period=180
squatter_a  cmd="/usr/sbin/cyrus squatter" at=0117
   }

and /etc/services contains this:

   # Local services
   lmtp 24/tcp  # Cyrus IMAP LMTP transport
   csync2005/tcp# Cyrus IMAP replication

Any thoughts?

Cheers,
-nic

--
Nic Bernstein n...@onlight.com
Onlight, Inc. www.onlight.com
219 N. Milwaukee St., Suite 2av. 414.272.4477
Milwaukee, Wisconsin  53202


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Sieve: timsieved: could not getenv(CYRUS_SERVICE); exiting

2004-03-25 Thread Henrik Troeng








Hi all!

 

I have a problem when I try to start sieve. When I run
/usr/cyrus/bin/timsieved nothing happens, but when I check the messages logfile
I can see that the error:

timsieved: could not getenv(CYRUS_SERVICE); exiting

has been logged.

 

What can be my problem?

 

I have NO imap/pop/sieve configurated in
xinetd.conf so the problem is not there.

 

My cyrus.conf file has the
following lines:

 

SERVICES {

imap   cmd=”imapd” listen=”imap”
prefork=0

pop3   cmd=”pop3d” listen=”pop3”
prefork=0

sieve   cmd=”timsieved” listen=”sieve”
prefork=0

 

and so on…

 

I really don´t remember if I compiled cyrus with sieve
support, but if I remember correctly you have to manually disable sieve-support
and I didn´t do that in the configuration process. 

Also, I do have the timsieved program in my cyrus/bin dir, and
the sieveshell in /usr/local/bin.

 

 

I hope someone can help me out here :)

 

//Henrik








Re: Problem with CYRUS_SERVICE

2001-10-21 Thread Ken Murchison



Jerome wrote:
> 
> Hi all.
> 
> I'have a message error in my syslog when i try to connect to my imapd
> server in localhost :
> Could not getenv(CYRUS_SERVICE); existing
> 
> My Inetd.conf is ok

This is your problem.  Cyrus v2 does not use inetd.  Please read the
installation instructions.

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



Problem with CYRUS_SERVICE

2001-10-21 Thread Jerome

Hi all.

I'have a message error in my syslog when i try to connect to my imapd
server in localhost :
Could not getenv(CYRUS_SERVICE); existing

My Inetd.conf is ok

I running a cyrus-imapd-2.0.16 and cyrus-sasl-1.5.24
My authentification is "passwd"

I don't Understand, Please Help me !!


Ps : sorry for my bad english :)




Cyrus HOWTO (was CYRUS_SERVICE)

2001-07-10 Thread Doug South


Hi all,

If you are having problems with your Cyrus install under Linux then 
you've probably blindly followed the Cyrus HOWTO, which appears to 
be out of date.

It isn't too bad, just remove all reference to imap and pop3 (could 
be more, someone said something about this before) from (x)inetd.
Then choose a configuration file from master/conf/ under your cyrus-
imap source tree. cp this to /etc/cyrus.conf. Then /usr/cyrus/bin/master 
& and imtest should then starting working for you.

Just remember to /usr/cyrus/bin/master on boot and then you should 
have more joy then you've had in the past.

Hope that helps someone.

Regards,
Doug





===
EASY and FREE access to your email anywhere: http://Mailreader.com/
===





CYRUS_SERVICE

2001-07-10 Thread Doug South


I've had similar problems as those described earlier, but I've only 
just subscribed.

I followed the Cyrus-HOWTO for Linux, which instructs you to set 
up inetd. I'm using xinetd, so I thought the problem was how I set 
up the entries for imap and pop3. In those entries, the server is 
/usr/cyrus/bin/imapd (which should only be called by the master imapd,
I believe?).

If I disable them and start up the server, I don't have the CYRUS_SERVICE 
problems anymore, just new ones 8).

Hope that helps someone.

Regards,
Doug



===
EASY and FREE access to your email anywhere: http://Mailreader.com/
===





Re: What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)

2001-07-04 Thread Nick Sayer

Louis LeBlanc wrote:

>
>Is that a typo?  'make sure there aren't any entries for imap, pop3,
>etc'???
>

No, it's not. For cyrus, the 'master' takes the place of [x]inetd and 
cron entries. It *reuses* the service handlers in much the same way 
apache does.

>
>
>What about sieve?
>

same thing.

>
>
>Thanks
>
>Lou
>






Re: What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)

2001-07-03 Thread Louis LeBlanc

On 07/03/01 08:07 PM, Ken Murchison sat at the `puter and typed:
> 
>  
> 
> Take a look at your [x]inetd.conf file and make sure there aren't any
> entries for imap, pop3, etc.
> 
> 

Is that a typo?  'make sure there aren't any entries for imap, pop3,
etc'???

What about sieve?

Thanks

Lou
-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
[EMAIL PROTECTED]
http://acadia.ne.mediaone.netԿԬ



Re: What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)

2001-07-03 Thread Ken Murchison



Louis LeBlanc wrote:
> 
> Thanks for the pointers Joe.  This seems to be along the lines I went,
> but I am running into a hitch with the test:
> 
> # cyradm -user cyrus localhost
> Jul  3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting
> Jul  3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting

Take a look at your [x]inetd.conf file and make sure there aren't any
entries for imap, pop3, etc.

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



What is CYRUS_SERVICE? (was Re: Installing on FreeBSD)

2001-07-03 Thread Louis LeBlanc

Thanks for the pointers Joe.  This seems to be along the lines I went,
but I am running into a hitch with the test:

# cyradm -user cyrus localhost
Jul  3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting
Jul  3 16:51:36 acadia imapd: could not getenv(CYRUS_SERVICE); exiting
IMAP Password: 
  Broken pipe

Hmm.  I looked in the source for a CYRUS_SERVICE tag, and found that
it is limited to the master code.  That process reads the
/usr/local/etc/cyrus.conf file, right?  I do have this file, and I
made only minor mods (comment out the POP stuff).

I already had the cert and a starting point for a sendmail.mc file (I
am piping through procmail, which then calls deliver), so I have half
the battle won, but this doesn't seem to work quite right.

pwcheck is working:
# ps -ax | grep pwcheck
  302  ??  Is 0:00.00 /usr/local/sbin/pwcheck

as is master:
# ps -ax | grep master 
  286 con- I  0:00.10 /usr/local/cyrus/bin/master

Maybe this is a clue?
# imtest -t "" -a cyrus localhost
C: C01 CAPABILITY
failure: prot layer failure
bash-2.05# Jul  3 17:06:14 acadia imapd: could not getenv(CYRUS_SERVICE); exiting
Jul  3 17:06:14 acadia imapd: could not getenv(CYRUS_SERVICE); exiting

Maybe not.

Any ideas?

Thanks a million.

Lou

On 07/03/01 03:23 PM, Joe Talbott sat at the `puter and typed:
> Louis LeBlanc wrote:
> > 
> 
> Here are the steps I took to install on FreeBSD 4.3-STABLE
> 
> cd /usr/ports/mail/cyrus-imapd/
> sudo make clean
> sudo make 
> sudo make install
> 
> # edited imapd.conf, added 'root' and 'cyrus' as admins, added tls-cert
> and key
> sudo vi /usr/local/etc/imapd.conf
> 
> # configured sendmail to deliver to cyrus
> # there's a sample file in the docs directory
> 
> # created openssl cert and key
> sudo openssl req -new -x509 -nodes -out /var/imap/server.pem -keyout
> /var/imap/server.pem -days 365
> 
> # mv /usr/local/etc/rc.d/imapd.sh.sample to imapd.sh
> 
> # test ssl
> imtest -t "" -a cyrus localhost
> 
> # created mailbox
> cyradm -user cyrus localhost
> localhost> cm user.josepht
> localhost> quit
> 
> # added sieve to inetd.conf
> sieve   stream  tcp nowait  cyrus   /usr/local/cyrus/bin/timsieved
> timsieve
> d
> 
> # use sieveshell to manage sieve scripts
> sieveshell -u josepht localhost
> > put /home/josepht/sieve_test.script
> > activate sieve_test
> > quit
> 
> Good Luck,
> Joe
> 
> -- 
> J o e   T a l b o t t| I choose to believe 
> OSS Engineer - Cornerstone Networks  | what I was programmed 
> An Ntelos Communications Company | to believe.
> [EMAIL PROTECTED] - 804-817-7000   | -Futurama
> 

-- 
Louis LeBlanc
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
[EMAIL PROTECTED]
http://acadia.ne.mediaone.netԿԬ



Re: CYRUS_SERVICE - solution ?

2001-07-02 Thread Christoph Krempe

Message-ID: <[EMAIL PROTECTED]>
Priority: NORMAL
X-Mailer: Execmail for Win32 5.1 Build (9) 
MIME-Version: 1.0
Content-Type: Text/Plain; CHARSET="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

On Fri, 29 Jun 2001 10:23:08 -0700 (PDT) Nick Sayer=20
<[EMAIL PROTECTED]> wrote:

> The only time I have ever seen this error was on machines where inetd was=
=20
> listening for imap connections. In this circumstance, 'master' will be=20
> unable to listen for connections and you get imapd spawning from inetd=20
> instead of by master, which will not work. Make sure that imap is not=20
> mentioned in inetd.conf, or if you're running xinetd you'll have to check=
=20
> the xinetd config directory.
>=20


inetd.conf is ok, it realy looks lie a db-Problem:

hal:~ # ldd /usr/cyrus/bin/master
libucdagent.so =3D> /usr/lib/libucdagent.so (0x4001a000)
libucdmibs.so =3D> /usr/lib/libucdmibs.so (0x40024000)
libsnmp.so =3D> /usr/lib/libsnmp.so (0x4007d000)
libdl.so.2 =3D> /lib/libdl.so.2 (0x400be000)
libc.so.6 =3D> /lib/libc.so.6 (0x400c2000)
libdb.so.2 =3D> /lib/libdb.so.2 (0x401a5000)
libz.so.1 =3D> /usr/lib/libz.so.1 (0x401b4000)
libm.so.6 =3D> /lib/libm.so.6 (0x401c3000)

I don't know much about C-programming, but it looks like master is=20
using libdb2 instead of db3, isn't it?


Gru=DF Ch. Krempe

---
Freie Universitaet Berlin   Christoph Krempe
Universitaetsbibliothek Systemverwaltung
- Rechenzentrum -   Tel: 030/838 54583
Garystrasse 39  Fax: 030/838 54582
14195 Berlinhttp://www.ub.fu-berlin.de/~ck




Re[2]: CYRUS_SERVICE - solution ?

2001-06-29 Thread Kevin J. Menard, Jr.

Hey Christoph,


Friday, June 29, 2001, 10:22:15 AM, you wrote:

CK> So I get a new problem:

CK> Jun 29 16:18:43 hal master[14087]: process 14091 exited, status 0
CK> Jun 29 16:19:24 hal imapd: could not getenv(CYRUS_SERVICE)
CK> Jun 29 16:19:24 hal service-imapd[14099]: executed
CK> Jun 29 16:19:24 hal service-imapd[14099]: unable to set close on exec: Bad file 
descriptor

CK> No chance to get cyrus running on Linux?

Cyrus runs fine on linux for me, so don't slander the entire project because of
a couple problems you're experiencing.

-- 
 Kevin




Re: CYRUS_SERVICE - solution ?

2001-06-29 Thread Ken Murchison



Christoph Krempe wrote:
> 
> On Fri, 29 Jun 2001 08:14:57 -0400 Ken Murchison <[EMAIL PROTECTED]> wrote:
> 
> >
> > Christoph Krempe wrote:
> > >
> > > Hi,
> > >
> > > are there any solutions for the imap-problem announced by Ken Murchison
> > > <[EMAIL PROTECTED]> ?? I got the same problem on a Linux maschine (Suse
> > > 7.0)
> > >
> > > "imapd: could not getenv(CYRUS_SERVICE)" ??
> >
> > I did not announce the problem, I was simply trying to diagnose it.  I
> > have no idea how this could be happening (char *environ too large?).
> > CYRUS_SERVICE isn't necessary, but if you're trying to use TCP Wrappers,
> > you won't be able to differentiate between services like imap and
> > imaps.  If you simply want to hide the problem, then apply this patch:
> 
> So I get a new problem:
> 
> Jun 29 16:18:43 hal master[14087]: process 14091 exited, status 0
> Jun 29 16:19:24 hal imapd: could not getenv(CYRUS_SERVICE)
> Jun 29 16:19:24 hal service-imapd[14099]: executed
> Jun 29 16:19:24 hal service-imapd[14099]: unable to set close on exec: Bad file 
>descriptor

You have other issues, not just CYRUS_SERVICE.  Is there any chance that
you still have [x]inetd listening on port 143?

> No chance to get cyrus running on Linux?

Sure, it runs on Linux just fine.  I'm running it and developing on a
RH6.2 and 7.1.  Lots of other people have it on other flavors of Linux
as well.

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



Re: CYRUS_SERVICE - solution ?

2001-06-29 Thread Christoph Krempe

On Fri, 29 Jun 2001 08:14:57 -0400 Ken Murchison <[EMAIL PROTECTED]> wrote:

> 
> Christoph Krempe wrote:
> > 
> > Hi,
> > 
> > are there any solutions for the imap-problem announced by Ken Murchison
> > <[EMAIL PROTECTED]> ?? I got the same problem on a Linux maschine (Suse
> > 7.0)
> > 
> > "imapd: could not getenv(CYRUS_SERVICE)" ??
> 
> I did not announce the problem, I was simply trying to diagnose it.  I
> have no idea how this could be happening (char *environ too large?). 
> CYRUS_SERVICE isn't necessary, but if you're trying to use TCP Wrappers,
> you won't be able to differentiate between services like imap and
> imaps.  If you simply want to hide the problem, then apply this patch:

So I get a new problem:

Jun 29 16:18:43 hal master[14087]: process 14091 exited, status 0
Jun 29 16:19:24 hal imapd: could not getenv(CYRUS_SERVICE)
Jun 29 16:19:24 hal service-imapd[14099]: executed
Jun 29 16:19:24 hal service-imapd[14099]: unable to set close on exec: Bad file 
descriptor

No chance to get cyrus running on Linux?

Gruß Ch. Krempe

---
Freie Universitaet Berlin   Christoph Krempe
Universitaetsbibliothek Systemverwaltung
- Rechenzentrum -   Tel: 030/838 54583
Garystrasse 39  Fax: 030/838 54582
14195 Berlinhttp://www.ub.fu-berlin.de/~ck




Re: CYRUS_SERVICE - solution ?

2001-06-29 Thread Ken Murchison


Christoph Krempe wrote:
> 
> Hi,
> 
> are there any solutions for the imap-problem announced by Ken Murchison
> <[EMAIL PROTECTED]> ?? I got the same problem on a Linux maschine (Suse
> 7.0)
> 
> "imapd: could not getenv(CYRUS_SERVICE)" ??

I did not announce the problem, I was simply trying to diagnose it.  I
have no idea how this could be happening (char *environ too large?). 
CYRUS_SERVICE isn't necessary, but if you're trying to use TCP Wrappers,
you won't be able to differentiate between services like imap and
imaps.  If you simply want to hide the problem, then apply this patch:


Index: service.c
===
RCS file: /afs/andrew/system/cvs/src/cyrus/master/service.c,v
retrieving revision 1.23
diff -c -c -r1.23 service.c
*** service.c   2001/05/21 20:10:17 1.23
--- service.c   2001/06/29 12:09:13
***
*** 166,173 
  
  p = getenv("CYRUS_SERVICE");
  if (p == NULL) {
!   syslog(LOG_ERR, "could not getenv(CYRUS_SERVICE); exiting");
!   exit(EX_SOFTWARE);
  }
  
  snprintf(name, sizeof(name) - 1, "service-%s", p);
--- 166,173 
  
  p = getenv("CYRUS_SERVICE");
  if (p == NULL) {
!   syslog(LOG_WARNING, "could not getenv(CYRUS_SERVICE)");
!   p = argv[0];
  }
  
  snprintf(name, sizeof(name) - 1, "service-%s", p);
***
*** 248,255 ****
  
    p = getenv("CYRUS_SERVICE");
if (p == NULL) {
!   syslog(LOG_ERR, "could not getenv(CYRUS_SERVICE) (2);
exiting");
!   exit(EX_SOFTWARE);
}
  
libwrap_init(&request, p);
--- 248,255 
  
p = getenv("CYRUS_SERVICE");
if (p == NULL) {
!   syslog(LOG_WARNING, "could not getenv(CYRUS_SERVICE) (2)");
!   p = argv[0];
}
  
libwrap_init(&request, p);

-- 
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_SERVICE - solution ?

2001-06-29 Thread Christoph Krempe

Hi,

are there any solutions for the imap-problem announced by Ken Murchison 
<[EMAIL PROTECTED]> ?? I got the same problem on a Linux maschine (Suse 
7.0)

"imapd: could not getenv(CYRUS_SERVICE)" ??

> e-d0uble wrote:
> 
> Applied patch and... Still no luck. Here's the log:
> 
> Jun  9 12:03:22 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
> Jun  9 12:03:22 spicymeatball service-imapd[21427]: executed
> Jun  9 12:03:22 spicymeatball service-imapd[21427]: unable to set close
> on exec: Bad file descriptor
> Jun  9 12:03:22 spicymeatball
> Jun  9 12:05:39 spicymeatball master: unable to change limit of file
> descriptors available
> Jun  9 12:05:39 spicymeatball master[21492]: process started
> Jun  9 12:05:39 spicymeatball master[21494]: about to exec
> /usr/cyrus/bin/ctl_mboxlist
> Jun  9 12:05:39 spicymeatball ctl_mboxlist[21494]: running mboxlist recovery
> Jun  9 12:06:13 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
> 

Gruß Ch. Krempe

---
Freie Universitaet Berlin   Christoph Krempe
Universitaetsbibliothek Systemverwaltung
- Rechenzentrum -   Tel: 030/838 54583
Garystrasse 39  Fax: 030/838 54582
14195 Berlinhttp://www.ub.fu-berlin.de/~ck




Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-12 Thread Nick Sayer

I ran across this when upgrading a site from 1.x to 2.x. I had forgotten 
to remove the inetd.conf entries for the cyrus servers. In 2.x they 
don't run from inetd, they are spawned by the master.






Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-09 Thread e-d0uble

Heh.  I know the  feeling, saturday nights.
Anything else I can do here?

thanks


Ken Murchison wrote:

>Hmm.  Looks like you're having bigger issues than just the env
>variable.  Nothing come sto mind right now, but its late and I've had a
>few too many "pops".
>
>e-d0uble wrote:
>
>>Applied patch and... Still no luck. Here's the log:
>>
>>Jun  9 12:03:22 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
>>Jun  9 12:03:22 spicymeatball service-imapd[21427]: executed
>>Jun  9 12:03:22 spicymeatball service-imapd[21427]: unable to set close
>>on exec: Bad file descriptor
>>Jun  9 12:03:22 spicymeatball
>>Jun  9 12:05:39 spicymeatball master: unable to change limit of file
>>descriptors available
>>Jun  9 12:05:39 spicymeatball master[21492]: process started
>>Jun  9 12:05:39 spicymeatball master[21494]: about to exec
>>/usr/cyrus/bin/ctl_mboxlist
>>Jun  9 12:05:39 spicymeatball ctl_mboxlist[21494]: running mboxlist recovery
>>Jun  9 12:06:13 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
>>
>>Ken Murchison wrote:
>>
>>>Try applying the attached patch.  This will keep the service from
>>>exiting, but will still log any errors with respect to CYRUS_SERVICE.
>>>I'd like to find out if putenv() is failing, or something else is going
>>>on.
>>>
>>>If you want to know how/why CYRUS_SERVICE is used, read the "ACCESS
>>>CONTROL" section of cyrus.conf(5).
>>>
>>>Ken
>>>
>>>
>>>e-d0uble wrote:
>>>
>>>>I get this as well when trying to telnet to localhost imap.
>>>>When running the imtest program I get:
>>>>
>>>>C: C01 CAPABILITY
>>>>prot level failure.
>>>>
>>>>This is also a linux system, albeit on a PPC.  It looks as if master is not
>>>>setenving CYRUS_SERVICE correctly, or at all.
>>>>Any suggestions would be appreciated, as I'd very much like to rid myself of my
>>>>UW-IMAP server in favor of Cyrus =)
>>>>
>>>>thanks,
>>>>
>>>>Ethan
>>>>
>>>>Ken Murchison wrote:
>>>>
>>>>>"Garrett, Michael R" wrote:
>>>>>
>>>>>>Hey all,
>>>>>>
>>>>>>This should be an easy and quick question.  When I try and load the imap
>>>>>>daemon I get the following error...
>>>>>>
>>>>>>imapd: could not getenv(CYRUS_SERVICE); exiting
>>>>>>
>>>>>>this also occurs for the pop3 daemon as well.
>>>>>>I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
>>>>>>Anyhelp would be great.
>>>>>>
>>>>>Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
>>>>>only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
>>>>>by master and then picked up by the other services (daemons).
>>>>>
>>>>>--
>>>>>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_SERVICE.patch.gz
>>>
>>>Content-Type:
>>>
>>>application/x-gzip
>>>Content-Encoding:
>>>
>>>base64
>>>
>>>
>






Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-09 Thread Ken Murchison

Hmm.  Looks like you're having bigger issues than just the env
variable.  Nothing come sto mind right now, but its late and I've had a
few too many "pops".

e-d0uble wrote:
> 
> Applied patch and... Still no luck. Here's the log:
> 
> Jun  9 12:03:22 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
> Jun  9 12:03:22 spicymeatball service-imapd[21427]: executed
> Jun  9 12:03:22 spicymeatball service-imapd[21427]: unable to set close
> on exec: Bad file descriptor
> Jun  9 12:03:22 spicymeatball
> Jun  9 12:05:39 spicymeatball master: unable to change limit of file
> descriptors available
> Jun  9 12:05:39 spicymeatball master[21492]: process started
> Jun  9 12:05:39 spicymeatball master[21494]: about to exec
> /usr/cyrus/bin/ctl_mboxlist
> Jun  9 12:05:39 spicymeatball ctl_mboxlist[21494]: running mboxlist recovery
> Jun  9 12:06:13 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
> 
> Ken Murchison wrote:
> 
> >Try applying the attached patch.  This will keep the service from
> >exiting, but will still log any errors with respect to CYRUS_SERVICE.
> >I'd like to find out if putenv() is failing, or something else is going
> >on.
> >
> >If you want to know how/why CYRUS_SERVICE is used, read the "ACCESS
> >CONTROL" section of cyrus.conf(5).
> >
> >Ken
> >
> >
> >e-d0uble wrote:
> >
> >>I get this as well when trying to telnet to localhost imap.
> >>When running the imtest program I get:
> >>
> >>C: C01 CAPABILITY
> >>prot level failure.
> >>
> >>This is also a linux system, albeit on a PPC.  It looks as if master is not
> >>setenving CYRUS_SERVICE correctly, or at all.
> >>Any suggestions would be appreciated, as I'd very much like to rid myself of my
> >>UW-IMAP server in favor of Cyrus =)
> >>
> >>thanks,
> >>
> >>Ethan
> >>
> >>Ken Murchison wrote:
> >>
> >>>"Garrett, Michael R" wrote:
> >>>
> >>>>Hey all,
> >>>>
> >>>>This should be an easy and quick question.  When I try and load the imap
> >>>>daemon I get the following error...
> >>>>
> >>>>imapd: could not getenv(CYRUS_SERVICE); exiting
> >>>>
> >>>>this also occurs for the pop3 daemon as well.
> >>>>I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
> >>>>Anyhelp would be great.
> >>>>
> >>>Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
> >>>only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
> >>>by master and then picked up by the other services (daemons).
> >>>
> >>>--
> >>>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_SERVICE.patch.gz
> >
> > Content-Type:
> >
> > application/x-gzip
> > Content-Encoding:
> >
> > base64
> >
> >

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



Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-09 Thread e-d0uble

Applied patch and... Still no luck. Here's the log:

Jun  9 12:03:22 spicymeatball imapd: could not getenv(CYRUS_SERVICE)
Jun  9 12:03:22 spicymeatball service-imapd[21427]: executed
Jun  9 12:03:22 spicymeatball service-imapd[21427]: unable to set close 
on exec: Bad file descriptor
Jun  9 12:03:22 spicymeatball
Jun  9 12:05:39 spicymeatball master: unable to change limit of file 
descriptors available
Jun  9 12:05:39 spicymeatball master[21492]: process started
Jun  9 12:05:39 spicymeatball master[21494]: about to exec 
/usr/cyrus/bin/ctl_mboxlist
Jun  9 12:05:39 spicymeatball ctl_mboxlist[21494]: running mboxlist recovery
Jun  9 12:06:13 spicymeatball imapd: could not getenv(CYRUS_SERVICE)



Ken Murchison wrote:

>Try applying the attached patch.  This will keep the service from
>exiting, but will still log any errors with respect to CYRUS_SERVICE. 
>I'd like to find out if putenv() is failing, or something else is going
>on.
>
>If you want to know how/why CYRUS_SERVICE is used, read the "ACCESS
>CONTROL" section of cyrus.conf(5).
>
>Ken
>
>
>e-d0uble wrote:
>
>>I get this as well when trying to telnet to localhost imap.
>>When running the imtest program I get:
>>
>>C: C01 CAPABILITY
>>prot level failure.
>>
>>This is also a linux system, albeit on a PPC.  It looks as if master is not
>>setenving CYRUS_SERVICE correctly, or at all.
>>Any suggestions would be appreciated, as I'd very much like to rid myself of my
>>UW-IMAP server in favor of Cyrus =)
>>
>>thanks,
>>
>>Ethan
>>
>>Ken Murchison wrote:
>>
>>>"Garrett, Michael R" wrote:
>>>
>>>>Hey all,
>>>>
>>>>This should be an easy and quick question.  When I try and load the imap
>>>>daemon I get the following error...
>>>>
>>>>imapd: could not getenv(CYRUS_SERVICE); exiting
>>>>
>>>>this also occurs for the pop3 daemon as well.
>>>>I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
>>>>Anyhelp would be great.
>>>>
>>>Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
>>>only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
>>>by master and then picked up by the other services (daemons).
>>>
>>>--
>>>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_SERVICE.patch.gz
>
> Content-Type:
>
> application/x-gzip
> Content-Encoding:
>
> base64
>
>






Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-09 Thread Ken Murchison

Try applying the attached patch.  This will keep the service from
exiting, but will still log any errors with respect to CYRUS_SERVICE. 
I'd like to find out if putenv() is failing, or something else is going
on.

If you want to know how/why CYRUS_SERVICE is used, read the "ACCESS
CONTROL" section of cyrus.conf(5).

Ken


e-d0uble wrote:
> 
> I get this as well when trying to telnet to localhost imap.
> When running the imtest program I get:
> 
> C: C01 CAPABILITY
> prot level failure.
> 
> This is also a linux system, albeit on a PPC.  It looks as if master is not
> setenving CYRUS_SERVICE correctly, or at all.
> Any suggestions would be appreciated, as I'd very much like to rid myself of my
> UW-IMAP server in favor of Cyrus =)
> 
> thanks,
> 
> Ethan
> 
> Ken Murchison wrote:
> 
> > "Garrett, Michael R" wrote:
> > >
> > > Hey all,
> > >
> > > This should be an easy and quick question.  When I try and load the imap
> > > daemon I get the following error...
> > >
> > > imapd: could not getenv(CYRUS_SERVICE); exiting
> > >
> > > this also occurs for the pop3 daemon as well.
> > > I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
> > > Anyhelp would be great.
> >
> > Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
> > only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
> > by master and then picked up by the other services (daemons).
> >
> > --
> > 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

-- 
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_SERVICE.patch.gz


Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-08 Thread e-d0uble

I get this as well when trying to telnet to localhost imap.
When running the imtest program I get:

C: C01 CAPABILITY
prot level failure.

This is also a linux system, albeit on a PPC.  It looks as if master is not
setenving CYRUS_SERVICE correctly, or at all.
Any suggestions would be appreciated, as I'd very much like to rid myself of my
UW-IMAP server in favor of Cyrus =)

thanks,

Ethan


Ken Murchison wrote:

> "Garrett, Michael R" wrote:
> >
> > Hey all,
> >
> > This should be an easy and quick question.  When I try and load the imap
> > daemon I get the following error...
> >
> > imapd: could not getenv(CYRUS_SERVICE); exiting
> >
> > this also occurs for the pop3 daemon as well.
> > I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
> > Anyhelp would be great.
>
> Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
> only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
> by master and then picked up by the other services (daemons).
>
> --
> 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




Re: CYRUS_SERVICE Variable? Easy Question??

2001-06-05 Thread Ken Murchison



"Garrett, Michael R" wrote:
> 
> Hey all,
> 
> This should be an easy and quick question.  When I try and load the imap
> daemon I get the following error...
> 
> imapd: could not getenv(CYRUS_SERVICE); exiting
> 
> this also occurs for the pop3 daemon as well.
> I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
> Anyhelp would be great.

Not sure what you mean by "load" the imap daemon.  imapd and pop3d can
only be spawned by the master process (not inetd).  CYRUS_SERVICE is set
by master and then picked up by the other services (daemons).

-- 
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_SERVICE Variable? Easy Question??

2001-06-05 Thread Garrett, Michael R

Hey all,

This should be an easy and quick question.  When I try and load the imap
daemon I get the following error...

imapd: could not getenv(CYRUS_SERVICE); exiting 

this also occurs for the pop3 daemon as well.  
I am using redhat linux 7.1 with cyrus-imapd-2.0.14  and cyrus-sasl-1.5.24
Anyhelp would be great.

thanks

/Mike