zeldor.biz

Linux, programming and more

Copyright © 2023
Log in

Courier time outs

February 4, 2011 by Igor Drobot 1 Comment

Your client (Thunderbird or Outlook) get time outs while you send mails or change between directories.

The first what you should do, check your logs:

This can be your possible error:

1
server imapd: 40 maximum active connections.

server imapd: 40 maximum active connections.

Solve this problem by changing the limitation:

1
2
3
4
vim /etc/courier/imapd
MAXDAEMONS=40
# change to:
MAXDAEMONS=60

vim /etc/courier/imapd MAXDAEMONS=40 # change to: MAXDAEMONS=60

By the way, how to enable logging:

1
mkdir /var/log/courier

mkdir /var/log/courier

1
vim /etc/rsyslog.d/10-courier.conf

vim /etc/rsyslog.d/10-courier.conf

Content:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if \
    ($programname contains 'courier' \
    or \
    $programname contains 'authdaemond' \
    or \
    $programname contains 'imapd' \
    or \
    $programname contains 'pop3d') \
    and \
    $syslogseverity-text == 'crit' \
then \
    /var/log/courier/courier.crit
 
if \
    ($programname contains 'courier' \
    or \
    $programname contains 'authdaemond' \
    or \
    $programname contains 'imapd' \
    or \
    $programname contains 'pop3d') \
    and \
    $syslogseverity-text == 'err' \
then \
    -/var/log/courier/courier.err
 
if \
    ($programname contains 'courier' \
    or \
    $programname contains 'authdaemond' \
    or \
    $programname contains 'imapd' \
    or \
    $programname contains 'pop3d') \
    and not \
    ($syslogseverity-text == 'crit' \
    or \
    $syslogseverity-text == 'err') \
then \
    -/var/log/courier/courier.log
& ~

if \ ($programname contains 'courier' \ or \ $programname contains 'authdaemond' \ or \ $programname contains 'imapd' \ or \ $programname contains 'pop3d') \ and \ $syslogseverity-text == 'crit' \ then \ /var/log/courier/courier.crit if \ ($programname contains 'courier' \ or \ $programname contains 'authdaemond' \ or \ $programname contains 'imapd' \ or \ $programname contains 'pop3d') \ and \ $syslogseverity-text == 'err' \ then \ -/var/log/courier/courier.err if \ ($programname contains 'courier' \ or \ $programname contains 'authdaemond' \ or \ $programname contains 'imapd' \ or \ $programname contains 'pop3d') \ and not \ ($syslogseverity-text == 'crit' \ or \ $syslogseverity-text == 'err') \ then \ -/var/log/courier/courier.log & ~

Logrotate for couroer:

1
2
3
4
5
6
7
8
9
/var/log/courier/courier.*  {
        daily
        missingok
        rotate 356
        compress
        delaycompress
        notifempty
        create 644 root root
}

/var/log/courier/courier.* { daily missingok rotate 356 compress delaycompress notifempty create 644 root root }

Filed Under: Linux Tagged With: courier IMAP, IMAP, logrotate courier, time out, user limit

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Trackbacks

  1. EMOS,IMAP 收邮箱报timeout的解决办法 « Hi DBA| 网站架构 性能优化 技术点评 says:
    December 31, 2011 at 04:46

    […] 友情连接:http://zeldor.biz/2011/02/courier-time-outs/ 您可以任意转载本文,但转载时请以超链接形式标明文章原始出处和作者信息及版权声明 作者:danny,原文链接:http://www.hidba.net/20111231/610.html [复制本文链接发送给您的好友] (No Ratings Yet)  Loading … Tags: emos imapd […]

Leave a Reply

Your email address will not be published. Required fields are marked *