Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dovecot + vpopmail/mysql fails very often in authentication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
phil_bv
n00b
n00b


Joined: 07 Jan 2004
Posts: 31
Location: Romania/Bucharest

PostPosted: Fri Jul 10, 2009 10:37 am    Post subject: dovecot + vpopmail/mysql fails very often in authentication Reply with quote

Hi !
From some time I have some problems with the dovecot configured on some different servers ( even on 32 or 64bit arhitecturs, all with gentoo linux, with dovecot version 1.1.7-r1 ).
I had to give up on using courier-imap because of it's courier-authlib that doesn't have any vpopmail support, so I choosed dovecot as I have seen some good reviews about it.
But sometimes I see that dovecot doesn't want to authenticate anymore, and it shows in it's error log the following error:

Code:
dovecot: Error: auth(default): vmysql: sql error[3]: MySQL client ran out of memory
dovecot: Error: auth(default): Out of memory (Needed 8160 bytes)
dovecot: Error: auth(default): vmysql: sql error[3]: MySQL client ran out of memory
dovecot: Error: auth(default): Out of memory (Needed 8160 bytes)
dovecot: Error: auth(default): vmysql: sql error[3]: MySQL client ran out of memory
dovecot: Error: auth(default): Out of memory (Needed 8160 bytes)
dovecot: Error: auth(default): vmysql: sql error[3]: MySQL client ran out of memory
dovecot: Error: auth(default): Out of memory (Needed 8160 bytes)
dovecot: Error: auth(default): vmysql: sql error[3]: MySQL client ran out of memory


After I restart dovecot, it works very well. But this it's very disturbing, and I don't know what values to adjust anymore on the dovecot.conf file, as you can see it below:

Code:
# grep -Pv "^\s*#" /etc/dovecot/dovecot.conf
protocols = imap imaps pop3 pop3s
disable_plaintext_auth = no
shutdown_clients = yes
log_path = /var/log/dovecot/dovecot_error.log
info_log_path = /var/log/dovecot/dovecot_info.log
log_timestamp = ""
syslog_facility = mail
ssl_disable = no
ssl_cert_file = /var/qmail/control/servercert.pem
ssl_key_file = /var/qmail/control/servercert.pem
ssl_cipher_list = ALL:!LOW
verbose_ssl = yes
login_user = dovecot
login_process_per_connection = no
login_processes_count = 3
login_max_processes_count = 200
login_max_connections = 300
login_greeting = MDA Mail Server 1
mail_location = maildir:~/.maildir

namespace private {
        separator = .
        prefix = INBOX.
        inbox = yes
}
mail_uid = 89
mail_gid = 89
fsync_disable = no
verbose_proctitle = yes
first_valid_uid = 89
last_valid_uid = 89
max_mail_processes = 512
mail_process_size = 64
maildir_stat_dirs = no
maildir_copy_with_hardlinks = yes
maildir_copy_preserve_filename = no
mbox_read_locks = fcntl
mbox_lock_timeout = 300
mbox_dotlock_change_timeout = 120
mbox_lazy_writes = yes

protocol imap {
  listen = 0.0.0.0:143
  ssl_listen = 0.0.0.0:993

  mail_max_userip_connections = 10

  imap_max_line_length = 65536
  login_greeting_capability = yes
}

protocol pop3 {
        listen = 0.0.0.0:110
        ssl_listen = 0.0.0.0:995

        mail_max_userip_connections = 3

        pop3_no_flag_updates = no
  pop3_reuse_xuidl = no
        pop3_uidl_format = %v-%u
}

protocol lda {
  postmaster_address = postmaster@example.com
}
auth_executable = /usr/libexec/dovecot/dovecot-auth
auth_process_size = 256
auth_cache_size = 10240
auth_cache_ttl = 3600
auth_cache_negative_ttl = 300
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
auth_username_translation = "%@"
auth_verbose = yes
auth_debug = yes

auth_worker_max_count = 50
auth_worker_max_request_count = 100
auth_failure_delay = 2

auth default {
  mechanisms = plain login digest-md5 cram-md5 rpa

        passdb vpopmail {
                args =
        }

        userdb vpopmail {
        }

        user = vpopmail
        count = 1
        ssl_require_client_cert = no
}

plugin {
}


Can anyone had the same problem, or at least give me an advice of what to do ?

P.S.: I have found this error on and old post about an very old version of dovecot with mysql support, but they ( developers of dovecot ) already solved that: http://www.dovecot.org/list/dovecot/2005-December/010400.html
_________________
The Roman Rule
The one who says it cannot be done should never interrupt the
one who is doing it.
Back to top
View user's profile Send private message
drogatoo
n00b
n00b


Joined: 01 Aug 2007
Posts: 17
Location: Romania

PostPosted: Mon Aug 10, 2009 10:07 am    Post subject: Reply with quote

I have exactly the same problem with vpopmail and dovecot. From time to time i get this error and i have to manually restart dovecot.
Back to top
View user's profile Send private message
br41n
n00b
n00b


Joined: 16 Nov 2006
Posts: 15

PostPosted: Thu Aug 13, 2009 10:55 am    Post subject: Reply with quote

Same here, any1 have a solution?
Getting calls saturday at 22pm from work because they can't check their emails is not fun :|
Back to top
View user's profile Send private message
drogatoo
n00b
n00b


Joined: 01 Aug 2007
Posts: 17
Location: Romania

PostPosted: Thu Aug 13, 2009 10:59 am    Post subject: Reply with quote

I think a solution could be increasing auth_process_size in dovecot.conf but I'm not really sure. If somebody could confirm
Back to top
View user's profile Send private message
br41n
n00b
n00b


Joined: 16 Nov 2006
Posts: 15

PostPosted: Tue Sep 15, 2009 7:17 am    Post subject: Reply with quote

Well i raised that to 1024 but no use, giving it more it seems pointless imo
damn i miss courier-imap :|
Back to top
View user's profile Send private message
Biffen
n00b
n00b


Joined: 23 Nov 2004
Posts: 32

PostPosted: Wed Nov 25, 2009 9:24 am    Post subject: Reply with quote

br41n wrote:
Same here, any1 have a solution?
Getting calls saturday at 22pm from work because they can't check their emails is not fun :|


set:
login_process_size: 128

Created a script: (run it with cron once a day)

#! /bin/sh

/usr/bin/killall -q dovecot-auth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum