[Dovecot] performance?/connectivity? issues after server upgrade

2007-10-18 Thread Udo Rader
Hi,

we are facing some weird performance issues after we upgraded on of our
mail servers to a new Opteron 64bit machine.

The problem we are facing is that mail retrieval from external clients
is incredibly slow. Fetching a mail with say a size of 3MB takes 7
minutes vs. sending exactly the same mail back to our postmaster account
is only a question of seconds.

I've verified this with various customers and thus I am completely lost
here. The only service affected with this massive slowdown seems to be
dovecot but unfortunately I cannot think of a way to debug the issue ...

System load is absolutely minimal.

% dovecot -n
# 1.0.5: /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.log
protocols: imaps imap pop3
listen: 81.16.98.99
ssl_listen(default): 81.16.98.99
ssl_listen(imap): 81.16.98.99
ssl_listen(pop3): 
ssl_cert_file: /usr/bestsolution/ssl/certs/mail.bestsolution.at.pem
ssl_key_file: /usr/bestsolution/ssl/private/mail.bestsolution.at.pem
ssl_parameters_regenerate: 24
disable_plaintext_auth: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 9
mail_extra_groups: mail
default_mail_env: mbox:~/mail/:INBOX=/var/mail/%u
mail_location: mbox:~/mail/:INBOX=/var/mail/%u
mmap_disable: yes
lock_method: dotlock
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default): 
pop3_uidl_format(imap): 
pop3_uidl_format(pop3): %v.%u
auth default:
  mechanisms: digest-md5 cram-md5 login
  passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix

Any ideas welcome :-)

-- 
Udo Rader

bestsolution.at EDV Systemhaus GmbH
http://www.bestsolution.at


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


[Dovecot] more problems with dovecot-1.1 beta3

2007-10-18 Thread Sergey
Hi,
Thank you for pointing me about -xc99 flag, I have compiled and
installed dovecot inplace of version 1.0.5 without any special actions
on the upgrade. And after starting it immediately got in it's log file
messages like:
---
dovecot: Oct 16 23:10:18 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.git-altlinux-ru/dovecot.index.cache:
Invalid argument
---
I have tried to delete dovecot.index.cache files from imap directories,
but this did not helped:
---

dovecot: Oct 16 23:52:24 Error: IMAP(seriv): Corrupted transaction log
file /var/spool/imap/seriv/.imap/dovecot.index.log: indexid changed
1189182277 -> 1192593117
dovecot: Oct 16 23:52:24 Error: IMAP(seriv): Index file
/var/spool/imap/seriv/.imap/dovecot.index: indexid changed: 1189182277
-> 1192593117
dovecot: Oct 16 23:52:24 Error: IMAP(seriv): Corrupted transaction log
file /var/spool/imap/seriv/.imap/dovecot.index.log: indexid changed:
1189182277 -> 1192593117
dovecot: Oct 16 23:52:28 Error: IMAP(seriv):
/var/spool/imap/seriv/.imap/dovecot.index view is inconsistent
dovecot: Oct 16 23:52:28 Panic: IMAP(seriv): file client.c: line 105:
assertion failed: (!client->destroyed)
dovecot: Oct 16 23:52:28 Error: IMAP(seriv): Raw backtrace:
/opt/dovecot/libexec/dovecot/imap'i_internal_fatal_handler+0x48
[0x8135118] -> /opt/dovecot/libexec/dovecot/imap'i
_panic+0x23 [0x8134b03] ->
/opt/dovecot/libexec/dovecot/imap'client_destroy+0x33 [0x808ee43] ->
/opt/dovecot/libexec/dovecot/imap'client_continue_pending_input+0x5d
[0x808fac
d] -> /opt/dovecot/libexec/dovecot/imap'idle_finish+0xfa [0x808348a] ->
/opt/dovecot/libexec/dovecot/imap'cmd_idle_continue+0x46 [0x8083776] ->
/opt/dovecot/libexec/dovecot/i
map'client_command_cancel+0x4a [0x808ec6a] ->
/opt/dovecot/libexec/dovecot/imap'client_destroy+0x10b [0x808ef1b] ->
/opt/dovecot/libexec/dovecot/imap'client_continue_pending_
input+0x5d [0x808facd] ->
/opt/dovecot/libexec/dovecot/imap'idle_finish+0xfa [0x808348a] ->
/opt/dovecot/libexec/dovecot/imap'cmd_idle_continue+0x202 [0x8083932] ->
/opt/dove
cot/libexec/dovecot/imap'idle_sync_now+0x84 [0x80836b4] ->
/opt/dovecot/libexec/dovecot/imap'idle_callback+0x5b [0x808371b] ->
/opt/dovecot/libexec/dovecot/imap'check_timeout
+0x14c [0x80e323c] -> /
dovecot: Oct 16 23:52:28 Error: IMAP(seriv):
opt/dovecot/libexec/dovecot/imap'io_loop_handle_timeouts+0x217
[0x813d057] -> /opt/dovecot/libexec/dovecot/imap'io_loop_handler_r
un+0x8d [0x813d9dd] ->
/opt/dovecot/libexec/dovecot/imap'io_loop_run+0x4b [0x813d14b] ->
/opt/dovecot/libexec/dovecot/imap'main+0x9a [0x809f18a] ->
/opt/dovecot/libexec/dovec
ot/imap'_start+0x7d [0x807c95d]
dovecot: Oct 16 23:52:28 Error: child 7529 (imap) killed with signal 6
---
Then I have tried to delete all dovecot.index* files from there, but the
messages in dovecot.log are almost the same:
---
deliver(seriv): Oct 18 14:59:49 Error: file_set_size() failed with index
cache file /var/spool/imap/seriv/.imap/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/seriv/.imap/.Drafts/dovecot.index.cache: Invalid argument
dovecot: Oct 18 15:01:35 Error: IMAP(seriv): Sending log messages too
fast, throttling..
dovecot: Oct 18 15:01:36 Error: IMAP(seriv): file_set_size() failed with
index cache file
/var/spool/imap/se

[Dovecot] Operations error with AD connections

2007-10-18 Thread Maarten Vanraes
Hello,

dovecot version: 1.0.beta3-3ubuntu5.5
OS: 2.6.15-26-server i686 GNU/Linux Ubuntu dapper
filesys: ext3
authentication is with ldap (Active Directory)

the problem is that after a while with a number of pop3 connections (8 people 
who have checking every 5 minutes), the ldap_search gives 'Operation Error' . 
we have tried to use the global catalog, but that doesn't solve the problem. 
the binding is the problem, we must use binding, cause we don't get a 
userPassword field.

Right now, we have switched to courierLDAP and it works for now, we'll have to 
see if it persists (we have set an LDAP timeout variable, but don't know if 
it's related.) The thing is that we have lots of places where can setup 
something like this with AD, and that for now, we'll probably use courier.

dovecot-ldap.conf:

hosts = 172.17.80.1:3268
dn = CN=SPIC,OU=Beheerders,OU=Zonnegroep,DC=zonnewende,DC=local
dnpass = x
auth_bind = yes
ldap_version = 3
base = dc=zonnewende, dc=local
user_filter = (mail=%u)
pass_attrs = uid=user,userPassword=password
pass_filter = (mail=%u)
user_global_uid = 5000
user_global_gid = 5000

any ideas on how to solve it?

PS: can you CC me?
-- 
Maarten Vanraes
BA NV: IT & Security


[Dovecot] Dovecot v1.0.3 -> Sieve "redirect" command returning Sendmail exit status 75

2007-10-18 Thread Elisamuel Resto
Hello!

My local setup here is Exim 4.68, DSPAM 3.8.0 and Dovecot 1.0.5. Entirely
on MySQL tables for virtual hosts and authentication. Dovecot does the
authentication for Exim.

What I am having problems with, is a simple sieve script to redirect a
message that matches the "X-DSPAM-Result" header as "Spam" to another email
address.

When this rule matches, deliver returns in the log (which is attached) that
"Sendmail process terminated abnormally, exit status: 75"

What would cause this, and how can I resolve it?
Thanks.

-- 
Elisamuel Resto <[EMAIL PROTECTED]>
ID: 0x18615F19 / FP: B66D 1C2A E8EE B922 1D9C D98F D2D5 FB61 1861 5F19
exim[30998]: 2007-10-18 22:26:44 1IihZU-00083y-90 <= [EMAIL PROTECTED] 
H=mx.isp.net [1.2.3.4] P=esmtp S=1658 [EMAIL PROTECTED] T="redirect me"
exim[31003]: 2007-10-18 22:27:00 1IihZU-000843-Gb <= [EMAIL PROTECTED] U=exim 
P=spam-scanned S=2139 [EMAIL PROTECTED] T="redirect me"
deliver([EMAIL PROTECTED]): Sendmail process terminated abnormally, exit status 
75
deliver([EMAIL PROTECTED]): sieve runtime error: Redirect: Error sending mail
deliver([EMAIL PROTECTED]): 
sieve_execute_bytecode(/srv/mail/local.net/me/.dovecot.sievec) failed
deliver([EMAIL PROTECTED]): msgid=<[EMAIL PROTECTED]>: saved mail to INBOX
exim[31013]: 2007-10-18 22:27:04 1IihZU-000843-Gb => /srv/mail/local.net/me 
<[EMAIL PROTECTED]> R=virtual_domains T=virtual_delivery
exim[31013]: 2007-10-18 22:27:04 1IihZU-000843-Gb Completed
exim[31000]: 2007-10-18 22:27:04 1IihZU-00083y-90 => me <[EMAIL PROTECTED]> 
R=dspam_router T=dspam_spamcheck
exim[31000]: 2007-10-18 22:27:04 1IihZU-00083y-90 Completed

pgpIhjqxIhAN1.pgp
Description: PGP signature