[Dovecot] Panic with mail_log activated

Xavier Pons xavier.pons at uib.es
Thu Jun 3 13:16:45 EEST 2010


El 03/06/2010 11:37, Pascal Volk escribió:
> On 06/03/2010 10:08 AM Xavier Pons wrote:
>    
>> You're right!
>> Here is the output of doveconf -n:
>>
>> # 2.0.beta5: /etc/dovecot/dovecot.conf
>> # OS: Linux 2.6.18-164.11.1.el5 x86_64 Red Hat Enterprise Linux Server
>> release 5.4 (Tikanga)
>>>> log_path = /var/log/dovecot.log
>> mail_access_groups = vmail
>> mail_gid = 96
>> mail_location = maildir:~/Maildir
>> mail_nfs_index = yes
>> mail_nfs_storage = yes
>> mail_plugins = acl quota mail_log notify
>> mail_privileged_group = mail
>> mail_uid = 96
>> maildir_stat_dirs = yes
>> mmap_disable = yes
>> namespace {
>>    inbox = yes
>>    location =
>>    prefix =
>>    separator = /
>>    type = private
>> }
>> namespace {
>>    hidden = no
>>    inbox = no
>>    list = children
>>    location = maildir:%%h/Maildir:INDEX=~/Maildir/shared/%%n/
>>    prefix = shared/%%n/
>>    separator = /
>>    subscriptions = no
>>    type = shared
>> }
>> namespace {
>>    hidden = no
>>    list = children
>>    location = maildir:/home/vmail/public/:INDEX=~/Maildir/public
>>    prefix = public/
>>    separator = /
>>    subscriptions = no
>>    type = public
>> }
>>>> plugin {
>>    acl = vfile
>>    acl_shared_dict = file:/home/vmail/dovecot/shared-mailboxes
>>    mail_log_events = delete undelete expunge copy mailbox_delete
>> mailbox_rename
>>    mail_log_fields = uid box msgid size
>>    mail_log_group_events = no
>>    quota = maildir:User quota
>>    quota_rule = *:storage=1G
>>    quota_rule2 = Trash:storage=100M
>>    quota_warning = storage=80%% /usr/bin/quota-warning.sh 80
>>    sieve = ~/.dovecot.sieve
>>    sieve_dir = ~/sieve
>> }
>>>> protocol lda {
>>    info_log_path = /var/log/dovecot-deliver.log
>>    log_path = /var/log/dovecot-deliver-errors.log
>>    mail_plugins = $mail_plugins sieve
>> }
>>>>      
> Please stop top-posting.
>
> Hm, I'm not using namespaces, ACLs or NFS.
> The mail_log plugin is working fine so far. Tested with dovecot-lda and
> imap. Also for an account with userdb filed 'mail=maildir:~/Maildir'.
> This are my settings; doveconf -n -m mail -x:
>
> # 2.0.beta5 (3b25ca20f005): /usr/local/dovecot20/etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-3-amd64 x86_64 Debian squeeze/sid
> debug_log_path = /usr/local/dovecot20/var/log/dovecot.debug
> info_log_path = /usr/local/dovecot20/var/log/dovecot.info
> log_path = /usr/local/dovecot20/var/log/dovecot.log
> mail_debug = yes
> mail_location = mdbox:~/mdbox:ALT=~/alt_mdbox
> mail_plugins = mail_log notify
> plugin {
>    mail_log_events = delete undelete expunge copy mailbox_delete
> mailbox_rename
>    mail_log_fields = uid box msgid size
>    quota = dict:user::proxy::quota
>    quota_rule = *:storage=10M:messages=40
>    quota_rule2 = Trash:storage=+50%%
>    sieve = ~/.dovecot.sieve
>    sieve_dir = ~/sieve
> }
> protocol lda {
>    info_log_path = /usr/local/dovecot20/var/log/dovecot-lda.info
>    log_path = /usr/local/dovecot20/var/log/dovecot-lda.log
>    mail_plugins = mail_log notify sieve
> }
> protocol lmtp {
>    mail_plugins = mail_log notify sieve
> }
>
> Your dovecot-deliver.log and dovecot-deliver-errors.log are writable for
> the user with uid 96? Any SELinux warnings in your logs?
> Can update to the latest code from the hg repo and try again?
>
>
> Regards,
> Pascal
>    
Yes, the vmail user (uid 96) has permitions to write on 
dovecot-deliver.log and dovecot-deliver-errors.log.
The mail_login plugin is working normally, but at sporadic periods dump 
this kind of errors and refuse to deliver the mail.
I don't have the SELinux enabled in this machine, and don't have any 
warnings/errors in other log files.

Now, I haven't used the hg repository sources, but I could try with the 
last version...

Thanks,
Xavier







More information about the dovecot mailing list