[Dovecot] How to prevent deleting mail by mailer?
Hello,
I am running postfix and dovecot in a Linux box and dovecot is configured to IMAP. I hope to keep all mails in the server permanently even though mailer try to remove them. Is that possible and how to do it? Thanks for your help.
Best regards,
Wen
Wen Guangcheng wrote:
Hello,
I am running postfix and dovecot in a Linux box and dovecot is configured to IMAP. I hope to keep all mails in the server permanently even though mailer try to remove them. Is that possible and how to do it? Thanks for your help.
It is possible. You may use file system permissions for this or use ACL plugin: http://wiki.dovecot.org/ACL
Best regards,
Wen
Uldis
Hi Uldis,
Thank you so much for your help. My Dovecot version is 0.99.11 and it does not support ACL. I will try to use file system permissions to make mails read-only to users. The parameter of home_mailbox is set to Maildir/ . would you please tell me which directory or file should be changed file permissions?
Best regards,
wen
-----Original Message----- From: Uldis Pakuls [mailto:neko@it4u.lv] Sent: Wednesday, February 20, 2008 11:13 PM To: Wen Guangcheng Cc: 'Dovecot Mailing List' Subject: Re: [Dovecot] How to prevent deleting mail by mailer?
Hello,
I am running postfix and dovecot in a Linux box and dovecot is configured to IMAP. I hope to keep all mails in the server permanently even
Wen Guangcheng wrote: though mailer try to remove them.
Is that possible and how to do it? Thanks for your help.
It is possible. You may use file system permissions for this or use ACL plugin: http://wiki.dovecot.org/ACL
Best regards,
Wen
Uldis
On 2/22/2008, Wen Guangcheng (on.kousei@yes.nttcom.ne.jp) wrote:
My Dovecot version is 0.99.11
Sorry, this version is way past support end of life.
File system perms is of course the lowest level to control who/what can do what, so using them properly should work for what you're wanting to do, BUT...
Please upgrade to latest release/stable version - or even the newer1.1, which is at RC stage now...
--
Best regards,
Charles
Hi, I have just upgraded my dovecot to the latest release/stable version(1.0.10) and added "mail_plugins = acl" in protocal imap class of dovecot.conf file. In order to make emails in /home/foo/Maildir read-only to foo, I wrote a dovecot-acl file under /home/foo/Maildir and put "user=foo rl" in the file. Is that OK? But unfortunately emails in /home/foo/Maildir still can be deleted by foo. Have I missed something in my configration? I am a novice at dovecot and ACL. Thanks for your help.
Best regards,
Wen
-----Original Message----- From: dovecot-bounces+on.kousei=yes.nttcom.ne.jp@dovecot.org [mailto:dovecot-bounces+on.kousei=yes.nttcom.ne.jp@dovecot.org ] On Behalf Of Charles Marcus Sent: Friday, February 22, 2008 7:46 PM To: 'Dovecot Mailing List' Subject: Re: [Dovecot] How to prevent deleting mail by mailer?
On 2/22/2008, Wen Guangcheng (on.kousei@yes.nttcom.ne.jp) wrote:
My Dovecot version is 0.99.11
Sorry, this version is way past support end of life.
File system perms is of course the lowest level to control who/what can do what, so using them properly should work for what you're wanting to do, BUT...
Please upgrade to latest release/stable version - or even the newer1.1, which is at RC stage now...
--
Best regards,
Charles
On Mon, 2008-02-25 at 17:54 +0900, Wen Guangcheng wrote:
Hi, I have just upgraded my dovecot to the latest release/stable version(1.0.10) and added "mail_plugins = acl" in protocal imap class of dovecot.conf file. In order to make emails in /home/foo/Maildir read-only to foo, I wrote a dovecot-acl file under /home/foo/Maildir and put "user=foo rl" in the file. Is that OK? But unfortunately emails in /home/foo/Maildir still can be deleted by foo. Have I missed something in my configration? I am a novice at dovecot and ACL. Thanks for your help.
You need to add acl=vfile to plugin {} section as well.
If it still doesn't work, try "owner rl" instead.
Mr. Sirainen
Thank you so much for your great help.
I get it by adding acl=vfile in plugin{} section.
Cheers,
Wen
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Sunday, March 02, 2008 1:44 PM To: Wen Guangcheng Cc: 'Dovecot Mailing List' Subject: Re: [Dovecot] How to prevent deleting mail by mailer?
On Mon, 2008-02-25 at 17:54 +0900, Wen Guangcheng wrote:
Hi, I have just upgraded my dovecot to the latest release/stable version(1.0.10) and added "mail_plugins = acl" in protocal imap class of dovecot.conf file. In order to make emails in /home/foo/Maildir read-only to foo, I wrote a dovecot-acl file under /home/foo/Maildir and put "user=foo rl" in the file. Is that OK? But unfortunately emails in /home/foo/Maildir still can be deleted by foo. Have I missed something in my configration? I am a novice at dovecot and ACL. Thanks for your help.
You need to add acl=vfile to plugin {} section as well.
If it still doesn't work, try "owner rl" instead.
participants (4)
-
Charles Marcus
-
Timo Sirainen
-
Uldis Pakuls
-
Wen Guangcheng