[Dovecot] Dict quota negative values in MySql table?

2009-01-24 Thread mich...@lattari.pl
Hi!

I have a question about the dictionary quota :storage and :messages
values in MySql quota table.
How to interpret the following values? Why some values are negative? Are
the values relative to something? 
I would like to write a simple php application to check the user quota
but I don't know how to interpret this:

mysql select * from quota;
+++-+
| username   | path   | current |
+++-+
| mlattari   | quota/storage  |   -6976 | 
| mlattari   | quota/messages |  -3 | 
| llattari   | quota/storage  | -2147483648 | 
| llattari   | quota/messages |-874 | 
| mlattari_archivum_imap | quota/storage  |  282475 | 
| mlattari_archivum_imap | quota/messages |   5 | 
+++-+
6 rows in set (0.00 sec)

pls help :-)

dovecot -n
# 1.1.8: /etc/dovecot/etc/dovecot.conf
# OS: Linux 2.6.22.14-72.fc6 x86_64 Fedora Core release 6 (Zod) ext3
base_dir: /etc/dovecot/var/run/dovecot/
log_path: /etc/dovecot/var/log/dovecot_log
info_log_path: /etc/dovecot/var/log/dovecot_log
protocols: imaps
ssl_cert_file: /etc/pki/dovecot/server.crt
ssl_key_file: /etc/pki/dovecot/server.key
ssl_cipher_list: ALL:!ADH!LOW:!SSLv2:!EXP:+HIGH:+MEDIUM
verbose_ssl: yes
login_dir: /etc/dovecot/var/run/dovecot/login
login_executable: /etc/dovecot/libexec/dovecot/imap-login
login_user: dovecot_login
mail_privileged_group: mail
mail_uid: 507
mail_gid: 507
mail_location: mbox:/home/%u/mail:INBOX=/home/spool/mail/%u
mail_plugins: expire quota imap_quota trash
auth default:
  mechanisms: plain login
  debug: yes
  passdb:
driver: passwd-file
args: /etc/dovecot/etc/passwd.dovecot
  socket:
type: listen
master:
  path: /etc/dovecot/var/run/dovecot/auth-master
  mode: 384
  user: mail
plugin:
  quota: dict:user::proxy::quotadict
  quota_rule: *:storage=5G:messages=2000
  quota_rule2: Trash:storage=1G:messages=1000
  trash: /etc/dovecot/etc/dovecot-trash.conf
  expire: Trash 7 Spam 7 INBOX 180 Sent 180
  auth_socket_path: /etc/dovecot/var/run/dovecot/auth-master
  expire_dict: proxy::expire
dict:
  quotadict: mysql:/etc/dovecot/etc/dovecot-dict-quota.conf
  expire: mysql:/etc/dovecot/etc/dovecot-dict-expire.conf



Best regards

michael



Re: [Dovecot] Postfix and Dovecot

2009-01-24 Thread Leonardo Coelho
the problem is when i change the node (machine) the hostname changes and
even the user having e-mail on the mailbox the users can't download them.

Machine: mail  and the files have the mail2 in the end.  About the dovecot
log i will see this later cause I don't have the access now.
Thanks!
On Fri, Jan 23, 2009 at 6:28 PM, Timo Sirainen t...@iki.fi wrote:

 On Fri, 2009-01-23 at 09:47 -0200, Leonardo Coelho wrote:
  So far so good, the real problem is that the e-mail file name on server
 is
  like this:
 
  1232449377.P31789Q0M963611.mail2
 
  and when I using the server called mail the file stay like this:
 
  1232449377.P31789Q0M963611.mail
 
  I'm using drbd disk for the mailboxes and when I'm using the server
 called
  mail the files with mail2 on the end is not read for the dovecot when the
  user turn on the mail client but if I change the end from mail2 to mail
  that's ok the dovecot can read.
 
  How can I make dovecot read both files or any name on the end?

 The file name makes absolutely no difference to Dovecot. Your problem is
 something else. How exactly does the problem show up? Does Dovecot log
 something?




-- 
First they ignore you, then they laugh at you, then they fight you, then
you win. - Mahatma Gandhi
Linux User #373408
cabelohw.blogspot.com
GPGkey ID  8AEEAAEB -- http://pgp.mit.edu


[Dovecot] Dovecot-1.1.9 fails to work with Thunderbird

2009-01-24 Thread David Favor

When Thunderbird starts up 1.1.8 log entries reflect:

Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=yem...@coolsurf.com, method=PLAIN, 
rip=71.155.185.14, lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=david-x...@coolsurf.com, method=PLAIN, 
rip=71.155.185.14, lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=david...@coolsurf.com, method=PLAIN, 
rip=71.155.185.14, lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=t...@coolsurf.com, method=PLAIN, 
rip=71.155.185.14, lip=69.94.137.124, TLS


When Thunderbird starts up with 1.1.9 server begins logging
errors forever for every user of the form:

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
david-x...@coolsurf.com
Jan 24 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1 attempts): 
user=david-x...@coolsurf.com, method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
da...@coolsurf.com
Jan 24 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1 attempts): 
user=da...@coolsurf.com, method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
aa...@coolsurf.com
Jan 24 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1 attempts): 
user=aa...@coolsurf.com, method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
yem...@coolsurf.com
Jan 24 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1 attempts): 
user=yem...@coolsurf.com, method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for 
david...@coolsurf.com
Jan 24 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1 attempts): 
user=david...@coolsurf.com, method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS


--
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com/join for the easy way.


Re: [Dovecot] Dovecot-1.1.9 fails to work with Thunderbird

2009-01-24 Thread Brad
On Saturday 24 January 2009 09:47:36 David Favor wrote:
 When Thunderbird starts up 1.1.8 log entries reflect:

 Jan 24 06:44:56 net1 dovecot: imap-login: Login:
 user=yem...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS
 Jan 24 06:44:56 net1 dovecot: imap-login: Login:
 user=david-x...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS
 Jan 24 06:44:56 net1 dovecot: imap-login: Login:
 user=david...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS
 Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=t...@coolsurf.com,
 method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

 When Thunderbird starts up with 1.1.9 server begins logging
 errors forever for every user of the form:

 Jan 24 06:34:29 net1 dovecot: uid specified multiple times for
 david-x...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login: Internal
 login failure (auth failed, 1 attempts): user=david-x...@coolsurf.com,
 method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS Jan 24 06:34:29
 net1 dovecot: uid specified multiple times for da...@coolsurf.com Jan 24
 06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1
 attempts): user=da...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
 times for aa...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
 Internal login failure (auth failed, 1 attempts):
 user=aa...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
 times for yem...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
 Internal login failure (auth failed, 1 attempts):
 user=yem...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
 times for david...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
 Internal login failure (auth failed, 1 attempts):
 user=david...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
 lip=69.94.137.124, TLS

 --
 Love feeling your best ever, all day, every day?
 Click http://RadicalHealth.com/join for the easy way.

hrmmm. Dovecot 1.1.9 + Thunderbird is working fine for myself.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Dovecot upgrade broke per-user Sieve scripts

2009-01-24 Thread John Reese

Hi all,

I'm migrating my private mail server from Dovecot 1.0.10 to Dovecot 
1.1.4 (both the latest package in Ubuntu Hardy and Intrepid, resp.).


I'm using Postfix with Postfixadmin virtual users , passing mail to 
Dspam, which in turn passes email to the Dovecot LDA.  The relevant 
configuration section is attached below.


When running on the old version of Dovecot, the LDA correctly executed 
either the user's personal sieverc script, or the global sieverc, as 
expected.


However, after the upgrade to 1.1.4, Dovecot will not execute any 
per-user Sieve scripts, although the configuration and file permissions 
hasn't changed.  I've added debug logging to Dovecot, and the relevant 
portions of the log file are also attached below.


What am I missing here?  Why can't cmusieve find the user's script?  Did 
the configuration for Sieve change?  I've read and re-read the Dovecot 
wiki page for Sieve, and I can't see why my configuration should be 
causing any troubles.


All help or suggestions are greatly appreciated.

Thank you.

### dovecot.conf

protocols = imap imaps
disable_plaintext_auth = no

mail_debug = yes
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log

mail_location = maildir:/srv/mail/%u/Maildir
first_valid_uid = 900

ssl_cert_file = /srv/ssl/dovecot.pem
ssl_key_file = /srv/ssl/leetcode.net.key

auth default {
mechanisms = plain login

passdb sql {
args = /srv/etc/dovecot/dovecot-mysql.conf
}
userdb sql {
args = /srv/etc/dovecot/dovecot-mysql.conf
}

socket listen {
master {
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
}

client {
path = /var/spool/postfix/private/auth
mode = 0600
user = postfix
group = postfix
}
}
}

protocol lda {
log_path = /srv/mail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmas...@leetcode.net
mail_plugins = cmusieve
sieve_global_path = /srv/mail/sieverc

plugin {
sieve = /srv/mail/%u/sieverc
}
}

### end dovecot.conf

### dovecot.log

deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: Loading modules from 
directory: /usr/lib/dovecot/modules/lda
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: Module loaded: 
/usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: 
jre...@leetcode.net
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: 
maildir=jre...@leetcode.net/

deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: uid=900
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: gid=900
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: maildir: 
data=/srv/mail/jre...@leetcode.net/Maildir
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: maildir++: 
root=/srv/mail/jre...@leetcode.net/Maildir, index=, cont
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: 
/srv/mail/%u/sieverc doesn't exist
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: Using 
sieve path: /srv/mail/sieverc
deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: Executing 
script /srv/mail/sievercc


### end dovecot.log

--
John Reese
LeetCode.net


Re: [Dovecot] get maildir current quota usage from external program

2009-01-24 Thread michael
Hi!

I am also trying to write a php application to display the quota usage using 
the dict quota values stored in te quota MySql table but I cannot understand 
how to interprete the values in the table because some of them are 0 !

mysql select * from quota;
+++-+
| username   | path   | current |
+++-+
| mlattari   | quota/storage  |   -6976 |
| mlattari   | quota/messages |  -3 |
| llattari   | quota/storage  | -2147483648 |
| llattari   | quota/messages |-874 |
| mlattari_archivum_imap | quota/storage  |  282475 |
| mlattari_archivum_imap | quota/messages |   5 |
| agnieszka  | quota/storage  |   -2610 |
| agnieszka  | quota/messages |  -1 |
+++-+
8 rows in set (0.00 sec)

best regards

michael

Re: [Dovecot] Dovecot-1.1.9 fails to work with Thunderbird

2009-01-24 Thread David Favor

Falling back to 1.1.8 clears the problem.

Turning on debugging surfaces no obvious problems.

Brad wrote:

On Saturday 24 January 2009 09:47:36 David Favor wrote:

When Thunderbird starts up 1.1.8 log entries reflect:

Jan 24 06:44:56 net1 dovecot: imap-login: Login:
user=yem...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login:
user=david-x...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login:
user=david...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS
Jan 24 06:44:56 net1 dovecot: imap-login: Login: user=t...@coolsurf.com,
method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS

When Thunderbird starts up with 1.1.9 server begins logging
errors forever for every user of the form:

Jan 24 06:34:29 net1 dovecot: uid specified multiple times for
david-x...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login: Internal
login failure (auth failed, 1 attempts): user=david-x...@coolsurf.com,
method=PLAIN, rip=71.155.185.14, lip=69.94.137.124, TLS Jan 24 06:34:29
net1 dovecot: uid specified multiple times for da...@coolsurf.com Jan 24
06:34:29 net1 dovecot: imap-login: Internal login failure (auth failed, 1
attempts): user=da...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
times for aa...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
Internal login failure (auth failed, 1 attempts):
user=aa...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
times for yem...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
Internal login failure (auth failed, 1 attempts):
user=yem...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS Jan 24 06:34:29 net1 dovecot: uid specified multiple
times for david...@coolsurf.com Jan 24 06:34:29 net1 dovecot: imap-login:
Internal login failure (auth failed, 1 attempts):
user=david...@coolsurf.com, method=PLAIN, rip=71.155.185.14,
lip=69.94.137.124, TLS

--
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com/join for the easy way.


hrmmm. Dovecot 1.1.9 + Thunderbird is working fine for myself.




--
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com/join for the easy way.


[Dovecot] TLS / SSL login with Thunderbird very slow ?

2009-01-24 Thread Marko Weber | Salondigital.de

Hi ,
i use dovecoz 1.1.4 with TLS / SSL only.
i takes up to ~10 seconds that Thunderbird login and send the mail.
why is this so slow?
any chance to speed up this ?

marko from Hamburg

thank you


Re: [Dovecot] Dovecot-1.1.9 fails to work with Thunderbird

2009-01-24 Thread Charles Marcus
On 1/24/2009, David Favor (da...@davidfavor.com) wrote:
 Jan 24 06:34:29 net1 dovecot: uid specified multiple times

dovecot -n output?

-- 

Best regards,

Charles


Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-24 Thread Pascal Volk
On 24.01.2009 09:49 David Anderson wrote:
 
 Thanks for the reply again. Here it is:
 ...
 Jan 24 08:38:04 levi deliver(supp...@example.com): 
 msgid=200901241137.59870.da...@example.com: sent vacation response to 
 da...@example.com
 Jan 24 08:38:04 levi deliver(supp...@example.com): 
 msgid=200901241137.59870.da...@example.com: saved mail to INBOX

OK, let me guess: This was this part:
if allof (not header :contains Subject Re:,
not header :contains From supp...@example.com)
{
vacation :days 1 :addresses [supp...@example.com] text:
Blah blah blah
(snipped)
.
;
stop;


After stop; the execution of the sieve script is done.
What happens if you send an e-mail with the following headers?
To: supp...@example.com
From: da...@example.com
Subject: whatever


Regards,
Pascal

-- 
Ubuntu is an ancient African word meaning “I can’t install Debian.”
 -- unknown


Re: [Dovecot] TLS / SSL login with Thunderbird very slow ?

2009-01-24 Thread Matthias Andree
On Sat, 24 Jan 2009, Marko Weber | Salondigital.de wrote:

 Hi ,
 i use dovecoz 1.1.4 with TLS / SSL only.
 i takes up to ~10 seconds that Thunderbird login and send the mail.

send the mail has nothing to do with Dovecot, but with the SMTP
server, such as Exim (which may try ident queries that your client
possibly firewalls) or Postfix.

 why is this so slow?
 any chance to speed up this ?

Figure out what takes so long (Wireshark or tcpdump) - do not only log
Dovecot queries.

-- 
Matthias Andree


Re: [Dovecot] TLS / SSL login with Thunderbird very slow ?

2009-01-24 Thread Giuliano Gavazzi


On S 24 Jan, 2009, at 20:50 , Matthias Andree wrote:


On Sat, 24 Jan 2009, Marko Weber | Salondigital.de wrote:


Hi ,
i use dovecoz 1.1.4 with TLS / SSL only.
i takes up to ~10 seconds that Thunderbird login and send the mail.


send the mail has nothing to do with Dovecot, but with the SMTP
server, such as Exim (which may try ident queries that your client
possibly firewalls) or Postfix.


true, but if Marko's Thunderbird is configured to save sent messages  
on the IMAP server, the sending process will complete, from the client  
point of view, when the message has been stored on the IMAP server. So  
the change in Dovecot might cause a perceived slowdown.
Also, with other IMAP server (no idea if this applies to Dovecot) you  
could even have the sending process start by copying the message in a  
particular outbox without direct interaction between the MUA and the  
SMTP server.

Giuliano


Re: [Dovecot] help on writing a rule for perventing spam

2009-01-24 Thread mouss
Giuliano Gavazzi a écrit :
 
 On T 22 Jan, 2009, at 11:49 , Charles Marcus wrote:
 
 On 1/21/2009, Giuliano Gavazzi (dev+li...@humph.com) wrote:
 The postfix backscatter readme is a good start, esppecially is you are
 using postfix - and if you aren't, why aren't you? ;) ... but the
 concepts can be applied to any MTA...

 I don't use postfix, because I use exim...

 And as I said... the CONCEPTS can be applied to ANY MTA...
 
 
 well, first of all backscatter is not really the issue of this thread.

agreed.

 Secondly the concepts are not all that good.

They are ;-p

 In particular the one
 entitled:
 
 Blocking backscatter mail with forged sender information
 
 that states:
 
 Like many people I still have a few email addresses in domains that I
 used in the past. Mail for those addresses is forwarded to my current
 address. Most of the backscatter mail that I get claims to be sent from
 these addresses. Such mail is obviously forged and is very easy to stop.
 From what I understand he is rejecting backscatter that is sent to some
 of his old addresses (with an identical forged sender,

Note the from in claims to be sent FROM

 but this is
 irrelevant) and from there forwarded to his mail server. Very bad. If
 you have configured forwarding somewhere you must be prepared to accept
 anything from there, or else you will be the cause of backscatter as the
 peer server is a genuine server and not a spambot.

you misunderstd ;-p

the idea is:

if I get a bounce caused by a message sent with j...@example.com as
sender, and I know j...@example.com is never used as a sender (because I
own that address and I don't use it as a sender), then I can block the
message.

here's another example. while my Reply-To is set to
mouss+nob...@netoyen.net, I don't use this address in From: or envelope
sender. so if someone bounces a mail supposedly sent from this address,
_I_ know the original message was a forgery and I can reject the bounce.


 [snip]


Re: [Dovecot] Postfix and Dovecot

2009-01-24 Thread mouss
Leonardo Coelho a écrit :
 Hi Everybody,
 I'm mount two failover servers which use Postfix and Dovecot but the
 hostname of the machines r diferent:
 first node
 # uname -n
 # mail
 secound node
 #uname -n
 #mail2
 So far so good, the real problem is that the e-mail file name on server is
 like this:
 
 1232449377.P31789Q0M963611.mail2
 
 and when I using the server called mail the file stay like this:
 
 1232449377.P31789Q0M963611.mail
 
 I'm using drbd disk for the mailboxes and when I'm using the server called
 mail the files with mail2 on the end is not read for the dovecot when the
 user turn on the mail client but if I change the end from mail2 to mail
 that's ok the dovecot can read.
 
 How can I make dovecot read both files or any name on the end?
 

As Timo said, the file names do not matter. I have files from an old
server that was running courier and they are read without problems.

what makes you believe that dovecot does not read the files? and more
precisely, what do you mean by read exactly?



Re: [Dovecot] TLS / SSL login with Thunderbird very slow ?

2009-01-24 Thread mouss
Matthias Andree a écrit :
 On Sat, 24 Jan 2009, Marko Weber | Salondigital.de wrote:
 
 Hi ,
 i use dovecoz 1.1.4 with TLS / SSL only.
 i takes up to ~10 seconds that Thunderbird login and send the mail.
 
 send the mail has nothing to do with Dovecot, but with the SMTP
 server, such as Exim (which may try ident queries that your client
 possibly firewalls) or Postfix.
 

including reverse dns lookup problems.

 why is this so slow?
 any chance to speed up this ?
 
 Figure out what takes so long (Wireshark or tcpdump) - do not only log
 Dovecot queries.
 



Re: [Dovecot] TLS / SSL login with Thunderbird very slow ?

2009-01-24 Thread Charles Marcus
On 1/24/2009 2:58 PM, Giuliano Gavazzi wrote:
 true, but if Marko's Thunderbird is configured to save sent messages on
 the IMAP server, the sending process will complete, from the client
 point of view, when the message has been stored on the IMAP server. So
 the change in Dovecot might cause a perceived slowdown.

He didn't say anything about saving to Sent folder, he said it takes up
to ~10 secs for TBird to LOGIN and send... TBird saves to sent folder
AFTER it send the message.

 Also, with other IMAP server (no idea if this applies to Dovecot) you
 could even have the sending process start by copying the message in a
 particular outbox without direct interaction between the MUA and the
 SMTP server.

This only applies to IMAP servers that have also an SMTP component, like
courier - but these components are separate.

As Matthias said, dovecot is NOT an smtp server and has nothing to do
with the sending process (except for use of dovecot_sasl if it is used)...

This is not a dovecot problem...

-- 

Best regards,

Charles


Re: [Dovecot] Dovecot upgrade broke per-user Sieve scripts

2009-01-24 Thread Noel Butler

You need to update your sieve plugin

This question is best asked on ubuntu list, since these versions are
VERY old.
you could of course dpkg and remove them, and use the current stable
sources for both.
It is hard to support users of distros that persist in having ancient
current versions.



On Sun, 2009-01-25 at 01:09, John Reese wrote:

 Hi all,
 
 I'm migrating my private mail server from Dovecot 1.0.10 to Dovecot 
 1.1.4 (both the latest package in Ubuntu Hardy and Intrepid, resp.).
 
 I'm using Postfix with Postfixadmin virtual users , passing mail to 
 Dspam, which in turn passes email to the Dovecot LDA.  The relevant 
 configuration section is attached below.
 
 When running on the old version of Dovecot, the LDA correctly executed 
 either the user's personal sieverc script, or the global sieverc, as 
 expected.
 
 However, after the upgrade to 1.1.4, Dovecot will not execute any 
 per-user Sieve scripts, although the configuration and file permissions 
 hasn't changed.  I've added debug logging to Dovecot, and the relevant 
 portions of the log file are also attached below.
 
 What am I missing here?  Why can't cmusieve find the user's script?  Did 
 the configuration for Sieve change?  I've read and re-read the Dovecot 
 wiki page for Sieve, and I can't see why my configuration should be 
 causing any troubles.
 
 All help or suggestions are greatly appreciated.
 
 Thank you.
 
 ### dovecot.conf
 
 protocols = imap imaps
 disable_plaintext_auth = no
 
 mail_debug = yes
 log_path = /var/log/dovecot.log
 info_log_path = /var/log/dovecot.log
 
 mail_location = maildir:/srv/mail/%u/Maildir
 first_valid_uid = 900
 
 ssl_cert_file = /srv/ssl/dovecot.pem
 ssl_key_file = /srv/ssl/leetcode.net.key
 
 auth default {
  mechanisms = plain login
 
  passdb sql {
  args = /srv/etc/dovecot/dovecot-mysql.conf
  }
  userdb sql {
  args = /srv/etc/dovecot/dovecot-mysql.conf
  }
 
  socket listen {
  master {
  path = /var/run/dovecot/auth-master
  mode = 0600
  user = vmail
  }
 
  client {
  path = /var/spool/postfix/private/auth
  mode = 0600
  user = postfix
  group = postfix
  }
  }
 }
 
 protocol lda {
  log_path = /srv/mail/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = postmas...@leetcode.net
  mail_plugins = cmusieve
  sieve_global_path = /srv/mail/sieverc
 
  plugin {
  sieve = /srv/mail/%u/sieverc
  }
 }
 
 ### end dovecot.conf
 
 ### dovecot.log
 
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: Loading modules from 
 directory: /usr/lib/dovecot/modules/lda
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: Module loaded: 
 /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: 
 jre...@leetcode.net
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: 
 maildir=jre...@leetcode.net/
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: uid=900
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: auth input: gid=900
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: maildir: 
 data=/srv/mail/jre...@leetcode.net/Maildir
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: maildir++: 
 root=/srv/mail/jre...@leetcode.net/Maildir, index=, cont
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: 
 /srv/mail/%u/sieverc doesn't exist
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: Using 
 sieve path: /srv/mail/sieverc
 deliver(jre...@leetcode.net): Jan 24 14:30:40 Info: cmusieve: Executing 
 script /srv/mail/sievercc
 
 ### end dovecot.log


Re: [Dovecot] Dovecot upgrade broke per-user Sieve scripts

2009-01-24 Thread Noel Butler
one more thing.

On Sun, 2009-01-25 at 01:09, John Reese wrote:


 
 protocol lda {
  log_path = /srv/mail/dovecot-deliver.log
  auth_socket_path = /var/run/dovecot/auth-master
  postmaster_address = postmas...@leetcode.net
  mail_plugins = cmusieve
  sieve_global_path = /srv/mail/sieverc
 
  plugin {
  sieve = /srv/mail/%u/sieverc
  }


Have you tried this  sieve= ... in the global plugin segment, not in
LDA?





Re: [Dovecot] Dovecot upgrade broke per-user Sieve scripts

2009-01-24 Thread John Reese

On 01/24/2009 09:05 PM, Noel Butler wrote:

Did you try that plugin entry in the global
plugin { } and remove it from LDA?


I tried adding it to global, and it didn't change anything, but then I 
just realized that I still had it in LDA, and so once I removed that 
part, and only have the configuration in global, it works!


Thank you very much for your help Noel. :)

Cheers

--
John Reese
LeetCode.net