[Dovecot] Public (Shared Folders) ACL Questions

2008-09-04 Thread Mailing List
I'm trying to set up a public namespace so that a set of IMAP folders
are available to all staff - similar to MS Exchange Public Folders.

I've managed to set up the namespace correctly but I'm having trouble
with the ACLs. The global ACL file is the only method I can get to work.

All I want to do is to allow 1 user admin privileges to create & delete
anything but all other users should only be able to create not delete.
Reading through the mailing list I thought a /etc/dovecot-acls/.DEFAULT
file would be suitable but what should be put in here to achieve what I
want? Are you able to use wildcards somehow within this file, i.e.:

owner lrwstiekxa
[EMAIL PROTECTED] lrwstiekxa
[EMAIL PROTECTED] lrw


Does this .DEFAULT file only apply to the public (shared) namespace or
will it effect private mailboxes also?

If I was to create a specific global acl file for a specific folder
which would take precedence, the .DEFAULT acls or the specific folder
acls?

Also an "INBOX" is shown within the public folders namespace but no
folder exists in the public folders maildir hierarchy - any ideas how I
can stop this?

Any help would be greatly appreciated.

Gavin



[Dovecot] Sieve problem with 1.1.2

2008-09-04 Thread [EMAIL PROTECTED]
Hello,

I am new here, so excuse me if i am asking something already asked. I am
using dovecot 1.1.2 along with postfix 2.6 and a pgsql backend. So far
everything is great, until i wanted to try out the sieve implementation.
I am using dovecot for deliver and i have set

global_script_path = /home/vmail/globalsieverc

The script IS working until a given user defines his own sieve script (
for example ) :

require ["fileinto"];
# Move mail from my gmail account to gmail folder
if header :contains "From" ["[EMAIL PROTECTED]"] {
  fileinto "gmail";
}


This ( or any other script for all i know ) breaks up the global one,
and it stops working. The global script looks like this :


require ["fileinto"];
# Move spam to spam folder
if header :contains "X-Spam-Flag" ["YES"] {
  fileinto "spam";
  stop;
}


Am i missing something, or this is the desired behaviour ?


Re: [Dovecot] 1.1.3 panics

2008-09-04 Thread David McBride

Dean Brooks wrote:

Hi,

Installed Dovecot 1.1.3 today and started receiving panic errors on a
few of our users:

  dovecot: [ID 107833 mail.crit] Panic: IMAP(xx): file 
mail-index-transaction-view.c: line 204: unreached


Hi,

I am also seeing this problem.  I haven't managed to generate a core 
dump yet, however I did get more logging in mail.err:


Sep  4 13:25:36 songbird dovecot: IMAP(user): Raw backtrace: imap 
[0x486942] -> imap [0x4869b3] -> imap [0x486026] -> imap [0x46775c] -> 
imap(mail_index_lookup_ext_full+0x17) [0x469fc7] -> 
imap(mail_index_lookup_ext+0x17) [0x469fe7] -> 
imap(mbox_file_lookup_offset+0x33) [0x4382f3] -> 
imap(mbox_file_seek+0x2e) [0x43837e] -> imap [0x439c98] -> imap 
[0x43a022] -> imap [0x43a149] -> 
/usr/lib/dovecot/modules/imap/lib10_quota_plugin.so(quota_try_alloc+0x29) 
[0x7f706e92b6b9] -> /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so 
[0x7f706e92ea9b] -> imap [0x4186fd] -> imap [0x418e9e] -> 
imap(io_loop_handler_run+0xf8) [0x48d6d8] -> imap(io_loop_run+0x1d) 
[0x48c7fd] -> imap(main+0x3c2) [0x425b92] -> 
/lib/libc.so.6(__libc_start_main+0xf4) [0x7f706eb511c4] -> imap [0x418449]

Sep  4 13:25:36 songbird dovecot: child 5531 (imap) killed with signal 6

We were also using the quota plugin to access mailboxes via NFS.  We 
have since disabled this plugin, and are no-longer observing this fault.


(We have found a way to reliably trigger this particular fault.  Using 
Alpine, if a user deletes their postponed-messages IMAP folder, and then 
attempts to postpone a message, the IMAP process will crash shortly 
after the postponed-messages folder is recreated.)


Cheers,
David
--
David McBride <[EMAIL PROTECTED]>
  <[EMAIL PROTECTED]>



Re: [Dovecot] Sieve problem with 1.1.2

2008-09-04 Thread Eduardo M KALINOWSKI
[EMAIL PROTECTED] escreveu:
> Hello,
>
> I am new here, so excuse me if i am asking something already asked. I am
> using dovecot 1.1.2 along with postfix 2.6 and a pgsql backend. So far
> everything is great, until i wanted to try out the sieve implementation.
> I am using dovecot for deliver and i have set
>
> global_script_path = /home/vmail/globalsieverc
>
> The script IS working until a given user defines his own sieve script (
> for example ) :
>
> This ( or any other script for all i know ) breaks up the global one,
> and it stops working. The global script looks like this :
>
> Am i missing something, or this is the desired behaviour ?
>   

It is the documented behavior. (If this is desirable or not, that is
another question.) From http://wiki.dovecot.org/LDA/Sieve :

protocol lda {
..
  # If there is no user-specific Sieve-script, global Sieve script is
  # executed if set. (v1.0.1 and older used "global_script_path")
  #sieve_global_path =

...

-- 
Eduardo M Kalinowski
[EMAIL PROTECTED]



Re: [Dovecot] Sieve problem with 1.1.2

2008-09-04 Thread [EMAIL PROTECTED]
Any suggestions on how to disable this ? I'd like to be able to filter
all spam by default with sieve, and still allow users to have their own
rules.

Eduardo M KALINOWSKI wrote:
> [EMAIL PROTECTED] escreveu:
>   
>> Hello,
>>
>> I am new here, so excuse me if i am asking something already asked. I am
>> using dovecot 1.1.2 along with postfix 2.6 and a pgsql backend. So far
>> everything is great, until i wanted to try out the sieve implementation.
>> I am using dovecot for deliver and i have set
>>
>> global_script_path = /home/vmail/globalsieverc
>>
>> The script IS working until a given user defines his own sieve script (
>> for example ) :
>>
>> This ( or any other script for all i know ) breaks up the global one,
>> and it stops working. The global script looks like this :
>>
>> Am i missing something, or this is the desired behaviour ?
>>   
>> 
>
> It is the documented behavior. (If this is desirable or not, that is
> another question.) From http://wiki.dovecot.org/LDA/Sieve :
>
> protocol lda {
> ..
>   # If there is no user-specific Sieve-script, global Sieve script is
>   # executed if set. (v1.0.1 and older used "global_script_path")
>   #sieve_global_path =
>
> ...
>
>   



Re: [Dovecot] Sieve problem with 1.1.2

2008-09-04 Thread Patrick Nagel
On Thu, 04 Sep 2008 16:07:35 +0300, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Any suggestions on how to disable this ? I'd like to be able to filter
> all spam by default with sieve, and still allow users to have their own
> rules.

We autocreate a 'mailfilter.sieve' in each new user's homedir, in which a
global 'spam.sieve' is being included. The user can then add rules as
desired after that inclusion.

Patrick.

-- 
STAR Software (Shanghai) Co., Ltd.  http://www.star-group.net/
Phone:+86 (21) 3462 7688 x 826   Fax:   +86 (21) 3462 7779

PGP key:  E883A005 https://stshacom1.star-china.net/keys/patrick_nagel.asc
Fingerprint: E09A D65E 855F B334 E5C3 5386 EF23 20FC E883 A005



[Dovecot] log analyzers

2008-09-04 Thread maximatt
hi...

¿you have some log analyzer to recommend? (for dovecot obviously)

thanks in advance

-- 
Salu2 ;)


[Dovecot] Integrating Dovecot SASL into Postfix

2008-09-04 Thread Diego Ledesma
Hello.
I have a linux system (Ubuntu 7.04 server edition) running as a mail server
with Postfix. SMTP authentication is not configured so users have to be
connected to the lan to download/send mails.
I´m considering on enabling SMTP authentication and i have heard that by
installing Dovecot i can do this pretty straight forward.
First of all, some details about how the mail server is configured:

- Running Linux OS Ubuntu 7.04
- Currently running Postfix version 2.3.8
- No virtual users or domains . Every system user has a mail account (to
create a new mail account i have to create a new system user. I belive this
is called PAM, right?).

According to postfix´s website the version of postfix i have supports
Dovecot 1.0 SASL protocol. What would happen if i try to install Dovecot
through apt-get?. I mean, i most definitely get a version of Dovecot above
1.0. Would my postfix still support it?.

Before posting this i have posted on the postifx mailing list and they have
to told me that after installing Dovecot i don´t need to configure it as a
pop/iamp server. How would i accomplish this?.

Any help is greatly appreciated.
Thanks.
Diego.


Re: [Dovecot] Integrating Dovecot SASL into Postfix

2008-09-04 Thread Jon Callas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

>
> - Running Linux OS Ubuntu 7.04
> - Currently running Postfix version 2.3.8
> - No virtual users or domains . Every system user has a mail account  
> (to
> create a new mail account i have to create a new system user. I  
> belive this
> is called PAM, right?).

Just follow the directions in the HOWTOs.

Just so you know, I used to do this on my server running Mac OS X with  
Postfix 2.3 and Dovecot 1.0.7. Last weekend, I upgraded my server to a  
new machine running FreeBSD, Postfix 2.5, and Dovecot 1.0.x and then  
1.1. My config files moved over with no hitches. The Dovecot upgrade  
required me to change one parameter name in the config file, but once  
I found that on the wiki, it was all flawless.

I would be more informative if I'd ever done it on Linux.

Jon



-BEGIN PGP SIGNATURE-
Version: PGP Universal 2.6.3
Charset: US-ASCII

wj8DBQFIwC/7sTedWZOD3gYRAuuTAKDfXiJTYDosEoT7JriuOreD80r5vgCgwLvl
1jh60g1V+Ox1nA5Lg/j/iqg=
=lxtT
-END PGP SIGNATURE-


[Dovecot] antispam plugin problem with dspam

2008-09-04 Thread Harlan Stenn
I'm trying to use the dovecot antispam plugin with dspam.

I'm running dovecot 1.1.2.

Using thunderbird and IMAP, when I drag a spam message from the inbox
into the SPAM folder, I get a popup saying "The current command did not
succeed.  The mail server responded: antispam signature not found.

When I look at the message in the maildir folder, I see the dspam
signature both in the header of the message and at the end of the body.

What's a good way to debug this situation and figure things out?  I'm
not seeing anything in any log files, and I'm not seeing much in the way
of debug capability in the dovecot antispam plugin.

Harlan


Re: [Dovecot] antispam plugin problem with dspam

2008-09-04 Thread Harlan Stenn
Would it be better if the antispam plugin logged whatever stderr output
came from the dspam invocation?

H


[Dovecot] filename format question

2008-09-04 Thread Giorgenes Gelatti
Hello,

Is it possible to configure the filename format in dovecot?
For example, to change from "unique,W=size:2,FLAGS" to
"unique,size.hostname:2,FLAGS_unique2"?

Thanks in advance.


Re: [Dovecot] filename format question

2008-09-04 Thread Kyle Wheeler

On Thursday, September  4 at 06:51 PM, quoth Giorgenes Gelatti:
Is it possible to configure the filename format in dovecot? For 
example, to change from "unique,W=size:2,FLAGS" to 
"unique,size.hostname:2,FLAGS_unique2"?


There's no config option for it, but it's theoretically possible to do 
just about anything. Generally, though, the format of those filenames 
is defined by the Maildir standard. Changing the filename as you 
suggest would likely break other mail programs that might access those 
Maildir folders.


I suppose the question is: why would you want to change that?

~Kyle
--
It is better to dwell in the wilderness than with a contentious and an 
angry woman.

 -- Proverbs 21:19


pgp9LUZYYAhRX.pgp
Description: PGP signature


Re: [Dovecot] filename format question

2008-09-04 Thread Giorgenes Gelatti
> There's no config option for it, but it's theoretically possible to do just 
> about anything. Generally, though, the format of those filenames is defined 
> by the Maildir standard. Changing the filename as you suggest would likely 
> break other mail programs that might access those Maildir folders.
>
> I suppose the question is: why would you want to change that?

My company's current system (unfortunally) uses that non-standard format.
The MTA writes in that format.

I guess it would require a patch then?

tks.
gpg


Re: [Dovecot] filename format question

2008-09-04 Thread Eduardo M KALINOWSKI
Giorgenes Gelatti wrote:
> My company's current system (unfortunally) uses that non-standard format.
> The MTA writes in that format.
>
> I guess it would require a patch then?
>   

Yes. But since a patch is needed, I'd rather patch the MTA.

-- 
"In short, _N is Richardian if, and only if, _N is not Richardian."

Eduardo M KALINOWSKI
[EMAIL PROTECTED]
http://move.to/hpkb



[Dovecot] Time Moved Backwards Error Keeps Happening

2008-09-04 Thread JackyC
Hi all,

I am running dovecot version 1.1.1 (dovecot --version) and keeps to have 
time moved backwards problem.
I first found dovecot dead without obvious error message, but see the 
following when restart dovecot service by

# service dovecot restart

>Stopping Dovecot Imap: [FAILED]
>Starting Dovecot Imap: Warning: Last died with error (see error log for 
more information): Time just moved backwards by 4398 seconds. This might 
cause a lot of problems, so I'll just kill myself now. 
http://wiki.dovecot.org/TimeMovedBackwards  [ 
OK  ]

I followed the above official wiki link and apply the ntpd service for 
adjusting the server timestamp. After running the ntpd service, I found 
the server timestamp drift is only 14.333 microsecond, I think which would 
be reasonable.

But I still get the captioned error. Does anyone have the same experience? 
BTW, I couldn't find the error log message even I confirmed the info, 
error and debug log file by visiting this wiki document 
http://wiki.dovecot.org/Logging, does it really not log at the log file? I 
can just keep monitoring the log and use the following command to 
determine whether dovecot is running or not.

# service dovecot status

Thank you very much!

Yours Sincerely,
Jacky, Hoi Kei Chan,

Re: [Dovecot] Time Moved Backwards Error Keeps Happening

2008-09-04 Thread Sahil Tandon
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I followed the above official wiki link and apply the ntpd service for 
> adjusting the server timestamp. After running the ntpd service, I found 
> the server timestamp drift is only 14.333 microsecond, I think which 
> would be reasonable.

That is reasonable, but dovecot (when it dies), does not think it's true. 
Just check more carefully to make sure there aren't any other scripts or 
programs changing the time more drastically.

-- 
Sahil Tandon <[EMAIL PROTECTED]>


Re: [Dovecot] v1.1.3 released

2008-09-04 Thread Roberto Tagliaferri - Tosnet srl

Roberto Tagliaferri - Tosnet srl ha scritto:

Timo Sirainen ha scritto:


The POP3 problem? Probably not, since I couldn't figure out anything to
fix..

  

mmm... i've upgrade and seems to be working fine


I'm in error.. the problem continued.

dovecot: Sep 04 16:05:50 Info: pop3-login: Login: user=, 
method=PLAIN, rip=x.x.x.x, lip=91.102.48.12
dovecot: Sep 04 16:05:51 Info: POP3(alex): Disconnected: Logged out 
top=0/0, retr=0/0, del=0/75, size=3005311
dovecot: Sep 04 16:11:02 Info: pop3-login: Login: user=, 
method=PLAIN, rip=x.x.x.x, lip=91.102.48.12
dovecot: Sep 04 16:11:02 Info: POP3(alex): Disconnected: Logged out 
top=0/0, retr=0/0, del=0/76, size=3132012


The client have not  downloaded the email n. 76 and  n 77:
dovecot: Sep 04 16:59:04 Info: pop3-login: Login: user=, 
method=PLAIN, rip=x.x.x.x, lip=91.102.48.12
dovecot: Sep 04 16:59:43 Info: POP3(alex): Disconnected: Logged out 
top=1/12526971, retr=0/0, del=1/77, size=15658978


I've downgrade to 1.0.9 but nothing...
Is there  a problem with UIDL list? The problem is fo client tha leave 
the email on server


--
Roberto Tagliaferri
Responsabile Progettazione & Produzione
TosNet s.r.l. - Internet Service Provider
[EMAIL PROTECTED]
www.tosnet.it



Re: [Dovecot] v1.1.3 released [addenda]

2008-09-04 Thread Roberto Tagliaferri - Tosnet srl

Roberto Tagliaferri - Tosnet srl ha scritto:


The client have not  downloaded the email n. 76 and  n 77:
dovecot: Sep 04 16:59:04 Info: pop3-login: Login: user=, 
method=PLAIN, rip=x.x.x.x, lip=91.102.48.12
dovecot: Sep 04 16:59:43 Info: POP3(alex): Disconnected: Logged out 
top=1/12526971, retr=0/0, del=1/77, size=15658978


Why in ths case the client retrieve the messages with top  
99 instead with a retr 



I've downgrade to 1.0.9 but nothing...
Is there  a problem with UIDL list? The problem is fo client tha leave 
the email on server





--
Roberto Tagliaferri
Responsabile Progettazione & Produzione
TosNet s.r.l. - Internet Service Provider
[EMAIL PROTECTED]
www.tosnet.it