Re: Minimum days between sieve vacation responses

2011-11-05 Thread Ramprasad
On Fri, 2011-11-04 at 08:24 -0500, k...@rice.edu wrote:
 On Fri, Nov 04, 2011 at 07:59:07AM +0100, Bron Gondwana wrote:
  On Fri, Nov 04, 2011 at 12:22:54PM +0530, Ram wrote:
   Can I configure sieve to send vacation responses for every message .. 
   rather than waiting for n days before responding again to the same 
   sender
  
  Ouch - why?  There's a danger of mail loops, amongst other things.
  
  Bron.
 
 Double ouch, ouch! That is a really, really, REALLY bad idea. We actually
 made a work-around within the mail system to make this happen and sooner
 or later, in EVERY case, we had a massive mail loop or other type of self-
 inflicted DoS against our mail infrastructure. In most of them, the users
 themselves received so much mail that their mail clients were unable to
 handle the volume and mail administrators were needed to clean things
 enough for them to get back to work.
 


I understand that this may lead to mail loops

But our client requires that every mail to sa...@domain.comshould
immediately get a response ( Business requirements .. not technical ) 


Assuming that I have methods to avoid looping at the SMTP level .. how
can I do this in cyrus, sieve




Thanks
Ram






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


Re: singleinstancestore obsolete?

2011-10-19 Thread Ramprasad
On Wed, 2011-10-19 at 13:38 +0200, Wolfgang Breyha wrote:
 Bron Gondwana wrote, on 19.10.2011 12:27:
  On Wednesday, October 19, 2011 12:18 PM, Wolfgang Breyha 
  wbre...@gmx.net wrote:
  Hi!
  
  Is singleinstancestore obsolete/useless in 2.4.(12)?
  
  This option is read into singleinstance in lmtpd.c and nntpd.c, but never
  used afterwards? Or did I miss something searching the source?
  
  Hmm...
  
  r = append_fromstage(as, content-body, stage, 0,
   (const char **) flag, nflags, !singleinstance);
  
  Looks to me like you missed something.
 
 Obviously;-) Sorry for that.
 
 The main reason I was looking into these things was, that I'm searching for
 the best way to migrate a 2.3.16 backend with ~4TB spools and ~80k users to
 2.4. Unlike my other backends this one profits pretty much from
 singleinstancestore (many massmailings) and I don't want to loose these
 savings if possible.
 
 Simply upgrading the backend is impossible. The index upgrades will kill this
 machine.
 
 Since replication is not a possible way from 2.3.16 to 2.4 I tried to figure
 out if a simple XFER takes care about that. But it doesn't as far as I can 
 tell.
 
 Do you know of a possible way to do that? Even if it's not trivial in the
 first place.
 
 Greetings, Wolfgang

I think , writing a standalone index upgrade utility , like the ipurge ,
seems to be a reasonable thing to do 


If there was a light enough index upgrade possible ( only for inboxes ..
not subfolders ) Then I could stop cyrus , fork probably around 100
parallel upgrades take a 2-3 hour downtime and then start services again














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


Re: Index upgrade problems after cyrus upgrade

2011-10-12 Thread Ramprasad
On 10/13/2011 6:39 AM, Adam Tauno Williams wrote:
 On Thu, 2011-10-13 at 05:33 +0530, Ramprasad wrote:
 I just upgraded cyrus on a busy Imap server from 2.3.x to 2.4.6 ,
 problem is with lmtp delivery.
 All lmtp deliveries from postfix are hanging forever.
 I think this is due to the Index upgrade that is going on .. Is there
 a way I can speed up the index upgrade
 I have 2000 users and only 200 users index upgrade is complete till now
 in last 4 hours
 Are you letting index reconstructs happen on-the-fly or are you doing a
 reconstruct of the mailbox(es).  A reconstruct will rebuild the indexes.

I just sent a mail to all mailboxes , so lmtp delivery will do a Index 
upgrade.
Reconstructing will be much heavier , I think.

Is there a way I can do a Index-upgrade only ?

Also I have a few more servers to upgrade .. but if this is going to 
take so long , upgrade may not be possible. Only if I could upgrade the 
Index before really upgrading cyrus then this would work







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


Re: Cyrus imap server and filesystem type.

2011-10-04 Thread Ramprasad
On Mon, 2011-10-03 at 21:58 +0200, Josef Karliak wrote:
 Hi there,
what filesystem type do you use for Cyrus imapd ? I use SLES11x64  
 (or opensuse 11.4).
I use Reiserfs3.6, so far so good. But couldn't be better ? :)
Thanks for share your expericiencies.
J.K.
 
 
 Cyrus Home Page: http://www.cyrusimap.org/
 List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/


We have tried reiserfs , ext3 ZFS and xfs on linux. 
Reiserfs is stable   but I think ZFS is the best.  The compression is
something we really appreciate

xfs is horribly slow compared to resierfs or ZFS 



Thanks
Ram



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


Re: Scaling of imap servers

2011-06-16 Thread Ramprasad A.P
Quoting Lars Schimmer l.schim...@cgv.tugraz.at:

 On 2011-06-15 13:33, Ram wrote:
 We need to create a platform for create a large number of cyrus accounts
 that can scale indefinitely
 I could start with just 2k  users  but could have 20x the number of
 accounts by next year.
 I was thinking of taking a cloud-based machine at amazon or rackspace
 and scale hardware vertically  as required.
 But the problem with rackspace or amazon is they do not offer much
 storage and cap the total storage that can be used.

 Send all email on free base to amazon? Why should amazon get all your
 emails? If you do not care about security and privacy, you can also use
 googleMail.

 I would like to know how do you guys do the same

 Have a look at fastmail.fm - they have setup a fairly big serverfarm
 with cyrus.

 Thanks
 Ram


Using outsourced mail is not possible


The biggest problem is harddisk space
Every user is looking for huge amounts of diskspace even if I need  
20GB per user I cant get so much disk space at affordable cost.








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


Duplicate elimination causing loss of legitimate mails

2011-02-15 Thread Ramprasad
Hi,

On our cyrus 2.3.7 servers we are seeing legitimate mails getting
duplicate eliminated. Some users continue to use non-compliant clients
which use duplicate message-ids. 

Is it  possible to auto-expire records in deliver.db after say 3 hours
so that these losses could be minimized ... the current minimum is 1 day
AFAIK

I cannot switch off duplicate elimination because that would cause
problems to all other users too. 


(I know I should tell users to upgrade email clients .. but that is not
going to work in reality ) 




Thanks
Ram




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


Re: Duplicate elimination causing loss of legitimate mails

2011-02-15 Thread Ramprasad

 There is a possible workaround. You can configure a separate smtp server
 which is used by the broken clients to submit messages, and there you
 configure the MTA to always replace the Message-ID by a newly created one.
 
 Simon



But the second instance of MTA ( postfix  in my case )  must do no
delivery of its own except forwarding to the first instance or else it
will cause mail duplication. 


I had done this ( for all users globally not for just those clients)  ..
but the problem is it breaks threads on decent email clients. 
So I had to revert back. 


Will it not be easier to just expire records sooner on deliver.db. 
Also this will cause lmtp to run faster I believe .. since it will have
a smaller lookup to do. 



Thanks
Ram












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


Quota file not in sync with actual Hardisk usage

2010-06-30 Thread Ramprasad
On my cyrus imap (2.3.7 on RHEL-5.2) server I have seen that for a few  
users the quota shown in cyrus is lesser than actual usage as shown by  
du output

Is there something I need to check



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


Reconstruct removes @domain from mboxlist

2010-02-03 Thread Ramprasad
Hi,

   I have a cyrus-imapd 2.3.7  on RHEL 5 with multiple domains

When I reconstruct a user mailbox on the primary domain it works fine  
, but when any secondary domain mailbox is reconstructed the user is  
unable to login

when I dump the mailbox list I find that the users permissions are removed

domain.tld!user.ram 0 1 r...@domain.tld lrswipda

becomes ( after reconstruct )

domain.tld!user.ram 0 1 ram lrswipda

---
Why is reconstruct corrupting the mailboxes.db




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


cyrus not able to delete files after migration

2007-02-16 Thread Ramprasad
I have cyrus 2.3.7-4 on Centos 4.4 ( reiserfs partitions).

 We recently migrated the data and everything apparently is working
fine. We simply rsynced /var/spool/imap and /var/lib/imap from the old
cyrus box 

But what we have realized is when a user deletes the mail and expunges
the mail is not seen in the mailbox ( imap or pop ) and the quota file
is also updated properly. But the physical file is not deleted 

When I reconstruct the mailbox all expunged mail-files are deleted but
newer files are still stick on even after expunge until next
reconstruct 

What may be causing the issue. How can I debug ??
( We have around 22000 mailboxes with around 20GB of mails per day ) 


Thanks
Ram 



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


How do I increase default DBD cache size

2007-01-31 Thread Ramprasad
I was reading performance tuning information at 

http://cyrusimap.web.cmu.edu/imapd/install-perf.html
I too have a large cyrus setup with minimum  600+ connections at a time
We are upgrading to a 8GB Ram Dual Xeon box , I want to make sure we use
the hardware optimally 

The document talks of increasing cache size in cyrus source which file
do I change ? 

I made this change to the source ( patch file ). Will it work 



Index: lib/imapoptions
===
--- lib/imapoptions (.../cyrus-2.3.7-DEFAULT)   (revision 134)
+++ lib/imapoptions (.../cyrus) (revision 134)
@@ -155,7 +155,7 @@
creating the mailbox INBOX.  The user's quota is set to the value
if it is positive, otherwise the user has unlimited quota. */

-{ berkeley_cachesize, 512, INT }
+{ berkeley_cachesize, 4096, INT }
 /* Size (in kilobytes) of the shared memory buffer pool (cache) used
by the berkeley environment.  The minimum allowed value is 20.  The
maximum allowed value is 4194303 (4GB). */


Thanks
Ram


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


Re: How do I increase default DBD cache size

2007-01-31 Thread Ramprasad
 No need to patch the code for that - it's an option!  Just put:
 
 berkeley_cachesize: 4096
 
 in your /etc/imapd.conf
 
 We use skiplist for our mailboxes.db and we haven't seen any issues that
 were caused by leaving that at its default value.
 

I need to compile cyrus with skiplist right ? 
What are the pros and cons of skiplist ? 




 That said:
 
 % cat $confdir/db/DB_CONFIG
 set_cachesize 0 2097152 1
 set_lg_regionmax 2097152
 set_lg_bsize 2097152
 set_lg_max 16777216
 set_tx_max 200
 set_tas_spins 1
 % 
 


I dont have this file in my db directory ( /var/lib/imap/db ) 
Do I have to create this file ?


 (and no, I didn't set that up, so I'm not sure why all those values.  It
 works for us though)
 
 Sounds like your hardware should cope OK with 600 connections:
 
 [EMAIL PROTECTED] root]$ netstat -n -a | grep :2143 | wc -l
 2232
 
 And that's at one of our least busy times.  I expect it goes up to 2 or
 3 times that during the U.S. day.
 
 NOTE: we're using reiserfs for our drives, and that machine has 42
 partitions split over 8 different raidsets via two separate SCSI
 controllers, and a split meta configuration that puts the meta data
 on RAID1 for speed.  Still, it's possible to get an order of magnitude
 more connections out of that sort of spec.  That's 8Gb of memory in
 that machine, and dual hyperthreading Xeons:
 

Why do you have so many partitions ? And do you run the MTA on the same
machine ? 

Thanks
Ram



 model name  : Intel(R) Xeon(TM) CPU 2.40GHz
 stepping: 7
 cpu MHz : 2394.878
 
 (there's some headroom left with the memory still too...)
 -/+ buffers/cache:61185642193000
 
 Bron.


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


Re: How to reconstruct database

2007-01-31 Thread Ramprasad
On Wed, 2007-01-31 at 12:16 +0100, Dr. Harry Knitter wrote:
 hello,
 
 I want to transfer the contents of my cyrus from an i385 machine to a 
 AMD-64-machine.
 How can I restore the mailbox database from the text file created by:
 su - cyrus -c ctl_mboxlist -d  $CONFIGDIRECTORY/mailboxlist.txt
 ?
 


su - cyrus -c ctl_mboxlist -u  /path/mailboxlist.txt



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


japanese headers getting corrupted

2006-11-02 Thread Ramprasad
I have cyrus-imapd-2.2.3 on FC1 


When mail is delivered from postfix to cyrus , via unix lmtp some mails
with japanese characters in headers ( from: and Subject: ) get changed

The headers get replaced with XX   ( non-ascii chars become X )  
but the body is not changed at all 

something like this 
Reply-To: XXXc  X^XX [EMAIL PROTECTED]
From: XXXc  X^XX [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: XX


Do I have to do any setting to allow japanese characters ?


Thanks
Ram



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


Re: lmtp should give temporary failure for mailbox unknown

2006-10-16 Thread Ramprasad
On Fri, 2006-10-13 at 10:23 +0200, Simon Matter wrote:
  On Thu, 2006-10-12 at 11:55 -0700, Jo Rhett wrote:
  I have seen this behavior.  It happens when a mail account exists in
  authentication (ie mysql) but when the mailbox doesn't exist yet.
 
  Are you using autocreate inbox?  If so, are you sure that the inbox
  exists for these mailboxes prior to the message delivery?  Or you could
  enable createonpost  (I recommend against this for oh-so-many reasons,
  but YMMV)
 
  No
  I dont use autocreate inbox. And as I have said lmtp accepts mail for
  the same ids most of the times. One in every ~300 mails bounces
  unexplicably
 
  I am now doing a dumb thing of running postfix on the cyrus box too to
  accept the mails and relay to unix lmtp. This is loading the already
  loaded cyrus server ( with approx 2 active acounts ) .. but atleast
  clients dont get bounced messages from my bosses id.
 
 The question is, does it still happen with unix lmtp? Did you already
 switch to the new configuration?
 

Now that you have mentioned .. I am looking at the logs and seeing
similar bounces on unix lmtp too. Looks like I *really* have a problem

Thanks
Ram




 Simon


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


Re: lmtp should give temporary failure for mailbox unknown

2006-10-13 Thread Ramprasad
On Thu, 2006-10-12 at 11:55 -0700, Jo Rhett wrote:
 I have seen this behavior.  It happens when a mail account exists in 
 authentication (ie mysql) but when the mailbox doesn't exist yet.
 
 Are you using autocreate inbox?  If so, are you sure that the inbox 
 exists for these mailboxes prior to the message delivery?  Or you could 
 enable createonpost  (I recommend against this for oh-so-many reasons, 
 but YMMV)
 
No 
I dont use autocreate inbox. And as I have said lmtp accepts mail for
the same ids most of the times. One in every ~300 mails bounces
unexplicably 
 
I am now doing a dumb thing of running postfix on the cyrus box too to
accept the mails and relay to unix lmtp. This is loading the already
loaded cyrus server ( with approx 2 active acounts ) .. but atleast
clients dont get bounced messages from my bosses id. 


This has surely got to do with the load on the cyrus machine. But
returning 550 when machine is loaded is a *really* dumb idea.



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


lmtp should give temporary failure for mailbox unknown

2006-10-11 Thread Ramprasad
This is actually related to my previous question ... 

I just configured my cyrus server to accept mails directly from my
remote postfix server  over lmtp 

Everything seems to work fine but sometimes lmtp gives strange errors
like 

 to=X, orig_to=X, relay=202.162.229.40[202.162.229.40]:24,
delay=0.26, delays=0.25/0/0/0.01, dsn=5.1.1, status=bounced (host
202.162.229.40[202.162.229.40] said: 550-Mailbox unknown.  Either there
is no mailbox associated with this 550-name or you do not have
authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO
command))


  When actually the mailbox is valid. The same mail sent again reaches
the mailbox without problems. The cyrus server is highly loaded most of
the time.


I want lmtp (over tcp) to give tempfail instead. I am already ensuring
mbox exists at smtp level


Thanks
Ram





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


lmtp rejecting mails for valid mailboxes

2006-10-10 Thread Ramprasad
I just configured my cyrus server to accept mails directly from my
remote postfix server  over lmtp 

Everything seems to work fine but sometimes lmtp gives strange errors
like 

 to=X, orig_to=X, relay=202.162.229.40[202.162.229.40]:24,
delay=0.26, delays=0.25/0/0/0.01, dsn=5.1.1, status=bounced (host
202.162.229.40[202.162.229.40] said: 550-Mailbox unknown.  Either there
is no mailbox associated with this 550-name or you do not have
authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO
command))


  When actually the mailbox is valid. The same mail sent again reaches
the mailbox without problems. 

  What could be the reason. The cyrus server is highly loaded most of
the time could that be a reason. 

Anyway I dont want lmtp failures to bounce the mail , can I send a 450
instead of 550. Because I am already ensuring the mailbox exists before
accepting the mail.
How do I configure this on postfix or lmtp ? 


Thanks
Ram






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


Re: lmtp rejecting mails for valid mailboxes

2006-10-10 Thread Ramprasad
On Tue, 2006-10-10 at 16:50 +0200, Daniel Eckl wrote:
 Hi!
 
 I don't seem to see lmtp here at all.
 Your MTA seems to reject these mails on SMTP layer.
 
relay=202.162.229.40[202.162.229.40]:24,

That is the lmtp relay on the remote server. 
I already have the userlist in hash dbs . As I said it works most of the
times but sometimes randomly lmtp bounces a mail

Thanks
Ram




 Most probably your MTA can not know which mailboxes cyrus has and that's
 why it rejects all mails, because local users are no system user, but by
 using cyrus, they are pure virtual. So the mails don't hit lmtp delivery
 to cyrus at all.
 
 You should use local_recipient_maps for all users which are in cyrus.
 These maps can reside in a file or in a mysql or in an ldap server and
 the program which creates new accounts could update this table
 automatically. In my case, this is webcyradm who does this for me in mysql.
 
 http://www.postfix.org/LOCAL_RECIPIENT_README.html
 
 Best,
 Daniel
 
 On 10.10.2006 16:01, Ramprasad wrote:
  I just configured my cyrus server to accept mails directly from my
  remote postfix server  over lmtp 
  
  Everything seems to work fine but sometimes lmtp gives strange errors
  like 
  
   to=X, orig_to=X, relay=202.162.229.40[202.162.229.40]:24,
  delay=0.26, delays=0.25/0/0/0.01, dsn=5.1.1, status=bounced (host
  202.162.229.40[202.162.229.40] said: 550-Mailbox unknown.  Either there
  is no mailbox associated with this 550-name or you do not have
  authorization to see it. 550 5.1.1 User unknown (in reply to RCPT TO
  command))
  
  
When actually the mailbox is valid. The same mail sent again reaches
  the mailbox without problems. 
  
What could be the reason. The cyrus server is highly loaded most of
  the time could that be a reason. 
  
  Anyway I dont want lmtp failures to bounce the mail , can I send a 450
  instead of 550. Because I am already ensuring the mailbox exists before
  accepting the mail.
  How do I configure this on postfix or lmtp ? 
  
  
  Thanks
  Ram
  
  
  
  
  
  
  Cyrus Home Page: http://cyrusimap.web.cmu.edu/
  Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
  List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


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


how to specify trusted hosts for lmtp

2006-10-09 Thread Ramprasad
Hi,
   I want to deliver mails directly to lmtp from a remote MTA. I want
cyrus lmtpd to trust the particular host
How is this configured ? 

Thanks
Ram


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


setacl mailbox for virtual domain ids not working

2006-09-28 Thread Ramprasad
Hi
I have a cyrus 2.3.7 server running on linux ( centos) with virtual
domains

If I have try to setacls to a virtual domain-id it is not working
From cyradm this is the error I am getting 

-
cyradm  --user=cyrus localhost
IMAP Password:
localhost sam user/alm1 [EMAIL PROTECTED] all
setaclmailbox: [EMAIL PROTECTED]: lrswipkxtea: Invalid identifier

---

Do I need to escape the '@' in some special way in the id

Thanks
Ram



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


squatter doesnt work with virtual domains

2006-09-19 Thread Ramprasad
Hi,
   I have a cyrus 2.3.7 intallation with virtual domains
All primary domain users have usernames as uid only and the virtual
domain users have usernames as full email id


When squatter is run , I find that only the primary domain users
mailboxes are squatted . Is there something special to be done for the
other domains

Thanks
Ram


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


Allow any passwords from one host

2006-09-16 Thread Ramprasad
Hi,
  I am trying to design a custom mail archiving system for a cyrus
mailbox. 
My scripts will login to the cyrus mailbox and depending on rulesets
fetch the mails and store them to particular directories on a different
server


Now Is it possible to configure cyrus to allow any password  from a
trusted host. (Security is not an issue at all because imap is not open
from most ips except from webmail and archive server that too in a
trusted network)

Thanks
Ram






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


Cyrus sasl auth requires entry in /etc/hosts

2006-09-13 Thread Ramprasad
Hi,
   I have a cyrus setup with one primary domain and many virtual domains

A) Saslauthd is running as 
saslauthd -m /var/run/saslauthd -a pam -r


B) Username in ldap
for primary domain 
uid=userid

for virtual domain 
[EMAIL PROTECTED]


Now when my /etc/hosts does not have 
127.0.0.1 primary-domain.com 

a primary-domain user is not able to authenticate .. but virtual domain
users have no problem at all 


Cant I do without the /etc/hosts entry
Thanks
Ram

PS:
I am using cyrus 2.3 on centos 4.3 


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


SQL Storage for fast retrieval from archives

2006-09-01 Thread Ramprasad
Hi,
  I am trying to use cyrus for my mail archives ( typically 1GB-10GB per
user ) for say 100 users 

What is the best way of storing mails. There will not be much of
add/delete from these archives but retrieval has to be fast on header or
body search. 

Cyrus with the current storage ( one mail per file ) is good enough for
header search , but fails on body search. 

Does cyrus have an option to store in MySQL etc. I think body search
will be much faster with SQL

Thanks
Ram
 



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: SRS in cyrus sieve

2006-05-31 Thread Ramprasad
On Wed, 2006-05-31 at 01:52 +0200, Kjetil Torgrim Homme wrote:
 On Fri, 2006-05-26 at 11:56 +0530, Ramprasad wrote:
   I am using cyrus-imapd-2.2.12-3 on centos. How can I enable SRS address
  rewriting in sieve
  
  I want all redirected mails ( vacation or forward ) to go with ids from
  my domain instead of ids of the from domain
 
 SPF doesn't work, don't use it, and don't try to support those who are
 wrongheaded enough to employ it.  that said, do all your SRS rewriting
 in your MTA, it's the only way to be sure the behaviour is consistent.
 BTW, vacation messages have the empty sender, so SRS doesn't apply
 there.

IMHO SPF works.If forwarded mails are the only thing SPF breaks and can
be overcome with SRS, then Why not use it? I think it is more of ego
issues than technical in the way of SPF. People are against SPF because
bullies like Micro$$oft or AOL promote it more than anything else. 

Thanks
Ram 


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


SRS in cyrus sieve

2006-05-26 Thread Ramprasad
Hi,
 I am using cyrus-imapd-2.2.12-3 on centos. How can I enable SRS address
rewriting in sieve

I want all redirected mails ( vacation or forward ) to go with ids from
my domain instead of ids of the from domain

Thanks
Ram


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


Mail Archiving .. is there any ready tool

2006-02-17 Thread Ramprasad
Is there any ready tool I can use with cyrus for mail archiving. I would
like to have all mails  archived into a searchable , indexed repository 
and can be used by end user if possible 



Thanks
Ram



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


sieve forwarding with extra text

2006-02-14 Thread Ramprasad
Hi,
  We have a cyrus installation( on linux redhat 9)   with around 110k
mailboxes. I want to allow users to setup forwarding to different email
ids ( probably more than 1 ) 

Can I setup sieve so that the email forwarded will have special text
attached to it ? 

Also I am not sure how sieve would scale for 110k mailboxes , will it be
too heavy a load ? 

Thanks
Ram



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


how to set UIDVALIDITY after reconstruct.

2006-01-07 Thread Ramprasad
Hi,
  I would like to set UIDVALIDITY of all users mailbox after doing
reconstruct. Is there a way I can restore UIDVALIDITY of many mailboxes
( ~15k accounts ) to those on a old server

I am using cyrus 2.2.3-8 on both servers

Thanks
Ram 


--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html

Support FAQ : http://support.netcore.co.in/
--


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


Avoiding duplicates in pop download

2006-01-06 Thread Ramprasad
Hi all,

  I have a cyrus server with users connecting and using pop or imap.
Some of the pop users have set leave-a-copy flag ON in their email
clients. 
Now I am planning to migrate the mailboxes to a different cyrus server.
The problem is those users who have a leave-a-copy on the old server
will get all the mails as new mails in the new server.

Can I avoid this ? 

Thanks
Ram 
   


--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html

Support FAQ : http://support.netcore.co.in/
--


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: Avoiding duplicates in pop download

2006-01-06 Thread Ramprasad
On Fri, 2006-01-06 at 08:11 -0500, Ken Murchison wrote:
 Ramprasad wrote:
  Hi all,
  
I have a cyrus server with users connecting and using pop or imap.
  Some of the pop users have set leave-a-copy flag ON in their email
  clients. 
  Now I am planning to migrate the mailboxes to a different cyrus server.
  The problem is those users who have a leave-a-copy on the old server
  will get all the mails as new mails in the new server.
  
  Can I avoid this ? 
 
 The only way to avoid this is to make sure that the UIDVALIDITY of the 
 mailboxes don't change.  What are the versions of the Cyrus servers?
 

Cyrus versions are same on both servers are 2.2.38

Thanks
Ram


--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html

Support FAQ : http://support.netcore.co.in/
--


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


frequent DBERROR problems with the db directory

2005-11-10 Thread Ramprasad




hi all,
 I have a imap server running cyrus 2.1.3 running on fedora core 1 
I frequently get errors like this ( sometimes even thrice a day ) 

Nov 10 12:19:04 yy lmtpd[6258]: DBERROR: opening /var/imap/mailboxes.db: Cannot allocate memory
Nov 10 12:19:04 yy lmtpd[6258]: DBERROR: opening /var/imap/mailboxes.db: cyrusdb error
Nov 10 12:19:04 yy lmtpd[6258]: FATAL: can't read mailboxes file
Nov 10 12:19:04 yy lmtpd[6258]: DBERROR db4: Database handles open during environment close

I remove all files from /var/imap/db and restart cyrus and things start working fine
Can I solve this permanently , without having to upgrade the cyrus server

Thanks
Ram




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

ipurge doesnt work for mailbox pattern

2005-10-21 Thread Ramprasad A Padmanabhan
Hi,
   I want to delete all older mails from my cyrus mailboxes

   If I run ipurge like
 ipurge -d 60 -f user  then it works file
 
   But If I run ipurge with a pattern it fails 
 ipurge -d 60 -f user/someuser  

I tried user/someuser or user.someuser etc ... doesnt help 

Thanks
Ram



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


Can I bypass authentication for connections from a host

2005-10-20 Thread Ramprasad A Padmanabhan
Hi,
   We are running cyrus-imapd-2.2.3-8 on linux. I would like to run some
maintenance script from a server. Can I configure cyrus to bypass
authentication for connections from one IP

We are using saslauthd with mysql based authentication

Thanks
Ram


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: Is there a limit to number of mailboxes in cyrus

2005-09-07 Thread Ramprasad A Padmanabhan
On Tue, 2005-09-06 at 19:14, Sebastian Hagedorn wrote:
 Hi,
 
 --On 6. September 2005 18:14:27 +0530 Ramprasad A Padmanabhan 
 [EMAIL PROTECTED] wrote:
 
I have a cyrus server running linux RHEL3 with around 4000 mailboxes.
 
 we have about 30,000 users using the same OS, using the RPMs from 
 http://www.invoca.ch/pub/packages/cyrus-imapd/.

3 !! 
Is this on a single machine. Can you give some details about the
hardware you use ?

Thanks
Ram


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


Is there a limit to number of mailboxes in cyrus

2005-09-06 Thread Ramprasad A Padmanabhan
Hi,
  I have a cyrus server running linux RHEL3 with around 4000 mailboxes.
( Single machine 2GB Ram dual-cpu with RAID ).
Most of the users (90%) use pop to read their mails

The problem is with frequent corruption of mailboxes. I have to
reconstruct the mailboxes and then runs fine again.

Is there some tuning I can do to my server or just that I cant add any
more users now 

thanks
Ram


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: backend database ?

2004-02-08 Thread Ramprasad A Padmanabhan




On Sun, 2004-02-08 at 23:21, Joakim Ryden wrote:

on 02/08/2004 03:15 AM Michael Jonsson said the following:
 For all the mail...

Mail is not stored in any database.

--


May not be now, But is there any reason mail cannot be stored in a database. Or a ldap directory.
This thought occurred to me When I tried to integrate a web application with cyrus. A database will offer such a host of new possibilities

Ramprasad




NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Re: api to access cyrus header/index files

2004-01-23 Thread Ramprasad A Padmanabhan




On Thu, 2004-01-22 at 19:14, Sergio Devojno Bruder wrote:

Ramprasad A Padmanabhan wrote:
 I am using cyrus mailboxes to store rss feeds users have subscribed 
 to.   Now I am putting special headers in the mails for every feed which 
 are specific to my application.
 
 I want to do an optimum search on all mailboxes somewhat like
 select all mails from all mailboxes where header Xmyheader is myvalue
 
 Is there a way I can do such a search without crashing my (already 
 loaded) imap server.
 I was thinking if there was a way to directly access the cyrus.header 
 files from all mailboxes that can give me this result. Presently I am 
 using Mail::IMAPClient perl module to talk imap to the server
 
 Thanks
 Ram

Probably Cyrus inst caching your Xmyheader.

Change Cyrus to cache|index your Xmyheader, this will allow your search 
without acessing every mail.



Precisely, How do I do that. Is there a howto somewhere

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






api to access cyrus header/index files

2004-01-22 Thread Ramprasad A Padmanabhan




I am using cyrus mailboxes to store rss feeds users have subscribed to. Now I am putting special headers in the mails for every feed which are specific to my application.

 I want to do an optimum search on all mailboxes somewhat like
select all mails from all mailboxes where header Xmyheader is myvalue

Is there a way I can do such a search without crashing my (already loaded) imap server.
I was thinking if there was a way to directly access the cyrus.header files from all mailboxes that can give me this result. Presently I am using Mail::IMAPClient perl module to talk imap to the server

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Lmtp refusing connection all of a sudden

2004-01-12 Thread Ramprasad A Padmanabhan




I have a cyrus 2.1.12 server running on redhat 7.2 with around 1500 users 
Now all of a sudden lmtp is refusing connections even though cyrus is running and the sock /var/imap/socket/lmtp is created

Now How do I debug this error , Can I enable some loging somewhere
I cant see anything in my messages file

The users are able to login to the server using imap /POP but no new mails are delivered . Can someone please help me out.



Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Re: Autodelete of old mails

2004-01-08 Thread Ramprasad A Padmanabhan




On Tue, 2003-12-30 at 12:44, Craig Ringer wrote:

Ramprasad A Padmanabhan wrote:
 I want to maintain my cyrus-imap server in such a way that all mails
 older than 30 days will be deleted for all users
  I have written a client code using perl Mail::IMAPClient. 
 But I was wondering if it was possible at the cyrus level.
 the popexpiretime:  in imapd.conf  parameter is something like this ,
 But I dont think I can use it to actually delete older mails

What about using the `ipurge` command? I nuke my users' trash mailboxes 
after 14 days with a simple command in the EVENTS section of cyrus.conf:

   purgetrashcmd=ipurge -d 14 -f user.%.Trash at=0200

and it works well.

Craig Ringer



I am trying ipurge out.
Seems a good idea, but does not work even if one mailbox is corrupt.
I have around 2000 mailboxes on a redhat 7.3 machine but now whenever ipurge encounters the first corrupt mailbox it just exits

Is there a way I can tell ipurge to continue on error after reporting the errors

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Re: Autodelete of old mails

2004-01-08 Thread Ramprasad A Padmanabhan




On Thu, 2004-01-08 at 17:26, Craig Ringer wrote:

Ramprasad A Padmanabhan wrote:
 I am trying ipurge out.
 Seems a good idea, but does not work even if one mailbox is corrupt.

A better question might be why you have corrupt mailboxes. I don't run a 
particularly large server, but I haven't run into mailbox corruption 
that hasn't been my fault (manually deleting a message when first 
learning about Cyrus). It seems odd for mailbox corruption to be a 
sufficiently common thing on your server that it makes a scheduled 
ipurge run impractical.

Any idea what is causing the corruption?

Craig Ringer


A corrupt mailbox , usually means a messy administration I agree.
But what happens if you get corrupt mailboxes because in the dead of the night the partition run out of disk space 
or because there is some one accessing using pop over a very slow link which breaks off every now and then

Now the point is I have corrupt mailboxes , users arent complaining because they are not using ( mostly )
Now what do I do ? 
I am thinking of running ipurge as a pipe process in a perl script and catch the output. If it has quit anywhere in the middle reconstruct the mailbox and start again
Now the point is How do I tell ipurge to start from where I left out.

Running a different ipurge for every user is ruled out , that is too slow for my box. 

I am thinking of a hack in the ipurge source with another commandline option 
something like
ipurge -f -d 30 --skipuntil 'user/someuser' 

Is that feasible

Thanks
Ram







NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






ipurge simply exits in between

2004-01-03 Thread Ramprasad A Padmanabhan




I want to delete all users mails older than 30 days on my cyrus imap server running on redhat linux 7.3
Thanks to members in this group , I found out I could do that with a utility called ipurge 

So I do a ipurge
su - -c'/usr/cyrus/bin/ipurge -f -d 30 -s user' cyrus

This program starts with some users mailboxes but simple exits at a particular mailbox

The output is 
...
...
Working on [EMAIL PROTECTED]^blogstreet^com.Trash...


There are no logs or error messages.
Can I enable some debug to find out why this exits

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Autodelete of old mails

2003-12-30 Thread Ramprasad A Padmanabhan




I want to maintain my cyrus-imap server in such a way that all mails older than 30 days will be deleted for all users
 I have written a client code using perl Mail::IMAPClient. 
But I was wondering if it was possible at the cyrus level.
the popexpiretime: in imapd.conf parameter is something like this , But I dont think I can use it to actually delete older mails

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Quotawarn settings

2003-12-12 Thread Ramprasad A Padmanabhan




Hi all , 

 I want to use quotawarn to automatically intimate user and the admin that the user quota is above a particular %age of the quota

 I have put 
 quotawarn: 90
in /etc/imapd.conf

Now where Do I enter the text message ( if any ) that will go to the user 
Is there a way I can Cc: the warning also to the admin

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Cyrus +ldap howto

2003-12-11 Thread Ramprasad A Padmanabhan




Is there a how to for using cyrus with cyrus sasl and ldap for passwords

I already have got this working on my machine rehdhat linux 9.0 , But the problem is I am using it with plain text passwords in ldap. I want to encrypt them ( any encryption , SSA CRYPT etc ) . So what changes do I have do to ldap.conf and the ldap data

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Audit logs of mailbox access

2003-12-05 Thread Ramprasad A Padmanabhan




Hello everyone

 One of my clients is using planning to use his own server , running cyrus+postfix or sendmail on linux.
This imap server will be used by customers who will receive regular newsletters.

One of the requirements is that whenever a customer reads / moves / deletes a mail the information should be logged for reporting purpose

So is there a plugin into cyrus by which I can trigger an external program , with arguments like userid , message-id , etc whenever

1) A mail reaches a mailbox
2) The mail is marked read
3) The mail is marked deleted

I know it seems to be too much of a requirement , But the purpose should be very obvious.
With such a plugin I can find out which users are reading what newsletters.

Has anyone done such a thing before
Thanks
Ram






NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






How to get last logged in time

2003-11-11 Thread Ramprasad A Padmanabhan




How do I come to know when a user last logged on to the server using either a pop/Imap client

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ and FlexiMail: Messaging Solutions: http://netcore.co.in

Pragatee: Integrated Server-Software Suite: http://www.pragatee.com

Emergic Freedom: Server-centric Computing: http://www.emergic.com

BlogStreet: Blog Profiles and RSS Ecosystem: http://blogstreet.com

Deeshaa: Rural Development: http://www.deeshaa.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org






Return permanent failure on quota

2003-10-27 Thread Ramprasad A Padmanabhan




I want to bounce back mails immediately if the mailbox quota is exceeded. 

Can I do this with just some parameter change

Thanks
Ram





Cyrus aggregator

2003-10-21 Thread Ramprasad A Padmanabhan




I am sorry, for a question that looks a FAQ. I am looking for a scalable cyrus architecture that can support POP and maybe IMAP too. 
 I came across this document 
 http://asg.web.cmu.edu/cyrus/ag.html

I am reading this yet but I am not able to understand the idea completely. Can I just install an aggregator on a machine and put it infront of my cyrus server ( running a pretty old version 2.0.14 )
Can I use it for talking pop to my other pop servers ( like qpopper ) 
If there is more documentation on all this, can someone send me links 

Thanks
Ram





Re: script for creating folders into users mailboxes

2003-10-16 Thread Ramprasad A Padmanabhan




On Thu, 2003-10-16 at 13:34, RJ45 wrote:

Hello,
I would like to create automatically a folder SPAM in every
user mailbox.
Is it possible to do that with a cyradm script ?
Anyone did that already ?
Anyone could point me to an already avaliable sript if such a thing does
exist ?
thank you

Rick



With just a little bit of perl , you could write a small program 
look at Cyrus::IMAP::Admin


Bye
Ram





Re: Still can't get cyradm to work

2003-10-16 Thread Ramprasad A Padmanabhan




On Thu, 2003-10-16 at 18:41, Doug Koobs wrote:

Is there any way to re-compile and install cyradm without completely re-installing Cyrus? I still cant get cyradm to work (no response, just drops me back to bash prompt when I try to run it).

I used less to look at the cyradm file, and it looks more like some kind of a man page than a perl script... Is this correct? It contains whole paragraphs of plain english that are not commented. I know next to nothing about programming, but this seems strange.



Well It is a shell script not a perl script if I remember right.
That is just a wrapper around perl module Cyrus::IMAP::Shell 
If you can install this module It should work

If you are new to perl this might be some effort , Start from http://cpan.org

Bye 
Ram





RE: Still can't get cyradm to work

2003-10-16 Thread Ramprasad A Padmanabhan




On Thu, 2003-10-16 at 20:03, Doug Koobs wrote:

Ram,



I am somewhat familiar with using CPAN to install perl modules, so I used 

perl MCPAN e shell



and ran the command



cpan install Cyrus::IMAP::Shell



and here is what I got:




Ok just try installing the perl cyrus rpm



perl-Cyrus-IMAP-2.1.9-28




Disable leave a copy in cyrus pop

2003-10-10 Thread Ramprasad A Padmanabhan




Hello all,

 Is there a way I can disable leave a copy on the server. I have got some users who have kept a leave a copy on the server and now their mails are bouncing because of quota.

 Seeing how pop works I assume that it is quiet difficult to disable leave a copy, Is there a way I can atleast find out how many users have kept leave a copy on

Thanks
Ram





Problems with pop access

2003-10-01 Thread Ramprasad A Padmanabhan




I am using cyrus imapd 2.1.13 on redhat 9.0 with saslauthd and pam_ldap for authentication

Most of my users are using pop access but sometimes the server just refuses connection, or accepts connection and delivers mail but does not delete mail from the server.
I restart cyrus and things start working fine

If such a thing happens 
How do I start cyrus in a debug mode so that I can see what is going wrong



Thanks
Ram





Can I use sieve scripts with procmail

2003-09-22 Thread Ramprasad A Padmanabhan




I have been using lmtp and am considering using procmail instead

Will sieve work with procmail as well

Thanks
Ram





Unable to delete big mails

2003-09-20 Thread Ramprasad A Padmanabhan




Hello all,
 I am using cyrus-imapd-2.1.13 on redhat 9.0. Some users are using pop some imap ( total around 400 ).
Everything runs fine. But sometimes( It has happened almost 4-5 times this week ) Some users are complaining that they are unable to purge mails. Almost always the mail is above 1Mb in size.

I just login to the server and restart cyrus and things start moving fine. 
I just have made a cron entry to restart cyrus every night. But can anyone explain why would this happen

Thanks
Ram





Re: Login without a mailbox

2003-09-17 Thread Ramprasad A Padmanabhan




On Wed, 2003-09-17 at 16:04, Richard Gilbert wrote:

We use PAM and LDAP for authentication (pam_ldap from PADL).  All our
users are in the LDAP server but not all our users have mailboxes on the
Cyrus IMAP server.  Users without a Cyrus mailbox are still able to login
via our Webmail service and are presented with an empty mailbox.  How can
I stop users without a mailbox being able to login successfully?

We are running cyrus-imapd-2.1.14 and cyrus-sasl-2.1.14.

I think the problem is not with cyrus itself. Are u using Horde-Imp for the webmail. It is do to with the setting on the webbased mail

To verify you can use imtest on a non existing account

Ram





Re: Sql based Spamassassin with sieve

2003-09-16 Thread Ramprasad A Padmanabhan




On Mon, 2003-09-15 at 21:08, Darron Froese wrote:

On Monday, September 15, 2003, at 09:38 AM, Ramprasad A Padmanabhan 
wrote:

 So Does that mean That I have to use procmail and .procmailrc

You have to use procmail to do it this way - but you don't have to use 
.procmailrc.

You could put the spamc stuff in your /etc/procmailrc which is run 
every time procmail starts up. So you won't need extra .procmailrc 
files for each user. The only problem with this is that *everyone* will 
have their mail scanned by spamassassin this way.

 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

I don't have local users either - all email authentication is done from 
a mysql database.
--
darron froese
principal
nonfiction studios inc.
t  403.686.8887
c 403.819.7887
f  403.313.9233
w http://nonfiction.ca/
e  [EMAIL PROTECTED]



Thanks for all the info. One more thing that I would like to know is If my sieve filters will still continue to work If I change my LDA to procmail
I found sieve and duplelim as great features. I know I can do filtering with procmail too But again that will require every users' home directory

Thanks
Ram






Re: Sql based Spamassassin with sieve

2003-09-15 Thread Ramprasad A Padmanabhan




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

Ram






Re: Sql based Spamassassin with sieve

2003-09-15 Thread Ramprasad A Padmanabhan




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

Thanks
Ram





Re: Sql based Spamassassin with sieve

2003-09-12 Thread Ramprasad A Padmanabhan
On Thu, 2003-09-11 at 05:53, Ted Cabeen wrote:
 Ramprasad A Padmanabhan [EMAIL PROTECTED] writes:
 
  I am using a gateway spamassassin with Mailscanner. The problem is every
  user would like his own individual preferences stored.
 
  So I was looking if there was a way I could use sieve to fork
  spamassassin per user with the user name and the prefernces stored in
  Mysql database.
 
  I found that some people have done this, But there doesnt seem to be
  much documentation
 
 We do it with amavisd-new before the mail reaches cyrus.  It uses a
 slightly different schema for the preferences than SA, but it works
 well.  Using amavisd-new for this also means that multi-recipient
 messages are only run through SA once, regardless of the number of
 recipients.
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

Thanks
Ram




Sql based Spamassassin with sieve

2003-09-09 Thread Ramprasad A Padmanabhan
I am using cyrus on my mailserver ( Linux redhat 7.2).
The users dont have any system accounts.

I am using a gateway spamassassin with Mailscanner. The problem is every
user would like his own individual preferences stored.

So I was looking if there was a way I could use sieve to fork
spamassassin per user with the user name and the prefernces stored in
Mysql database.

I found that some people have done this, But there doesnt seem to be
much documentation

Thanks
Ram




NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying
http://netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Blog Profiles, RSS Ecosystem, Blog Tops, Search
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology: http://www.emergic.org





Sieve forwarding to multiple-ids

2003-09-01 Thread Ramprasad A Padmanabhan




How can I use sieve for forwarding to multiple email ids
Thanks
Ram





Re: Anyone migrating from lotus to cyrus

2003-08-01 Thread Ramprasad A Padmanabhan




On Wed, 2003-07-16 at 12:28, Joakim Ryden wrote:

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


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

Ram






NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Server Sizing for 50,000 mailboxes

2003-07-28 Thread Ramprasad A Padmanabhan




Hello all,

 I have a basic question on sizing. How does one decide on the sizing

Now My client wants a sizing for 50,000 mailboxes. Say I use Sendmail/Cyrus and expect 50 mails/s then What will be the server sizing?

I have a three server architecture for 1 mailboxes one SMTP one
IMAP and the third is a virus scanner and it runs fine

So for 50,000 mailboxes will I require 5 x 3 = 15 servers 
Now that does not look sensible

Thanks
Ram




NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Unable to delete folders in shared mailbox

2003-07-17 Thread Ramprasad A Padmanabhan




On Wed, 2003-07-16 at 21:10, Brett Thomson wrote:

Hi there,

I am rather new to cyrus and wasn't involved in the installation or
configuration of the cyrus imap server and now have to look after it. So
please forgive me if this is a stupid question or problem.

For the company i work for, we have shared mailboxes such as
[EMAIL PROTECTED] and info etc.
I have set the permissions on the mailboxes for each department group to
have full access to this mailbox. Everyone is able to login/subscribe to
the imap mailboxes and read, delete and reply to emails but should
anyone create a imap folder within this mailbox, no one not even the
creator of the folder can delete it.

I have tried giving each intervidual user who needs full access to the
mailbox explict full rights to the mailbox with no luck. People are able
to delete folders in their own personal mailboxes without a problem.

I have looked everywhere and have not be able to workout or find
information on where I have gone wrong. Does anyone know where i can
find information on this problem or point me in the right direction for
fixing it.

Thanks for any help offered in advance
Brett



It seems just like a unix permission problem. In unix you can create/delete subfolders and files in a folder only if you have write permission to the parent folder. Similarly try giving delete access to the parent folder and then delete the folder

Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Anyone migrating from lotus to cyrus

2003-07-16 Thread Ramprasad A Padmanabhan




On Tue, 2003-07-15 at 20:56, Mike Cathey wrote:

On Tue, 2003-07-15 at 10:40, Ramprasad A Padmanabhan wrote:
 Can Anyone give me any leads

Set 'Debug = 1' in your source Mail::IMAPClient instance.

What version of Mail::IMAPClient are you using?

If you're not running the latest version from CPAN (2.2.8), I strongly
suggest you do so.  I just migrated a few (~4500) accounts with the
module and found that the version in debian/stable was so old that the
migrate() method wasn't even fully implemented in it.  I had to grab the
lastest version from CPAN.  There was a bug (ID# 2455) in the migrate
method in 2.2.7 that caused it to not copy the message flags to the
destination IMAP server for messages smaller than $bufferSize.  This
appears to be fixed in 2.2.8.

Cheers,

Mike


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.

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: subscribing for a user

2003-07-16 Thread Ramprasad A Padmanabhan
Phil Chambers wrote:
I am still new to cyrus and trying to find my way.  I have tries searching this list 
archive but could not find this issue.

If I create a folder for a user using the Cyrus::IMAP::Admin perl module, is it 
possible to mark that folder as being one of the user's subscribed folders?

While I am referring to Cyrus::IMAP, can anyone direct me to documentation on the 
perl modules?  I have tried perldoc Cyrus::IMAP and get No documentation found.

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter
Unfortunately I too faced this problem but could not get any easy solution
What I ended up doing was , since I would know the passwd of the user I 
logged on as the user using Mail::IMAPCLient module
and sucscribed to the folder

perldoc Mail::IMAPClient



NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying
http://netcore.co.in
Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com
BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com
Rajesh Jain's Weblog on Technology: http://www.emergic.org




Re: sa prior to lmtp delivery

2003-07-15 Thread Ramprasad A Padmanabhan




On Tue, 2003-07-15 at 05:06, pnelson wrote:

RH 9
cyrus 2.1.13
sasl 2.1.13
sendmail 8,12,8
spamassassin 2.44

Have been using sa on my clients (evolution) and then sending the INBOX
inbound mail to a filter that runs spamc -e to check for spam.  This
works great.  But I would like to move this to sendmail and then use
sieve to filter spam to my INBOX/zjunk mailbox.  The problem is I cant
figure out how.

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.


You can use sendmail with milter. You would find some opensource milter wit h SA
What I use is MailScanner. The advantage is that I can do virus scanning,sa, blocking attachments etc
Check this
http://freshmeat.net/releases/124633/

Another option ofcourse is at the sieve level, I think supported in the latest cyrus release
I havent tried it , but if it works fine let me know

Thanks
Ram






NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Anyone migrating from lotus to cyrus

2003-07-15 Thread Ramprasad A Padmanabhan




Hello all,

Is there any utility that can migrate mails from a lotus server with imap support to a cyrus server

I have written a perl script using Mail::IMAPClient which copies mails from one server to another using imap protocol
This script works fine with cyrus or WU imap servers but just hangs when I try it on a lotus server

Can Anyone give me any leads
Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Recovering a corrupt mailboxes.db

2003-07-14 Thread Ramprasad A Padmanabhan




On Sun, 2003-07-13 at 20:09, Patrick Welche wrote:

On Sat, Jul 12, 2003 at 06:03:54PM +0530, Ramprasad A Padmanabhan wrote:
 Is it possible to reconstruct the mailboxes.db
 
 I know I can use ctl_mboxlist and a file with all the mailboxes but
 there seems to be no utility that create this file from the mail spool
 directory

Have a look at /usr/cyrus/bin/reconstruct (!)


That Works only for files/mails within the inbox and not for mails in sub folders



Cheers,

Patrick





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Recovering a corrupt mailboxes.db

2003-07-14 Thread Ramprasad A Padmanabhan




On Mon, 2003-07-14 at 16:55, Ken Murchison wrote:

Ramprasad A Padmanabhan wrote:
 On Sun, 2003-07-13 at 20:09, Patrick Welche wrote:
 
/On Sat, Jul 12, 2003 at 06:03:54PM +0530, Ramprasad A Padmanabhan wrote:
 Is it possible to reconstruct the mailboxes.db
 
 I know I can use ctl_mboxlist and a file with all the mailboxes but
 there seems to be no utility that create this file from the mail spool
 directory

Have a look at /usr/cyrus/bin/reconstruct (!)
/

 That Works only for files/mails within the inbox  and not for mails in 
 sub folders

Look at reconstruct -r -f



No Sir I did that but of no avail
Ultimately I had to dump the mailboxes.db and create the entries for the missing folders by hand( I mean by emacs ) 
And upgrade the mailboxes,db again with ctl_mboxlist
This is a pain and I will sure hope it never happens again

Or else I think I will write a simple perl script that will read all directories and create those entries in the mailboxes.db dump file

Any comments
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Recovering a corrupt mailboxes.db

2003-07-12 Thread Ramprasad A Padmanabhan




Is it possible to reconstruct the mailboxes.db

I know I can use ctl_mboxlist and a file with all the mailboxes but there seems to be no utility that create this file from the mail spool directory

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: login failed in cyradm

2003-07-11 Thread Ramprasad A Padmanabhan




On Fri, 2003-07-11 at 18:17, Simon Matter wrote:

Hi,

Did you create the file /etc/sysconfig/saslauthd? You have to put
'MECH=pam' into the file and restart saslauthd, otherwise saslauthd on
RedHat 9 will default to use shadow instead of pam.


Obviously I did or else it would not work with imtest or telnet localhost 143

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






API to write to lmtp directly

2003-07-09 Thread Ramprasad A Padmanabhan




Is there an API available with which I can directly write to lmtp instead of sending a mail

I am presently using postfix and sending the mail, But I believe that calling an smtp agent has its own overheads.
I am sending 10-15 messages to around 850 mailboxes every hour using postfix and aliases. The problem is there are too many lmtp processes and I get lmtp lock errors too often




-- 
Ramprasad A Padmanabhan [EMAIL PROTECTED]
Netcore Solutions








NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






FAQ How to change a userid

2003-06-30 Thread Ramprasad A Padmanabhan




Is there a way I can change the user id 
I was searching the internet people have said I will have to create a new account and move the mails to the account
That Seems quite laborious. 

 When I am easily able to rename A subfolder of inbox ( using cyradm )
 'user/usarname/folder  user/username/newfolder'

Then Why Cant I similarly rename
 'user/username  user/newusername '


Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Best way of putting a single file into multiple mailboxes

2003-06-26 Thread Ramprasad A Padmanabhan




On Wed, 2003-06-25 at 21:48, Henrique de Moraes Holschuh wrote:

On Wed, 25 Jun 2003, Ramprasad A Padmanabhan wrote:
 I dont want to increase no of concurrent lmtp connection on the contrary
 decrease them. I figured out the way of decreasing them But still the
 results are no great

I have postfix (2.0) delivering stuff here to up to 5000 users in a single
lmtp session (AND as a single message, too. We use it for site-wide
newsletters).  You just need to make sure all the limits (such as recipient
limit, per-transport limits, etc) agree.

Postfix will open one lmtp connection to cyrus, and use that for all it can
(that does mean to deliver a bunch of different mails to different
recipients). It will open a new lmtp connection only if all the current ones
are busy connections, AND you haven't told it not to (by limiting the
number of lmtp transports in master.cf).  It will tear down the lmtp
connection only after it was idle for a while.

I agree with you but my situation is a little different

I must have explained my problem more clearly, I have got around only 10 recepients per newsletter on an average and there are around 700 such newsletters to be delivered. These are news articles people have subscribed to accourding to interests

Suppose Now I increase the number of lmtp_concurrent connections and if multiple instances of ltmp are trying to deliver to the same mailbox then these mailboxes will get locked , so again There will be lmtp connections waiting. I havent tried out increasing the number of concurrent connections per user because I want to be sure before I change anything on the live server

Thanks
Ramprasad






NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: LMTP won't deliver the mail

2003-06-26 Thread Ramprasad A Padmanabhan




On Thu, 2003-06-26 at 09:45, Rob Tanner wrote:

Hi,

Intalled v2.1.13 on Solaris (sunos 5.7).  Solved one problem only to 
have another pop up out of the blue a few hours later.  LMTP simply 
stopped delivering.  At one time I had over 700 lmtp processes running, 
but no mail was being delivered.  No errors are logged.  It just 
stopped working, seemingly out of the blue.  I stopped and restarted 
the master process and stopped and restarted postfix.  Nothing I did 
helped.  Since this is a production system (the test system never gave 
me any problem, but then it never had any heavy load either), I 
ultmiately had to reconstruct the mail partitions and put the 
MessagingDirect server back in service.

I really want to get the system over to Cyrus.  Any ideas as to what 
was happening.  Is there anything I might look for in the logs that 
might give me a clue (keeping in mind that no specific errors were 
reported)?


If you havent got over it by now ( that would be too bad if that was a real live server ) 
do what I would normally do in such a situation.
stop cyrus 
kill all lmtp processes ( You may still see them in `ps `)
now remove deliver.db file .. might be in /var/imap/
start cyrus again
keep fingers crossed

Hope that helps 
Ram






NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Best way of putting a single file into multiple mailboxes

2003-06-25 Thread Ramprasad A Padmanabhan




I am trying to deliver newsletters to multiple people who have accounts on my own server. 
I am sending it as mail to postfix and delivering to all mailboxes 
The problem is there are so many lmtp connections that cyrus dies. Especially When I have hundreds of such newsletters generated

The alternative I am thinking of is to use IMAP to copy these files
If I have a super user account who has write access to all mailboxes Then I can write a script that will login as superuser and copy the message into all mailboxes

Does anyone has any better Ideas ?

Thanks
Ram









NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Re: Cyrus takes long time to restart

2003-06-23 Thread Ramprasad A Padmanabhan
Rob Siemborski wrote:
On Sat, 21 Jun 2003, Ramprasad A Padmanabhan wrote:


I am running cyrus 2.0.16 on redhat 7.2 linux
There are 2000+ mailboxes on the server and almost everyone uses POP to
download the mails
The problem is whenever cyrus is restarted it takes too long to start
almost 3 minutes.
Is there some pruning that needs to be done with cyrus database. And
since 95% of my users are using POP does that make any change to the
configuration


Yes, the recovery of the cyrusdb files still needs to be done.

Depending on what backends you are using, you may be able to solve this by
increasing checkpoint frequency or pruning the database more often.
Can you show me where I can find docs to do so. I am using db files to 
store the backend.

Thanks
Ram




NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying
http://netcore.co.in
Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com
BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com
Rajesh Jain's Weblog on Technology: http://www.emergic.org




LMTPD error on NUL characters

2003-06-23 Thread Ramprasad A Padmanabhan




Sometimes I get such Kind of errors,

[EMAIL PROTECTED]: host /var/imap/socket/lmtp[/var/imap/socket/lmtp]
 said: 554 5.6.0 Message contains NUL characters (in reply to end of DATA
 command)

 Looked up on google ( I dont Know How will I survive without google) 

 People have said run 'tr -d \\000' on the file before delivery
But Only a small percentage of my mails give this error and it is not worth scanning all mails for NUL chars
Is there a better way





-- 
Ramprasad A Padmanabhan [EMAIL PROTECTED]
Netcore Solutions








NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org






Cyrus takes long time to restart

2003-06-21 Thread Ramprasad A Padmanabhan




I am running cyrus 2.0.16 on redhat 7.2 linux 
There are 2000+ mailboxes on the server and almost everyone uses POP to download the mails
The problem is whenever cyrus is restarted it takes too long to start almost 3 minutes.
Is there some pruning that needs to be done with cyrus database. And since 95% of my users are using POP does that make any change to the configuration

Thanks
Ram





NETCORE SOLUTIONS *** Ph: +91 22 5662 8000 Fax: +91 22 5662 8134

MailServ: Email, IM, Proxy, Firewall, Anti-Virus, LDAP
Fleximail: Mail Storage, Management and Relaying 
http://www.netcore.co.in

Emergic Freedom: Linux-based Thin Client-Thick Server Computing
http://www.emergic.com

BlogStreet: Top Blogs, Neighborhoods, Search and Utilities
http://www.blogstreet.com

Rajesh Jain's Weblog on Technology:http://www.emergic.org