Re: Posting usenet news articles

2007-03-16 Thread Micha Kersloot
Nobody using the nntp part of Cyrus?

Op woensdag 14-03-2007 om 16:12 uur [tijdzone +0100], schreef Micha
Kersloot:
 I hope someone can help me with this problem.
 
 I've managed to get som newsgroups into Cyrus and I can read them with my
 e-mail client and with a netnews client. I can post new messages, but they
 do not get forwarded to my usenet peer.
 
 The only part of the configuration that seems important is:
 # News setup
 partition-news: /var/spool/cyrus/news
 newsspool: /var/spool/news
 newsprefix: netnews
 newspeer: @news.versatel.nl:*,!control.*,@local.*
 newspostuser: netnews
 
 I have no real clue where to start looking ehh help?
 
 Greetings,
 
 Micha Kersloot
 
 
 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
-- 
Met vriendelijke groet,

Micha Kersloot

Controleer uw eigen IT.
http://www.own-it.nl/


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: FastMail.FM patchset - new patches

2007-03-16 Thread David Carter

On Thu, 15 Mar 2007, John Capo wrote:

masterconf_getsection() calls add_service() which inits the service 
structures with have_uuid but have_uuid is not set till after the 
services are initialized.


Ah, have_uuid is new in 2.3. That line definitely needs to move, but I 
think that the message_uuid_master_init() call should stay where it is.


--
David Carter Email: [EMAIL PROTECTED]
University Computing Service,Phone: (01223) 334502
New Museums Site, Pembroke Street,   Fax:   (01223) 334679
Cambridge UK. CB2 3QH.

--- master/master.c-DIST2007-03-16 08:45:56.0 +
+++ master/master.c 2007-03-16 08:46:13.0 +
@@ -1938,6 +1938,8 @@
 /* set signal handlers */
 sighandler_setup();

+have_uuid = (config_getint(IMAPOPT_SYNC_MACHINEID) = 0);
+
 /* initialize services */
 for (i = 0; i  nservices; i++) {
service_create(Services[i]);
@@ -1954,7 +1956,6 @@
}
 }

-have_uuid = (config_getint(IMAPOPT_SYNC_MACHINEID) = 0);
 if (have_uuid  !message_uuid_master_init()) {
 syslog(LOG_ERR, Couldn't initialise UUID subsystem);
 exit(EX_OSERR);


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: squatter indexing folders that dont exist anymore

2007-03-16 Thread Philippe Trolliet
hi,
i activated squatter because i got error messages that there are no indexes
for the dirs. recently i created some test folders and after a while i
deleted them. squatter is still indexing those folders which don´t exist
anymore. in horde and in the outlook subscription dialog those folders
aren´t visible too. i deleted some folders with outlook and some with horde.
here a snippet of my maillog:

Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/Trash...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/drafts...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/fdkfhdfj...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/sent-mail...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/test...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/test12...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/test123...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/test2...
Mar 12 11:53:51 mail squatter[2596]: indexing mailbox
user/p.trolliet.novaware.de/test2/test3...
Mar 12 11:53:51 mail squatter[2596]: done indexing mailboxes

the only folders that still exist are Trash, sent-mail, drafts and spam.
first question: why isn´t the folder spam listed above?
second: why is squatter still indexing the deleted folders?

regards
philippe


i found out that the above mentioned directories have been deleted under:
/var/spool/imap/domain/...

but the directories still exist in:
/var/spool/imap/p/user/...

what´s happening here?

-- 
I am using the free version of SPAMfighter for private users.
It has removed 4100 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len

attachment: winmail.dat
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: FastMail.FM patchset - new patches

2007-03-16 Thread David Carter

On Fri, 16 Mar 2007, David Carter wrote:

Ah, have_uuid is new in 2.3. That line definitely needs to move, but I 
think that the message_uuid_master_init() call should stay where it is.


Or even (as per the fastmail patch).

--
David Carter Email: [EMAIL PROTECTED]
University Computing Service,Phone: (01223) 334502
New Museums Site, Pembroke Street,   Fax:   (01223) 334679
Cambridge UK. CB2 3QH.

--- master/master.c-DIST2007-03-16 08:45:56.0 +
+++ master/master.c 2007-03-16 09:49:01.0 +
@@ -1931,6 +1931,8 @@
 init_snmp(cyrusMaster);
 #endif

+have_uuid = (config_getint(IMAPOPT_SYNC_MACHINEID) = 0);
+
 masterconf_getsection(START, add_start, NULL);
 masterconf_getsection(SERVICES, add_service, NULL);
 masterconf_getsection(EVENTS, add_event, NULL);
@@ -1954,7 +1956,6 @@
}
 }

-have_uuid = (config_getint(IMAPOPT_SYNC_MACHINEID) = 0);
 if (have_uuid  !message_uuid_master_init()) {
 syslog(LOG_ERR, Couldn't initialise UUID subsystem);
 exit(EX_OSERR);


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


Sendmail/CyrusIMAP/LDAP -- Workload ??

2007-03-16 Thread BipinDas




Hi All,
I do have a mail server with following configurations.

Sendmail/Squirrelmail (One machine-Debian)
Cyrus-Imapd (One machine-Debian) 
LDAP (One machine-Debian).

I have used the Autocreate utility of UoA. Also the Virtusertable
and
Access table are maped with the LDAP server. Everything works fine.
My
intention on this type environment is to share the load of each
applications.
Now I would like to know , is anybody did like such an environment
before. If yes Please share your experience with me and how many
User
accounts are you maintaining in such a system ? How is the
performance
of the system ? etc.

Sorry to all, if I made a wrong post here.
-- 




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: Questions... need Sieve primer

2007-03-16 Thread Roland Felnhofer
How did you create your imap/cyrus accounts - what is your 
authentication source?

sasldb2, passwd, ldap (which I prefer) ???

Best regards
Roland


Jason Bailey, Sun Advocate Webmaster wrote:

Malcolm Locke wrote:
On Wed, Mar 14, 2007 at 05:34:52PM -0600, Jason Bailey, Sun Advocate 
Webmaster wrote:

Roland Felnhofer wrote:

Hi Jason,

is that what you want?

# Mail rules to file Junk
require [fileinto];
if allof (header :contains  X-Spam-Flag YES) {
fileinto INBOX.Junk;
}

Best regards
Roland

Jason Bailey, Sun Advocate Webmaster wrote:

Hello all,

I am familiar with what Sieve does, but have never used it. We now 
have a need, and I'm struggling to find info on sieve, particularly 
relating to Cyrus.
I want a sieve script that moves all mail marked as junk by spam 
assassin (x-spam-flag) into the Junk folder (for only one of 4 
domains we host).
Is this possible, and if so, is there a good place to look for help? 
I know my Cyrus has sieve support and the directories are defined, 
but I don't know how to enable or install the script, and I have few 
questions on sieve scripting in general.

Suggestions?



I think so, except I need it to only apply to one mail domain. In 
other words, if recipient is part of domain.com1, and X-Spam-Flag is 
set to YES, move it into the junk - otherwise do nothing. The 
reasoning is that the other domains we host are entirely POP3 based, 
and mail moved into junk folders on the server could be detrimental 
to their work flow.


Sieve is applied per mailbox, not across the whole server.  To upload
and enable the sieve script 'mysieve' for mailbox 'joebloggs':

$ sieveshell -a joebloggs -u joebloggs cyrusserver
# Enter joebloggs IMAP / POP password
 put mysieve
 activate mysieve
 list
mysieve - active script

You will have to tune the contents of 'mysieve' to your needs, if you
google 'spamassassin sieve' you should find plenty of examples.

Malc

I have been doing some reading in the mean time, and discovered 
sieveshell. Unfortunately, it doesn't allow me to login.


unable to connect to server at /usr/bin/sieveshell line 174, STDIN
line 1.

I checked the logs and it says:

Mar 14 17:08:16 fs2 sieve[2714]: executed
Mar 14 17:08:16 fs2 sieve[2714]: accepted connection
Mar 14 17:08:19 fs2 sieve[2714]: no secret in database
Mar 14 17:08:19 fs2 sieve[2714]: badlogin: localhost[127.0.0.1] 
CRAM-MD5 authentication failure
Mar 14 17:08:22 fs2 sieve[2714]: badlogin: localhost[127.0.0.1] 
LOGIN authentication failure


Cyrus is set up to use /etc/sasldb2 for authentication. This is 
where I'm the most incapable when it comes to Cyrus. I'm lucky I 
even got the software to do what it does now.


In my imapd.conf, I have:

configdirectory: /var/lib/imap
partition-default: /var/spool/imap
sievedir: /var/lib/sieve
admins: cyrus
allowanonymouslogin: no
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
#sasl_pwcheck_method: saslauthd
lmtp_overquota_perm_failure: no
lmtp_downcase_rcpt: yes
virtdomains: userid
loginrealms: domain1.com domain2.com domain3.com
autocreatequota: 102400
quotawarnkb: 5120
unixhierarchysep: yes
altnamespace: yes
allowplaintext: yes
sasl_pwcheck_method: auxprop
sasl_mech_list: PLAIN LOGIN CRAM-MD5

saslauthd is set up to use pam and is running (the default config 
for the rpm). I have /etc/pam.d/imap and /etc/pam.d/sieve. But given 
I am using /etc/sasldb2, shouldn't it look there before defaulting 
to saslauthd in the first place?


I am running SLES 10 on x86_64 (EM64T)

Jason Bailey, Web/IT Administrator
Sun Advocate / Emery County Progress
[EMAIL PROTECTED] / [EMAIL PROTECTED]
(435) 637-0732 (ext 31)


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





Okay... sieve is per mailbox. That actually works out to my benefit.

So how do I get sieveshell to let me login? The authentication aspects 
of Cyrus are my weakest spot... I don't know what I'm doing. All I 
know is that it won't let me login. Documentation is spotty at best. 
What now?


The imaptest works, logins directly through cyrus (or cyradm, for that 
matter) work fine. But sieveshell doesn't.


Ideas?

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


smime.p7s
Description: S/MIME Cryptographic Signature

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: Message retention policies

2007-03-16 Thread Bron Gondwana
On Fri, Mar 16, 2007 at 12:16:21PM +1300, Malcolm Locke wrote:
 On Thu, Mar 15, 2007 at 04:24:00PM -0600, Jason Bailey, Sun Advocate 
 Webmaster wrote:
  Is it possible to set up a message retention policy that deletes email 
  that is, say, over a year old from the mailboxes on the server?
  
  I know many IMAP servers do support message retention policies, but I 
  have had difficult time finding thorough, concrete information on them 
  regarding Cyrus. Does such a feature even exist?
 
 2 things need to be in place:
 
 - The mailbox you want to have cleared out needs to have the 'expire'
   annotation set.  Easiest way is via cyradm, e.g. to set an expiry of
   30 days on joebloggs Trash folder.
 
   cyradm mboxcfg user.joebloggs.Trash expire 30
 
 - The cyr_expire command needs to be running in the EVENTS section of
   cyrus.conf.  I have:
 
 delprune  cmd=cyr_expire -E 3 period=1440
 
   Which causes the expired messages to be deleted every 24 hours.

That's probably the easiest way.  I tend to go for external controls,
and would be more likely to implement a script running from cron that
looked something like the following piece of Perl.  This is guaranteed
to hit all the folders (modulo domain split, etc) and doesn't depend 
on the annotations being kept up to date.

It's not the most efficient piece of code in the world (no attempt to
store flags on multiple messages at once), but it's simple and clear.

This code is somewhat tested, though I replaced user. with user.brong.
to restrict the output, and I didn't run the delete path!

Bron.

--

   # set up parameters here:
   my $Server = 'localhost';
   my $Port = 143;
   my $Username = 'admin';
   my $Password = '';
   my $REALLYDELETE = 0;

   use warnings;
   use strict;
   use Date::Manip;
   use Mail::IMAPTalk;

   my $Lastyear = UnixTime(- 1 year, '%d-%b-%Y');

   my $imap = Mail::IMAPTalk-new(
 Server = $Server,
 Port = $Port,
 Username = $Username,
 Password = $Password,
 Uid = 1,
   );

   # look at every folder on the system as the admin user
   my @folders = $imap-list('user.', '*');
   foreach my $folder (@folders) {
 my $foldername = $folder-[2];

 $imap-select($foldername);

 my $messages = $imap-search('1:*', 'BEFORE', $Lastyear);
 my $n = @$messages;
 next unless $n; # remove this if you want 0 message notifications too!

 print $foldername deleting $n messages older than $Lastyear\n;

 if ($REALLYDELETE) {
   foreach my $uid (@$messages) {
 $imap-store($uid, '+flags', '(\\deleted)');
   }
   $imap-expunge();
 }
   }

   exit 0;

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/imap set quotas on cyrus/imap mailboxes.

2007-03-16 Thread Chuck Amadi

Hi List

I have the notes for cyrus/imap set quotas something like this from a 
previous employer.

Thus I would like clarificartion or url to a good tutorial or howto.

Use  /cyradm/ to set quota to 50mb

localhost setquota user.joey 50.000 quota:5.000
localhost lq user.joey STORAGE 0/5.000 (0%)

add *quotawarn*  */etc/imapd.conf* to Warn Users

vi and add the following below::

*quotawarn: 90*


Please can someone suggest a good list or is it just the case of joining 
cyruss/imap as
I want to read and digest setting up cyrus/imap set quotas to get a  a 
handle on it.


Cheers
Chuck

--
Chuck Amadi
ROK Corporation Limited
Ty ROK,
Dyffryn Business Park,
Llantwit Major Road,
Llandow,
Vale Of Glamorgan.
CF71 7PY

Tel: 01446 795 839
Fax: 01446 794 994
International Tel:   +44 1446 795 839

email: [EMAIL PROTECTED]

This email is confidential to the addressee only. If you do not believe
that you are the intended recipient, do not pass it on or copy it in any
way. Please delete it immediately.



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: cyrus/imap set quotas on cyrus/imap mailboxes.

2007-03-16 Thread Aleksandr Stankevic

Hi there on this list too,

I think oreilly's managing imap has a public chapter on managing cyrus
which could be useful.

You can find it here: http://www.oreilly.com/catalog/mimap/chapter/ch09.html


 Hi List

 I have the notes for cyrus/imap set quotas something like this from a
 previous employer.
 Thus I would like clarificartion or url to a good tutorial or howto.

 Use  /cyradm/ to set quota to 50mb

  localhost setquota user.joey 50.000 quota:5.000
  localhost lq user.joey STORAGE 0/5.000 (0%)

  add *quotawarn*  */etc/imapd.conf* to Warn Users

  vi and add the following below::

  *quotawarn: 90*


 Please can someone suggest a good list or is it just the case of joining
 cyruss/imap as
 I want to read and digest setting up cyrus/imap set quotas to get a  a
 handle on it.

 Cheers
 Chuck

 --
 Chuck Amadi
 ROK Corporation Limited
 Ty ROK,
 Dyffryn Business Park,
 Llantwit Major Road,
 Llandow,
 Vale Of Glamorgan.
 CF71 7PY

 Tel: 01446 795 839
 Fax: 01446 794 994
 International Tel:   +44 1446 795 839

 email: [EMAIL PROTECTED]

 This email is confidential to the addressee only. If you do not believe
 that you are the intended recipient, do not pass it on or copy it in any
 way. Please delete it immediately.


 
 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



-- 
Aleksandr Stankevic
Unix system administrator
Mobile: +370 650 28747
ICQ: 214480900


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: cyrus/imap set quotas on cyrus/imap mailboxes.

2007-03-16 Thread Chuck Amadi

Aleksandr Stankevic wrote:

Hi there on this list too,

I think oreilly's managing imap has a public chapter on managing cyrus
which could be useful.

You can find it here: http://www.oreilly.com/catalog/mimap/chapter/ch09.html


  

Hi List

I have the notes for cyrus/imap set quotas something like this from a
previous employer.
Thus I would like clarificartion or url to a good tutorial or howto.

Use  /cyradm/ to set quota to 50mb

 localhost setquota user.joey 50.000 quota:5.000
 localhost lq user.joey STORAGE 0/5.000 (0%)

 add *quotawarn*  */etc/imapd.conf* to Warn Users

 vi and add the following below::

 *quotawarn: 90*


Please can someone suggest a good list or is it just the case of joining
cyruss/imap as
I want to read and digest setting up cyrus/imap set quotas to get a  a
handle on it.

Cheers
Chuck

--
Chuck Amadi
ROK Corporation Limited
Ty ROK,
Dyffryn Business Park,
Llantwit Major Road,
Llandow,
Vale Of Glamorgan.
CF71 7PY

Tel: 01446 795 839
Fax: 01446 794 994
International Tel:   +44 1446 795 839

email: [EMAIL PROTECTED]

This email is confidential to the addressee only. If you do not believe
that you are the intended recipient, do not pass it on or copy it in any
way. Please delete it immediately.



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




Hi Aleksandr 

   Excellent .

   Cheers


--
Chuck Amadi
ROK Corporation Limited
Ty ROK,
Dyffryn Business Park,
Llantwit Major Road,
Llandow,
Vale Of Glamorgan.
CF71 7PY

Tel: 01446 795 839
Fax: 01446 794 994
International Tel:   +44 1446 795 839

email: [EMAIL PROTECTED]

This email is confidential to the addressee only. If you do not believe
that you are the intended recipient, do not pass it on or copy it in any
way. Please delete it immediately.



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


Program Failure (75) of /usr/lib/cyrus/bin/deliver

2007-03-16 Thread Jochem Meyers
Hi all,

One of the servers I work with gives the following error message in
procmail.log when trying to deliver an email to cyrus. I've compared the
configuration files of both cyrus and procmail with a working server to see
if there's any differences, and can't find any.

Program Failure (75) of /usr/lib/cyrus/bin/deliver

What does this message mean exactly? I've tried googling and have found a
number of different explanations, from missing lmtpd daemons (not the case,
it's running correctly) to users exceeding quotas (we don't use quotas and
there's plenty of free diskspace.

Thanks for any help.

Regards,

Jochem


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: autocreate broken in 2.3?

2007-03-16 Thread Brian Dial
oh, duh.  i thhought they were part of the core by now.  thanks!

Simon Matter wrote:
 Using SuSE 10.2 with the included cyrus-imapd-2.2.13 I was able to gget
 it to autocreate the inbox, some folders, and auto subscribe to some
 folders upon authentication to my ldap server.  However, I recently did
 a manual upgrade to cyrus 2.3.8 and it has all stopped working.  Cyrus
 

 Did you include the autocreate patches? The source distribution doesn't
 include it.

 Simon

   
 works fine on upgrade for the most part, but now it doesn't even create
 the user's inbox upon authentication.  Is there any additional
 directives needed in 2.3 that i could be missing?  Here is the relevant
 portion of my imapd.conf

 allowanonymouslogin: no
 allowallsubscribe: 1
 autocreateinboxfolders: Drafts|Sent Items
 autosubscribesharedfolders: Projects
 altnamespace: 1
 sharedprefix: Shared Folders
 autocreatequota: 10



 
 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


Re: Questions... need Sieve primer (SOLVED)

2007-03-16 Thread Jason Bailey, Sun Advocate Webmaster
I have the sieveshell working now. I was mis-interpreting the 
parameters, thus providing incorrect authentication information.


This worked:
sieveshell -a [EMAIL PROTECTED] localhost

I was doing (which didn't work):
sieveshell -a user -r domain.com localhost

And on a site note, I am using sasldb2 for authentication.

Jason Bailey, Web/IT Administrator
Sun Advocate / Emery County Progress
[EMAIL PROTECTED] / [EMAIL PROTECTED]
(435) 637-0732 (ext 31)

Roland Felnhofer wrote:
 How did you create your imap/cyrus accounts - what is your 
authentication source?

 sasldb2, passwd, ldap (which I prefer) ???

 Best regards
 Roland


 Jason Bailey, Sun Advocate Webmaster wrote:
 Malcolm Locke wrote:
 On Wed, Mar 14, 2007 at 05:34:52PM -0600, Jason Bailey, Sun 
Advocate Webmaster wrote:

 Roland Felnhofer wrote:
 Hi Jason,

 is that what you want?

 # Mail rules to file Junk
 require [fileinto];
 if allof (header :contains  X-Spam-Flag YES) {
 fileinto INBOX.Junk;
 }

 Best regards
 Roland

 Jason Bailey, Sun Advocate Webmaster wrote:
 Hello all,

 I am familiar with what Sieve does, but have never used it. We now
 have a need, and I'm struggling to find info on sieve, 
particularly relating to Cyrus.

 I want a sieve script that moves all mail marked as junk by spam
 assassin (x-spam-flag) into the Junk folder (for only one of 4 
domains we host).
 Is this possible, and if so, is there a good place to look for 
help?
 I know my Cyrus has sieve support and the directories are defined, 
but I don't know how to enable or install the script, and I have few 
questions on sieve scripting in general.

 Suggestions?


 I think so, except I need it to only apply to one mail domain. In 
other words, if recipient is part of domain.com1, and X-Spam-Flag is set 
to YES, move it into the junk - otherwise do nothing. The reasoning is 
that the other domains we host are entirely POP3 based, and mail moved 
into junk folders on the server could be detrimental to their work flow.


 Sieve is applied per mailbox, not across the whole server.  To upload
 and enable the sieve script 'mysieve' for mailbox 'joebloggs':

 $ sieveshell -a joebloggs -u joebloggs cyrusserver
 # Enter joebloggs IMAP / POP password
  put mysieve
  activate mysieve
  list
 mysieve - active script

 You will have to tune the contents of 'mysieve' to your needs, if you
 google 'spamassassin sieve' you should find plenty of examples.

 Malc

 I have been doing some reading in the mean time, and discovered 
sieveshell. Unfortunately, it doesn't allow me to login.


 unable to connect to server at /usr/bin/sieveshell line 174, STDIN
 line 1.

 I checked the logs and it says:

 Mar 14 17:08:16 fs2 sieve[2714]: executed
 Mar 14 17:08:16 fs2 sieve[2714]: accepted connection
 Mar 14 17:08:19 fs2 sieve[2714]: no secret in database
 Mar 14 17:08:19 fs2 sieve[2714]: badlogin: localhost[127.0.0.1] 
CRAM-MD5 authentication failure
 Mar 14 17:08:22 fs2 sieve[2714]: badlogin: localhost[127.0.0.1] 
LOGIN authentication failure


 Cyrus is set up to use /etc/sasldb2 for authentication. This is 
where I'm the most incapable when it comes to Cyrus. I'm lucky I even 
got the software to do what it does now.


 In my imapd.conf, I have:

 configdirectory: /var/lib/imap
 partition-default: /var/spool/imap
 sievedir: /var/lib/sieve
 admins: cyrus
 allowanonymouslogin: no
 reject8bit: no
 quotawarn: 90
 timeout: 30
 poptimeout: 10
 dracinterval: 0
 drachost: localhost
 #sasl_pwcheck_method: saslauthd
 lmtp_overquota_perm_failure: no
 lmtp_downcase_rcpt: yes
 virtdomains: userid
 loginrealms: domain1.com domain2.com domain3.com
 autocreatequota: 102400
 quotawarnkb: 5120
 unixhierarchysep: yes
 altnamespace: yes
 allowplaintext: yes
 sasl_pwcheck_method: auxprop
 sasl_mech_list: PLAIN LOGIN CRAM-MD5

 saslauthd is set up to use pam and is running (the default config 
for the rpm). I have /etc/pam.d/imap and /etc/pam.d/sieve. But given I 
am using /etc/sasldb2, shouldn't it look there before defaulting to 
saslauthd in the first place?


 I am running SLES 10 on x86_64 (EM64T)

 Jason Bailey, Web/IT Administrator
 Sun Advocate / Emery County Progress
 [EMAIL PROTECTED] / [EMAIL PROTECTED]
 (435) 637-0732 (ext 31)

 
 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



 Okay... sieve is per mailbox. That actually works out to my benefit.

 So how do I get sieveshell to let me login? The authentication 
aspects of Cyrus are my weakest spot... I don't know what I'm doing. All 
I know is that it won't let me login. Documentation is spotty at best. 
What now?


 The imaptest works, logins directly through cyrus (or cyradm, for 
that matter) work fine. But sieveshell doesn't.


 Ideas?
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: 

Re: autocreate broken in 2.3?

2007-03-16 Thread Ken Murchison

Brian Dial wrote:

oh, duh.  i thhought they were part of the core by now.  thanks!


They will be integrated once they support all possible configurations of :

unixhierarchysep, virtdomains, and Murder





Simon Matter wrote:

Using SuSE 10.2 with the included cyrus-imapd-2.2.13 I was able to gget
it to autocreate the inbox, some folders, and auto subscribe to some
folders upon authentication to my ldap server.  However, I recently did
a manual upgrade to cyrus 2.3.8 and it has all stopped working.  Cyrus


Did you include the autocreate patches? The source distribution doesn't
include it.

Simon

  

works fine on upgrade for the most part, but now it doesn't even create
the user's inbox upon authentication.  Is there any additional
directives needed in 2.3 that i could be missing?  Here is the relevant
portion of my imapd.conf

allowanonymouslogin: no
allowallsubscribe: 1
autocreateinboxfolders: Drafts|Sent Items
autosubscribesharedfolders: Projects
altnamespace: 1
sharedprefix: Shared Folders
autocreatequota: 10




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




--
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University

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


Message expiration policy questions

2007-03-16 Thread Jason Bailey, Sun Advocate Webmaster
I've set up some message retention policies (message expiration) on 
several folders (primarily junk folders), but it got me thinking about 
the specifics.


Do old messages (that are expired) get marked for deletion (and 
require an expunge), or are they forcibly deleted? I want the messages 
deleted, not simply marked for deletion.


--
Jason Bailey, Web/IT Administrator
Sun Advocate / Emery County Progress
[EMAIL PROTECTED] / [EMAIL PROTECTED]
(435) 637-0732 (ext 31)

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