Message expiration policy question

2007-05-24 Thread Jason Bailey, Sun Advocate Webmaster

Hello all,

I have a question with message expiration policies. With cyradm I have 
set several message expiration policies on folders, so that old messages 
are automatically pruned from the folder. It works pretty well thus far. 
But I have a question.


Does cyrus look at the received date in the message itself, or does it 
use some sort of file system timestamp (maybe creation date of the file) 
to determine which messages are expired?


The reason I ask is that spam often comes into the mix, and date info in 
the message header are often forged. So how does Cyrus do this?


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


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: http://asg.web.cmu.edu/cyrus

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


Re: Questions... need Sieve primer

2007-03-15 Thread Jason Bailey, Sun Advocate Webmaster

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


Message retention policies

2007-03-15 Thread Jason Bailey, Sun Advocate Webmaster
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?


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


QUestions... need Sieve primer

2007-03-14 Thread Jason Bailey, Sun Advocate Webmaster

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?

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


Re: Questions... need Sieve primer

2007-03-14 Thread Jason Bailey, Sun Advocate Webmaster

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.


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


Re: Convert tool

2007-03-01 Thread Jason Bailey, Sun Advocate Webmaster

Fabio Silva wrote:
Hi all, is there any tool to migrate from mbox format to cyrus-imap ??? 
could you tell me any tool to do it???


im using sles10, and i need to migrate my user to our new cyrus server

Regards,

--
Fabio S. Silva





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


If it is possible to run two servers concurrently, you could copy from 
one imap server to the other via your mail client. You may lack the 
equipment to do so, but I think that would be the safest and possibly 
the easiest way to do it.


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


Cyrus upgrade, need advice

2006-08-11 Thread Jason Bailey, Sun Advocate Webmaster
Hi all,

I am preparing to upgrade our production server's operating system,
which will also entail replacing Cyrus and SASL with newer, updated
versions. I don't have the luxury of installing the upgrades on a new
machine and then swapping it with the old one. Rather, I have to
reinstall the operating system with the newer one and hope that the data
(mail files, personal data, etc, which will be backed up in preparation
for the upgrade) will cleanly migrate to the new OS installation.

My question is, do I need to do anything special to make this upgrade
possible (tips, tricks, advice to avoid problems)? Here are my specs:

Old OS: SUSE Linux Enterprise Server 9 (EM64T)
New OS: SUSE Linux Enterprise Server 10 (EM64T)

Old Cyrus IMAP: 2.2.3 (SLES 9)
New Cyrus IMAP: 2.2.12 (SLES 10)

Old Cyrus SASL: 2.1.18 (SLES 9)
New Cyrus SASL: 2.1.21 (SLES 10)

Old Postfix: 2.1.1 (SLES 9)
New Postfix: 2.2.9 (SLES 10)

I am doing virtual domains. I am using /etc/sasldb2 as my authentication
source.

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

I have the common Postfix + SpamAssassin + ClamAV + avavisd-new, where
mail is finally delivered to Cyrus IMAP (after it passes all checks) via
LMTP over localhost. I can't imagine Cyrus has changed the way it
accepts mail over LMTP (especially localhost connections), but who knows.

The fact is, I'm no newbie to Linux, but mail is something I still
struggle with a bit, especially Cyrus and SASL (configuring
authentication has been my biggest difficulty). However, we have been
using Cyrus thus far (with absolutely no problems) for over a year on
SLES 9, and have been very pleased with the performance and robustness
that we have observed.

If I copy my config files over, and copy my current spool structure
(Cyrus partition) and the mail db files, is all of the email content
going to migrate, or am I going to have to fiddle with it to make it work?

Anyhow, do any of you have some advice on migration of the server data?
Any tips or tricks to ensure things work without running into snags? It
is a production server, so I want to do all that I can to ensure
everything works like it is supposed to.

Thanks in advance for assistance.




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