[Dovecot] Dovecot-sieve multiple redirect question

2009-12-12 Thread Алексей Крикун
Hi,

I have a question about redirecting message to a multiple addresses.

I have an user script like following:

require ["copy"];
redirect :copy "ad...@dom.ain";
redirect :copy "ad...@dom.ain";

All works fine, but if ad...@... has exceeded quota, this script seems stop
working and ad...@... doesn't receive this message too.
Is this correct behaviour?

How to avoid this?



Thanks,
Kryol


[Dovecot] IMAP server to move sent mail according to maildroprc?

2009-12-12 Thread Kārlis Repsons
Hi,

Sorry if subj. is far from anything possible, but I try solving this problem:

On Saturday 12 December 2009 16:57:40 /dev/rob0 wrote:
> On Sat, Dec 12, 2009 at 03:37:17PM +, Kārlis Repsons wrote:
> > Could anyone help me sorting this out: its very convenient to store
> > mails on mailserver and relay sent mail through it, so it gets sent
> > immediately, but there is a problem: how can relayed sent mail be
> > also saved on mailserver, using the same LDA program as for
> > incoming mail (to place it into the right folder where also
> > incoming mail is)? Is that possible?
> 
> This is generally best handled at the MUA/IMAP level, where a MUA
> uses a "sent" IMAP folder to store mail.
..
> I think the bottom line is that you're trying to make a MTA do
> things it was not meant to do.

The whole problem lies in a desire to use these two things in the same time: 
1. maildrop filters file for all users messages (to place sent mail right);
2. store / access mails from mailserver, which is also a relayhost.

Maybe there are some suggestions in this list on how should I solve the 
problem?


signature.asc
Description: This is a digitally signed message part.


Re: [Dovecot] expire-tool and userdb returned mail location

2009-12-12 Thread Tapio Sokura

Charles Marcus wrote:

You forgot dovecot -n output...


# 1.2.6: /usr/local/dovecot/etc/dovecot.conf
# OS: Linux 2.6.18-164.6.1.el5 x86_64 CentOS release 5.4 (Final)
base_dir: /var/run/dovecot/
protocols: imap imaps pop3 pop3s managesieve
ssl_cert_file: /etc/pki/tls/certs/dovecot.crt
ssl_key_file: /etc/pki/tls/private/dovecot.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot//login
login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login
login_executable(managesieve): 
/usr/local/dovecot/libexec/dovecot/managesieve-login

login_process_per_connection: no
login_process_size: 128
verbose_proctitle: yes
first_valid_uid: 95
last_valid_uid: 95
first_valid_gid: 95
last_valid_gid: 95
mail_uid: dcmail
mail_gid: dcmail
mbox_write_locks: fcntl
mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap
mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3
mail_executable(managesieve): /usr/local/dovecot/libexec/dovecot/managesieve
mail_plugins(default): quota imap_quota trash expire
mail_plugins(imap): quota imap_quota trash expire
mail_plugins(pop3): quota expire
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3
mail_plugin_dir(managesieve): /usr/local/dovecot/lib/dovecot/managesieve
imap_client_workarounds(default): delay-newmail tb-extra-mailbox-sep
imap_client_workarounds(imap): delay-newmail tb-extra-mailbox-sep
imap_client_workarounds(pop3):
imap_client_workarounds(managesieve):
pop3_uidl_format(default): %08Xu%08Xv
pop3_uidl_format(imap): %08Xu%08Xv
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_uidl_format(managesieve): %08Xu%08Xv
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
pop3_client_workarounds(managesieve):
namespace:
  type: private
  separator: /
  inbox: yes
  list: yes
  subscriptions: yes
namespace:
  type: private
  separator: /
  prefix: INBOX/
  hidden: yes
  list: no
  subscriptions: yes
lda:
  postmaster_address: postmas...@domain
  mail_plugins: sieve quota trash expire
auth default:
  mechanisms: plain login
  cache_size: 1000
  cache_ttl: 3000
  cache_negative_ttl: 0
  user: dcauth
  username_format: %Lu
  passdb:
driver: sql
args: /usr/local/dovecot/etc/sql.conf
  userdb:
driver: prefetch
  userdb:
driver: sql
args: /usr/local/dovecot/etc/sql.conf
  socket:
type: listen
client:
  path: /var/run/dovecot/auth-client
  mode: 432
  user: postfix
  group: postfix
master:
  path: /var/run/dovecot/auth-master
  mode: 384
  user: dcmail
  group: dcmail
plugin:
  quota: dict:user::proxy::quotadict
  quota_rule: *:storage=1000M
  quota_rule2: Trash:storage=100M
  trash: /usr/local/dovecot/etc/trash.conf
  expire: Trash 10 Trash/* 10 Spam 60
  expire_dict: proxy::expire
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve
  sieve_after: /usr/local/dovecot/etc/sieve_after.d
dict:
  quotadict: mysql:/usr/local/dovecot/etc/dovecot-dict-quota.conf
  expire: mysql:/usr/local/dovecot/etc/dovecot-dict-expire.conf


Re: [Dovecot] expire-tool and userdb returned mail location

2009-12-12 Thread Charles Marcus
On 12/12/2009, Tapio Sokura (oh2...@iki.fi) wrote:
> When I run expire-tool under strace, I can see that it is indeed
> looking for the mails in the typical autodetect locations (Maildir,
> mail, Mail) under user's home directory. So it appers that
> expire-tool takes the home directory from userdb, but ignores mail
> location returned by userdb?

You forgot dovecot -n output...


[Dovecot] expire-tool and userdb returned mail location

2009-12-12 Thread Tapio Sokura

Hello,

I'm having problems with expire-tool in Dovecot 1.2.6 not finding the 
mailboxes. I had


mail_location = 
mbox:/var/spool/dovecotmail/%d/%n/mails:INDEX=/var/spool/dovecotmail/%d/%n/indexes


in dovecot.conf, but that doesn't work with expire-tool. So I commented 
that out from dovecot.conf, all the data is in a database anyway. A 
userdb lookup returns the following for use...@domain:


home = /var/spool/dovecotmail/domain/userid/
mail = 
mbox:/var/spool/dovecotmail/domain/userid/mails:INDEX=/var/spool/dovecotmail/domain/userid/indexes


Now when running expire-tool --test, I get this:

Error: Namespace '': Mail storage autodetection failed with 
home=/var/spool/dovecotmail/domain/userid/

Info: User lookup failed: use...@domain

When I run expire-tool under strace, I can see that it is indeed looking 
for the mails in the typical autodetect locations (Maildir, mail, Mail) 
under user's home directory. So it appers that expire-tool takes the 
home directory from userdb, but ignores mail location returned by userdb?


  Tapio


Re: [Dovecot] outlook 2007 mailbox sort order

2009-12-12 Thread Jerry
On Fri, 11 Dec 2009 20:57:32 -0500
Frank Cusack  replied:

> What are people doing to affect the sort order of mailboxes in
> outlook?  Apple Mail and MS Outlook similarly suck in that they do
> not sort '~' correctly -- mailboxes starting with '~' are first
> instead of last.  At least I think this is the fault of the client,
> since Mulberry sorts correctly.
> 
> At least with Apple Mail I can drag and drop mailboxes into any
> display order I like, so at least after the fact it can be
> "corrected".
> 
> I want to provide shared, virtual and lazy_expunge mailboxes.  I'd
> like these to be last in the list of mailboxes.  This doesn't seem
> possible with Outlook unless I prefix the names with 'zz' or
> similar.  yuk.
> 
> -frank

You can get a list of all available characters that are available for
use here: http://danhotchkiss.com/archives/38

Personally, I have always used numbers, the the most important folders
utilizing the lowest numbers.

I believe this behavior has been changed in Outlook 2010, which is
still in beta. I will check on it later today if time permits.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

It is impossible to make anything
foolproof because fools are so ingenious.