RE : Vacation problem

2003-01-23 Thread John Hughes
Here's the problem:

$ telnet mail.intellinetinc.com smtp
Trying 139.142.54.37...
Connected to h139-142-54-37.gtcust.grouptelecom.net.
Escape character is '^]'.
220 intellinetinc.com ESMTP Sendmail 8.12.4/8.12.4; Thu, 23 Jan 2003
01:28:23 -0700 (MST)
ehlo joe
250-intellinetinc.com Hello franconia.calvaedi.com [213.39.1.226],
pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
mail from: 
550 5.7.1 ... Command rejected

That's bad.  See rfc1123, section 5.2.9, or 
http://www.rfc-ignorant.org/policy-dsn.php

Not a cyrus bug, a sendmail configuration bug.





Re: Working Vacation?? [solved?]

2003-01-23 Thread Mark Keasling
Hi,

Sieve is not sending vacation replies.  Why?  Here's my stab...
in the dark...

Sieve vacation wants a domain part for the rcpt to address
for its Was the message send directly to me as opposed to
being sent to an alias or got to me some other way check.
Being sent directly to me means my address will appear verbatim
in either the TO, CC or BCC headers.  It is comparing the
stmp envelope's TO to the addresses in the message header.

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.

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.

What I did was to:
  add parseaddr_getdomain() to lib/parseaddr.c which retrieves
the domain name.  It returns unspecified-domain if no domain
name was set.
  add parseaddr_setdomain(domain) to lib/parseaddr.c which sets
the domain name.
  call parseaddr_setdomain(config_servername) in imap/config.c
after config_servername has been set.
  call parseaddr_getdomain() in lib/parseaddr.c and sieve/message.c
before setting unspecified-domain.

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.

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.

lib/parseaddr.h
*** parseaddr.h.old Thu Jan 23 18:14:19 2003
--- parseaddr.h Thu Jan 23 17:53:59 2003
***
*** 64,69 
--- 64,71 
  
  extern void parseaddr_list P((const char *s, struct address **addrp));
  extern void parseaddr_free P((struct address *addr));
+ extern void parseaddr_setdomain P((const char *domain));
+ extern char * parseaddr_getdomain ();
  
  
  #endif /* INCLUDED_PARSEADDR_H */
lib/parseaddr.c
*** parseaddr.c.old Thu Jan 23 18:15:38 2003
--- parseaddr.c Thu Jan 23 17:56:11 2003
***
*** 189,194 
--- 189,197 
  
  newaddr-mailbox = mailbox;
  
+ if ( domain  !*domain) {
+   domain = parseaddr_getdomain();
+ }
  if (domain  !*domain) {
domain = parseaddr_unspecified_domain;
  }
***
*** 364,367 
--- 367,389 
return c;
}
  }
  }
+ 
+ /*
+  * manage the default domain
+  */
+ static char *parseaddr_domain_name = (char *)0;
+ 
+ void parseaddr_setdomain (domain)
+  const char * domain ;
+ {
+ if (parseaddr_domain_name) free(parseaddr_domain_name);
+ if (domain  *domain) parseaddr_domain_name = xstrdup(domain) ;
+ else parseaddr_domain_name = (char*)0;
+ }
+ 
+ char * parseaddr_getdomain ()
+ {
+ if (parseaddr_domain_name) return parseaddr_domain_name;
+ return unspecified-domain;
+ }
sieve/message.c
*** message.c.old   Thu Jan 23 19:15:02 2003
--- message.c   Thu Jan 23 17:16:15 2003
***
*** 460,466 
  #define U_USER unknown-user
if (a-mailbox || a-domain) {
char *m = a-mailbox ? a-mailbox : U_USER;
!   char *d = a-domain ? a-domain : U_DOMAIN;
  
am-freeme = (char *) xmalloc(strlen(m) + strlen(d) + 2);
  
--- 460,468 
  #define U_USER unknown-user
if (a-mailbox || a-domain) {
char *m = a-mailbox ? a-mailbox : U_USER;
!   /* char *d = a-domain ? a-domain : U_DOMAIN; */
+   char *d = a-domain ? a-domain : parseaddr_getdomain();
+   if (!d || !*d) d = U_DOMAIN;
  
am-freeme = (char *) xmalloc(strlen(m) + strlen(d) + 2);
  


Many thanks to all the busy people, in particular Ken Murchison,
who have provided assistance without recompense.  Your accomulated
wisdom pointed me in the right direction.  You have my humble thanks
such as they may be.

Regards,
Mark Keasling [EMAIL PROTECTED]




SNMP cyrus monitoring.

2003-01-23 Thread Dmitry Novosjolov
Hi All,

has anybody succeded in using SNMP statistics of cyrus IMAP server ?
If so, can you please point me in right direction of how to monitor the
activity of Cyrus-imapd-2.1.11 server?
I've heard about togowar, but cyrus documents are empty in this chapter ...

--
Best regards,
Novosjolov Dmitry




URGENT Mailboxes.db

2003-01-23 Thread Wander
Hi,

After a conversion from cyrus-imapd-1.6.24 and cyrus-sasl-1.5.27 to cyrus-imapd-
2.1.11 and cyrus-sasl-2.1.10, I´ve followed the docs and the ctl_mboxlust -u  
mailboxes, converts just 1 record with just 1 folder inside it. I´m stucked 
with all the users stoped.

Please any light?

Tanks

Wander

----
Wanderley O. Mendes
Software Specialist [EMAIL PROTECTED]
Phone: +55-12-560-8432  Fax: +55-12-560-8435
INPE/CPTEC - Cachoeira Paulista - São Paulo - Brazil
----








Re: SNMP cyrus monitoring.

2003-01-23 Thread Scott Adkins
--On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov 
[EMAIL PROTECTED] wrote:

Hi All,

has anybody succeded in using SNMP statistics of cyrus IMAP server ?
If so, can you please point me in right direction of how to monitor the
activity of Cyrus-imapd-2.1.11 server?
I've heard about togowar, but cyrus documents are empty in this chapter
...

--
Best regards,
Novosjolov Dmitry



I actually wrote a couple scripts that monitor the server.  One script is
just meant to be called from the command line (snmp_query) and displays
the results in a clean easy to understand format.  The sample output is as
follows:

 Cyrus IMAP Server v2.0.16
 Thu Jan 23 09:10:55 EST 2003
 Up 5 days, 0:36:29

 Services Forks   Running Maximum
 ---  --  --  --
 imap 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 NOTES
 ---
 Forks   = Total number of forks since server was started.
 Running = Total number of processes currently running.
 Maximum = Maximum number of processes running concurrently.

The other script (check_cyrus) is for logging and I use a cron job that
runs it periodically and appends the output to a log file.  The output
of that script looks like the following (all on one line, though):

 01/23 09:11 5 days, 0:37:08 imap=31/48 pop3=2/11 imaps=1672/2127
 pop3s=23/72 imaps_silky=22/62 lmtp=32/113 lmtpunix=0/1

The above data should be easy enough to parse so that you can push it
through a grapher, such as gnuplot or maybe even excel.

I will attach both scripts.  Maybe if the CMU folks like it, they can
put it in the contrib directory?

Oh, I actually just called the snmpwalk program directly and didn't
use the SNMP perl module.  Maybe somebody else can retrofit the script
to do that.  Anyawys, it should require just minor tweaking to get it
to work on your system.

Scott
--
+---+
 Scott W. Adkinshttp://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
   ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+---+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/


snmp_query.pl
Description: Binary data


check_cyrus.pl
Description: Binary data


MSL10918.sig
Description: PGP signature


Re: Working Vacation?? [solved?]

2003-01-23 Thread Gary Mills
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-



Re: Working Vacation?? [solved?]

2003-01-23 Thread Mikael Brandström


On Thu, 23 Jan 2003 at 08:25, Gary Mills 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.

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.

Mikael




Default forwarding mail for non-cyrus users.

2003-01-23 Thread Mark London
On linux running cyrus, I want to have mail forwarded for any unknown user to
another IP name.  In other words, if user foo doesn't exist on the system, I
want mail forwarded to foo@bar.   Easy to do with sendmail without cyrus, but
I haven't found anything that works with cyrus installed.  Any suggestions?
Thanks.

Mark



Re: Default forwarding mail for non-cyrus users.

2003-01-23 Thread Mikael Brandström
What MTA do you use to deliver to cyrus? It could be sendmail, and then
it's still easy and done exactly as you used to do it.

Mikael

On Thu, 23 Jan 2003 at 10:53, Mark London wrote:

 On linux running cyrus, I want to have mail forwarded for any unknown user to
 another IP name.  In other words, if user foo doesn't exist on the system, I
 want mail forwarded to foo@bar.   Easy to do with sendmail without cyrus, but
 I haven't found anything that works with cyrus installed.  Any suggestions?
 Thanks.

 Mark





Re: Default forwarding mail for non-cyrus users.

2003-01-23 Thread Mark London
Yes, yes.  Please ignore my question, I was making a stupid error.

 What MTA do you use to deliver to cyrus? It could be sendmail, and then
 it's still easy and done exactly as you used to do it.
 
 Mikael
 
 On Thu, 23 Jan 2003 at 10:53, Mark London wrote:
 
  On linux running cyrus, I want to have mail forwarded for any unknown user to
  another IP name.  In other words, if user foo doesn't exist on the system, I
  want mail forwarded to foo@bar.   Easy to do with sendmail without cyrus, but
  I haven't found anything that works with cyrus installed.  Any suggestions?
  Thanks.
 
  Mark
 
 



Re: SNMP cyrus monitoring.

2003-01-23 Thread Jared Watkins
I don't know a lot about the innards of snmp... but here is my problem. 
I configured cyrus with the --with-ucdsnmp flag..  but when I query with 
snmpwalk it gives no result.. as if that part of the tree is not known 
to snmp.  I ran the query using the base OID from your scripts.   I'm 
doing this on my test RH 7.3 box with the rpm packages of snmp.  What 
else has to be done to get this working for cyrus?

Jared


Scott Adkins wrote:

--On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov 
[EMAIL PROTECTED] wrote:

Hi All,

has anybody succeded in using SNMP statistics of cyrus IMAP server ?
If so, can you please point me in right direction of how to monitor the
activity of Cyrus-imapd-2.1.11 server?
I've heard about togowar, but cyrus documents are empty in this chapter
...

--
Best regards,
Novosjolov Dmitry



I actually wrote a couple scripts that monitor the server.  One script is
just meant to be called from the command line (snmp_query) and displays
the results in a clean easy to understand format.  The sample output 
is as
follows:

 Cyrus IMAP Server v2.0.16
 Thu Jan 23 09:10:55 EST 2003
 Up 5 days, 0:36:29

 Services Forks   Running Maximum
 ---  --  --  --
 imap 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 NOTES
 ---
 Forks   = Total number of forks since server was started.
 Running = Total number of processes currently running.
 Maximum = Maximum number of processes running concurrently.

The other script (check_cyrus) is for logging and I use a cron job that
runs it periodically and appends the output to a log file.  The output
of that script looks like the following (all on one line, though):

 01/23 09:11 5 days, 0:37:08 imap=31/48 pop3=2/11 imaps=1672/2127
 pop3s=23/72 imaps_silky=22/62 lmtp=32/113 lmtpunix=0/1

The above data should be easy enough to parse so that you can push it
through a grapher, such as gnuplot or maybe even excel.

I will attach both scripts.  Maybe if the CMU folks like it, they can
put it in the contrib directory?

Oh, I actually just called the snmpwalk program directly and didn't
use the SNMP perl module.  Maybe somebody else can retrofit the script
to do that.  Anyawys, it should require just minor tweaking to get it
to work on your system.

Scott


--
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT/S/B d- s-:+ a- C$ UL$ P--- L+++$ E---
W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
5- X+ R* tv+ b++ DI+ D G e+ h+ r+++ z* 
--END GEEK CODE BLOCK--



Re: SNMP cyrus monitoring.

2003-01-23 Thread Scott Adkins
Taking a stab in the dark, do you have an SNMP server running on the
machine?  If you have the snmp tools installed, then check chkconfig
with the following command to see if you got the service configured
to start at boot time.  Before you turn on the snmp service via the
/etc/init.d scripts, make sure that you have it configured properly
(I am thinking in terms of access control).  Anyways, that is my
stab in the dark guess ;)

Oh, you will have to restart your cyrus server after you start the
snmp server, that way, cyrus will initialize properly with the snmp
server and start sending it stats.

Scott

--On Thursday, January 23, 2003 12:36 PM -0500 Jared Watkins 
[EMAIL PROTECTED] wrote:

I don't know a lot about the innards of snmp... but here is my problem. I
configured cyrus with the --with-ucdsnmp flag..  but when I query with
snmpwalk it gives no result.. as if that part of the tree is not known to
snmp.  I ran the query using the base OID from your scripts.   I'm doing
this on my test RH 7.3 box with the rpm packages of snmp.  What else has
to be done to get this working for cyrus?

Jared


Scott Adkins wrote:


--On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov
[EMAIL PROTECTED] wrote:


Hi All,

has anybody succeded in using SNMP statistics of cyrus IMAP server ?
If so, can you please point me in right direction of how to monitor the
activity of Cyrus-imapd-2.1.11 server?
I've heard about togowar, but cyrus documents are empty in this chapter
...

--
Best regards,
Novosjolov Dmitry



I actually wrote a couple scripts that monitor the server.  One script is
just meant to be called from the command line (snmp_query) and displays
the results in a clean easy to understand format.  The sample output
is as
follows:

 Cyrus IMAP Server v2.0.16
 Thu Jan 23 09:10:55 EST 2003
 Up 5 days, 0:36:29

 Services Forks   Running Maximum
 ---  --  --  --
 imap 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 NOTES
 ---
 Forks   = Total number of forks since server was started.
 Running = Total number of processes currently running.
 Maximum = Maximum number of processes running concurrently.

The other script (check_cyrus) is for logging and I use a cron job that
runs it periodically and appends the output to a log file.  The output
of that script looks like the following (all on one line, though):

 01/23 09:11 5 days, 0:37:08 imap=31/48 pop3=2/11 imaps=1672/2127
 pop3s=23/72 imaps_silky=22/62 lmtp=32/113 lmtpunix=0/1

The above data should be easy enough to parse so that you can push it
through a grapher, such as gnuplot or maybe even excel.

I will attach both scripts.  Maybe if the CMU folks like it, they can
put it in the contrib directory?

Oh, I actually just called the snmpwalk program directly and didn't
use the SNMP perl module.  Maybe somebody else can retrofit the script
to do that.  Anyawys, it should require just minor tweaking to get it
to work on your system.

Scott



--
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT/S/B d- s-:+ a- C$ UL$ P--- L+++$ E---
W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
5- X+ R* tv+ b++ DI+ D G e+ h+ r+++ z* --END GEEK CODE
BLOCK--




--
+---+
 Scott W. Adkinshttp://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
   ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+---+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/


msg10614/pgp0.pgp
Description: PGP signature


Re: URGENT Mailboxes.db

2003-01-23 Thread Edward Rudd
Attached is a script (bash using sed) that should parse through the IMAP 
spool directory tree and create the text version of the mailboxes file.. 
then you have to use ctl_mboxlist to import it into the mailboxes.db file.
You'll have to edit the script and change the path of where your spool 
directory resides...
This was written expecting the hashed spool directory option off.
Hope this helps..

Wander wrote:

Hi,

After a conversion from cyrus-imapd-1.6.24 and cyrus-sasl-1.5.27 to cyrus-imapd-
2.1.11 and cyrus-sasl-2.1.10, I´ve followed the docs and the ctl_mboxlust -u  
mailboxes, converts just 1 record with just 1 folder inside it. I´m stucked 
with all the users stoped.

Please any light?

Tanks

Wander

----
Wanderley O. Mendes
Software Specialist [EMAIL PROTECTED]
Phone: +55-12-560-8432  Fax: +55-12-560-8435
INPE/CPTEC - Cachoeira Paulista - São Paulo - Brazil
----

 



#!/bin/sh

TAB=`echo -e \\\t`
cd /var/spool/imap/user
find . -type d  | grep ./ |
sed -e s/\.\/// |
sed -e s/\//\./g |
sed -e 
s/\([a-z]*\)\(.*\)/user\.\1\2${TAB}default${TAB}\1${TAB}lrswipcda${TAB}cyrus${TAB}lrswipcda${TAB}/
cd -



Re: SNMP cyrus monitoring.

2003-01-23 Thread Jared Watkins
Hmmm...  Well I ran the snmpconf perl script and allowed public read 
access in snmpd.conf.. but when I try to walk the enterprises tree I 
don't see any cyrus stuff there... in fact.. I don't get any results if 
I use enterprises.anything.  Do I need to give the cyrus user permission 
to write to snmp somehow?   Is there a config option in cyrus.conf  that 
is not there by default?

Cyrus is not logging anything about attempting to connect to snmp and 
snmpd is not logging any errors...  I don't know what to look for 
here...  can anyone shed some light?  How do the cyrus stats become 
known to snmpd?

I'm almost snmp clueless...
Jared


Scott Adkins wrote:

Taking a stab in the dark, do you have an SNMP server running on the
machine?  If you have the snmp tools installed, then check chkconfig
with the following command to see if you got the service configured
to start at boot time.  Before you turn on the snmp service via the
/etc/init.d scripts, make sure that you have it configured properly
(I am thinking in terms of access control).  Anyways, that is my
stab in the dark guess ;)

Oh, you will have to restart your cyrus server after you start the
snmp server, that way, cyrus will initialize properly with the snmp
server and start sending it stats.

Scott

--On Thursday, January 23, 2003 12:36 PM -0500 Jared Watkins 
[EMAIL PROTECTED] wrote:

I don't know a lot about the innards of snmp... but here is my 
problem. I
configured cyrus with the --with-ucdsnmp flag..  but when I query with
snmpwalk it gives no result.. as if that part of the tree is not 
known to
snmp.  I ran the query using the base OID from your scripts.   I'm doing
this on my test RH 7.3 box with the rpm packages of snmp.  What else has
to be done to get this working for cyrus?

Jared


Scott Adkins wrote:

--On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov
[EMAIL PROTECTED] wrote:


Hi All,

has anybody succeded in using SNMP statistics of cyrus IMAP server ?
If so, can you please point me in right direction of how to monitor 
the
activity of Cyrus-imapd-2.1.11 server?
I've heard about togowar, but cyrus documents are empty in this 
chapter
...

--
Best regards,
Novosjolov Dmitry


I actually wrote a couple scripts that monitor the server.  One 
script is
just meant to be called from the command line (snmp_query) and displays
the results in a clean easy to understand format.  The sample output
is as
follows:

 Cyrus IMAP Server v2.0.16
 Thu Jan 23 09:10:55 EST 2003
 Up 5 days, 0:36:29

 Services Forks   Running Maximum
 ---  --  --  --
 imap 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 NOTES
 ---
 Forks   = Total number of forks since server was started.
 Running = Total number of processes currently running.
 Maximum = Maximum number of processes running concurrently.

The other script (check_cyrus) is for logging and I use a cron job that
runs it periodically and appends the output to a log file.  The output
of that script looks like the following (all on one line, though):

 01/23 09:11 5 days, 0:37:08 imap=31/48 pop3=2/11 imaps=1672/2127
 pop3s=23/72 imaps_silky=22/62 lmtp=32/113 lmtpunix=0/1

The above data should be easy enough to parse so that you can push it
through a grapher, such as gnuplot or maybe even excel.

I will attach both scripts.  Maybe if the CMU folks like it, they can
put it in the contrib directory?

Oh, I actually just called the snmpwalk program directly and didn't
use the SNMP perl module.  Maybe somebody else can retrofit the script
to do that.  Anyawys, it should require just minor tweaking to get it
to work on your system.

Scott



--
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT/S/B d- s-:+ a- C$ UL$ P--- L+++$ E---
W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
5- X+ R* tv+ b++ DI+ D G e+ h+ r+++ z* --END GEEK CODE
BLOCK--






--
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GIT/S/B d- s-:+ a- C$ UL$ P--- L+++$ E---
W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
5- X+ R* tv+ b++ DI+ D G e+ h+ r+++ z* 
--END GEEK CODE BLOCK--



ctl_mboxlist

2003-01-23 Thread Wander
Hi,

After upgrading cyrus-imapd from 1.6.24 to 2.1.11 and cyrus-sasl from 1.5.27 to 
2.1.10 and follow the docs to convert mailboxes, I end up with a just 1 record 
mailboxes.db file. When ctl_mailboxlist -u  mailboxes is running, you can see 
the mailboxes.db growing until ~76KB, but when finished it has just 144 bytes. 
Via cyradm you can do a lm and all you see is just one mailbox and you can´t 
create others.

Please any light?

Thanks

Wander
----
Wanderley O. Mendes
Software Specialist [EMAIL PROTECTED]
Phone: +55-12-560-8432  Fax: +55-12-560-8435
INPE/CPTEC - Cachoeira Paulista - São Paulo - Brazil
----








Re: Working Vacation?? [solved?]

2003-01-23 Thread John Alton Tamplin
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.

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.

--
John A. Tamplin   Unix System Administrator
Emory University, School of Public Health +1 404/727-9931






convert Unix-style spooled mail to cyrus

2003-01-23 Thread test s
Hi,

Does anyone know how to convert Unix-style spooled mail to cyrus.

Tahnks...

_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus