1

mail2
ASPLinux + postfix + cyrus-imapd + cyrus-sasl

mail_relay
ASPLinux + postfix +spamassasin + Clamav

Клиент Thunderbird

Тупит почта. Долго получаешь, удаляешь сообщения и т.д. Иногда Thunderbird думает по 10 минут. При том у всех такая фигня.
В логах ничего интересного не пишет...

2

Логи на серверах где? Настройки где? Вот подумайте сами, с Вашими данными много ли понять можно?

3 (21.04.2010 11:58:59 отредактировано shpak1)

mail_relay:

main.cf

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail_relay.xxx.ru
mydomain = mail_relay.xxx.ru
//myorigin = $mydomain
myorigin = xxx.ru
inet_interfaces = all
unknown_local_recipient_reject_code = 450
mynetworks = 172.16.18.0/24, 127.0.0.0/8, ...............
relay_domains = $mydestination
relay_recipient_maps = hash:/etc/postfix/relay_recipients
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/aliases
= regexp:/etc/postfix/header_checks
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.0.16/samples
readme_directory = /usr/share/doc/postfix-2.0.16/README_FILES
alias_database = hash:/etc/postfix/aliases
virtual_mailbox_domains = xxx.ru 000.ru 111.org .......
virtual_mailbox_base = /var/spool/vmail
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_alias_maps = hash:/etc/postfix/virtual
$receive_override_options = no_address_mappings
smtpd_delay_reject = yes

smtpd_client_restrictions = 
         permit_mynetworks,
         regexp:/etc/postfix/dul_checks,

smtpd_helo_restrictions = 
         permit_mynetworks,
         check_helo_access hash:/etc/postfix/helo_check,


smtpd_sender_restrictions =
         permit_mynetworks,
         regexp:/etc/postfix/sender_access,
         reject_unknown_client

smtpd_recipient_restrictions = 
     permit_mynetworks,
         reject_unauth_destination

transport_maps = hash:/etc/postfix/transport
message_size_limit = 12000000

master.cf:

 ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp    inet    n    -    y    -    -    smtpd
#smtps      inet    n    -    n    -    -    smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission    inet    n    -    n    -    -    smtpd
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo    n    -    y    60    1    pickup
cleanup    unix    n    -    y    -    0    cleanup
#qmgr     fifo  n       -       n       300     1       qmgr
qmgr    fifo    n    -    y    300    1    nqmgr
#tlsmgr      fifo    -    -    n    300    1    tlsmgr
rewrite    unix    -    -    y    -    -    trivial-rewrite
bounce    unix    -    -    y    -    0    bounce
defer    unix    -    -    y    -    0    bounce
flush    unix    n    -    y    1000?    0    flush
proxymap    unix    -    -    y    -    -    proxymap
smtp    unix    -    -    y    -    -    smtp
relay    unix    -    -    y    -    -    smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq    unix    n    -    y    -    -    showq
error    unix    -    -    y    -    -    error
local     unix  -       n       n       -       -       local
virtual    unix    -    n    n    -    -    virtual
lmtp    unix    -    -    y    -    -    lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail.postfix ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
# AV scan filter (used by content_filter)
scan      unix  -       -       n       -       16      smtp
        -o smtp_send_xforward_command=yes

# For injecting mail back into postfix from the filter
127.0.0.1:10026 inet  n -       n       -       16      smtpd
        -o content_filter=
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_helo_restrictions=
        -o smtpd_client_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks_style=host
        -o smtpd_authorized_xforward_hosts=127.0.0.0/8
filter    unix  -       n       n       -       -       pipe
        flags=Rq user=filter  argv=/usr/local/bin/spamchk -f ${sender} -- ${recipient}

mail2:

main.cf

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail2.xxx.ru
mydomain = xxx.ru
myorigin = $mydomain
inet_interfaces = all
local_recipient_maps = hash:/etc/postfix/local_recipient_maps
unknown_local_recipient_reject_code = 550
mynetworks = 172.16.18.0/24, 127.0.0.0/8, ......
relay_domains = $mydestination
relayhost = [172.16.18.203]
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
mailbox_transport = lmtp:unix:/var/spool/postfix/public/lmtp
smtpd_banner = $myhostname ESMTP
debug_peer_level = 2
debugger_command =
     PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
     xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
virtual_alias_maps = hash:/etc/postfix/virtual
transport_maps = hash:/etc/postfix/transport
message_size_limit = 20000000

master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
#submission inet n      -       n       -       -       smtpd
#    -o smtpd_etrn_restrictions=reject
#    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
    -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache      unix    -    -    n    -    1    scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient

Логи очень большие. Ошибки выдает только по поводу фильтра fstab - я так понял это нормально.
Скажите что из логов именно надо выложить?

4

Также подскажите вот что:
с другими клиентами тоже медленно?
почтовый сервер и клиенты в одной сети или сервер удаленный?

5

Все в локалке. С другими клиентами то же самое....
Дело в серваке, это точно... Раньше такого не было...

6

После чего стало?
Откуда уверенность, что в серваке?

7

shpak1, попробу по перемещать файлы на сервере из каталога в каталог, создать файл/копировать/удалить, есть подозрение то что диски отъезжают, так же покажи: vmstat -s, что там с памятью на сервере?

It is good day to die ...
MS Windows 10
Заметки о главном...

8 (21.04.2010 13:16:41 отредактировано shpak1)

vmstat -s

1552224  total memory
      1498084  used memory
       652944  active memory
       721948  inactive memory
        54140  free memory
       276296  buffer memory
      1020396  swap cache
      1558264  total swap
           72  used swap
      1558192  free swap
       235233 non-nice user cpu ticks
            1 nice user cpu ticks
       418508 system cpu ticks
     27476571 idle cpu ticks
      2830203 IO-wait cpu ticks
         8584 IRQ cpu ticks
        38188 softirq cpu ticks
            0 stolen cpu ticks
      9992375 pages paged in
     82849456 pages paged out
            0 pages swapped in
           18 pages swapped out
    191084129 interrupts
     34186703 CPU context switches
   1271689760 boot time
        24240 forks

Если помните я создавал тему, где у меня сервак падал каждые 1-3 часа.
Исправил чисткой диска от старой почты (+30Гб) и увеличением ОЗУ с 500 до 1500.
После этого начала почта жутко тормозить.

9

i2ks пишет:

попробу по перемещать файлы на сервере из каталога в каталог, создать файл/копировать/удалить

пробовали ?

It is good day to die ...
MS Windows 10
Заметки о главном...

10

i2ks пишет:
i2ks пишет:

попробу по перемещать файлы на сервере из каталога в каталог, создать файл/копировать/удалить

пробовали ?

Пробовал - 200мб за секунду.
...у меня raid 5 на scsi (15000)

11

уже лучше, думаем дальше ab

It is good day to die ...
MS Windows 10
Заметки о главном...

12 (21.04.2010 14:07:40 отредактировано shpak1)

[root@mail2 /]# top -u cyrus

top - 15:05:00 up 1 day, 19:55,  2 users,  load average: 1.18, 2.49, 1.79
Tasks: 259 total,   1 running, 258 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.5%us,  5.3%sy,  0.0%ni, 88.6%id,  0.5%wa,  0.0%hi,  0.2%si,  0.0%st
Mem:   1552224k total,  1517808k used,    34416k free,   224316k buffers
Swap:  1558264k total,       72k used,  1558192k free,  1097116k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
21685 cyrus     16   0  683m  20m  18m S   10  1.4   2:20.97 imapd
24646 cyrus     16   0  240m 2996 2212 S    5  0.2   0:05.72 lmtpd
24655 cyrus     16   0  240m 2976 2188 S    5  0.2   0:05.15 lmtpd
1960 cyrus     15   0  4992 1144  928 S    0  0.1   0:13.32 cyrus-master
1988 cyrus     15   0  238m  324  132 S    0  0.0   0:05.94 idled
1990 cyrus     19   0  239m 1908 1640 S    0  0.1   0:00.00 imapd
1991 cyrus     20   0  239m 1912 1648 S    0  0.1   0:00.00 imapd
1992 cyrus     21   0  239m 1900 1632 S    0  0.1   0:00.00 pop3d
1993 cyrus     22   0  239m 1916 1640 S    0  0.1   0:00.00 pop3d
1998 cyrus     24   0  239m 1908 1640 S    0  0.1   0:00.00 pop3d
2000 cyrus     20   0  239m 1904 1640 S    0  0.1   0:00.00 imapd
2001 cyrus     20   0  239m 1932 1636 S    0  0.1   0:00.01 pop3d
2041 cyrus     18   0  239m 1912 1640 S    0  0.1   0:00.00 imapd
2042 cyrus     18   0  239m 1904 1640 S    0  0.1   0:00.00 imapd
2043 cyrus     22   0  239m 1908 1640 S    0  0.1   0:00.00 imapd
2044 cyrus     22   0  239m 1924 1628 S    0  0.1   0:00.00 pop3d
2414 cyrus     15   0  240m 2804 2408 S    0  0.2   0:01.02 imapd
2415 cyrus     15   0  240m 2664 2308 S    0  0.2   0:00.35 imapd
2428 cyrus     15   0  240m 2680 2352 S    0  0.2   0:00.23 imapd
2473 cyrus     15   0  242m 2860 2504 S    0  0.2   0:01.35 imapd
2484 cyrus     15   0  242m 2872 2516 S    0  0.2   0:03.38 imapd
2485 cyrus     15   0  250m 3196 2804 S    0  0.2   0:17.73 imapd
2505 cyrus     16   0  242m 2768 2432 S    0  0.2   0:00.36 imapd
9958 cyrus     16   0  243m 2832 2480 S    0  0.2   0:01.81 imapd
14766 cyrus     22   0  242m 2812 2452 S    0  0.2   0:00.33 imapd
14940 cyrus     15   0  281m 4336 3864 S    0  0.3   0:07.12 imapd
21441 cyrus     15   0  240m 2668 2340 S    0  0.2   0:00.03 imapd
21443 cyrus     15   0  241m 2952 2484 S    0  0.2   0:00.39 imapd
21444 cyrus     15   0  240m 2708 2380 S    0  0.2   0:00.06 imapd
21483 cyrus     15   0  333m 4876 4452 S    0  0.3   0:05.98 imapd
21485 cyrus     15   0  335m 4360 3876 S    0  0.3   0:08.30 imapd
21514 cyrus     15   0  239m 2640 2312 S    0  0.2   0:00.02 imapd
21517 cyrus     15   0  333m 4928 4472 S    0  0.3   0:06.89 imapd
21523 cyrus     17   0  243m 2956 2508 S    0  0.2   0:01.85 imapd
21526 cyrus     15   0  406m 5064 4528 S    0  0.3   0:17.50 imapd
21528 cyrus     15   0  239m 2792 2368 S    0  0.2   0:00.04 imapd
21530 cyrus     15   0  240m 2736 2376 S    0  0.2   0:00.19 imapd
21553 cyrus     15   0  241m 2740 2404 S    0  0.2   0:00.07 imapd
21568 cyrus     15   0  242m 2772 2432 S    0  0.2   0:00.27 imapd
21569 cyrus     15   0  281m 4248 3844 S    0  0.3   0:05.32 imapd
21579 cyrus     15   0  240m 2652 2320 S    0  0.2   0:00.03 imapd
21599 cyrus     15   0  240m 2668 2340 S    0  0.2   0:00.03 imapd
21601 cyrus     15   0  262m 3856 3456 S    0  0.2   0:01.71 imapd
21688 cyrus     15   0  239m 2664 2332 S    0  0.2   0:00.03 imapd
21690 cyrus     15   0  315m 4732 4316 S    0  0.3   0:01.66 imapd
21691 cyrus     15   0  240m 2720 2388 S    0  0.2   0:00.04 imapd
21696 cyrus     15   0  244m 2900 2540 S    0  0.2   0:00.38 imapd
...

А pop3d должен работать если у меня imap на прием и smtp на отправление?