Добрый день всем
Помогите плз оптимизировать сендмэйл
Проблем несколько
1) Очень долго идут письма с вложениями от 2 Mb и больше, эти письма висят в очереди по 2-3 часа и помечаются как заблокированные, я так понимаю что сендмэйл сначала обрабатывает письма меньшего размера потом в самую последнюю очередь письма большего размера,можно ли на это как то повлиять?2) если дать на сервере команду ps -ax увидим следующее
41726 ?? Is 0:00.02 sendmail: ./lADCdJG9041681 [172.19.1.23]: client DATA status (sendmail)
41735 ?? S 0:00.07 sendmail: lADCdXMN041735 [59.92.89.47]: DATA (sendmail)
41741 ?? S 0:00.07 sendmail: lADCdXU7041741 adsl201-244216078.dyn.etb.net.co [201.244.216.78] (may be forged): DATA (sendmai
41743 ?? Is 0:00.02 sendmail: ./lADCdGZd041670 [172.19.1.23]: client DATA status (sendmail)
41744 ?? I 0:00.07 sendmail: lADCdZrF041744 ABTS-TN-dynamic-239.80.164.122.airtelbroadband.in [122.164.80.239] (may be forge
41753 ?? I 0:00.07 sendmail: lADCdbDD041753 Korotkov-loop.Arkhangelsk.gldn.net [195.239.228.253]: DATA (sendmail)
41770 ?? S 0:00.07 sendmail: lADCdlV7041770 ppp85-141-204-68.pppoe.mtu-net.ru [85.141.204.68]: DATA (sendmail)
41822 ?? Is 0:00.02 sendmail: ./lADCdQ4M041698 [172.19.1.23]: client DATA status (sendmail)
41824 ?? S 0:00.07 sendmail: lADCdvl7041824 70-58-194-213.ptld.qwest.net [70.58.194.213]: DATA (sendmail)
41826 ?? S 0:00.07 sendmail: lADCe09u041826 24.152.197.193.res-cmts.eph.ptd.net [24.152.197.193]: DATA (sendmail)
41828 ?? I 0:00.05 sendmail: server client-200.106.97.245.speedy.net.pe [200.106.97.245] (may be forged) cmd read (sendmail)
41836 ?? I 0:00.05 sendmail: server cpe-72-227-24-14.stny.res.rr.com [72.227.24.14] cmd read (sendmail)
41839 ?? Is 0:00.02 sendmail: ./lADCdpm2041797 [172.19.1.23]: client DATA status (sendmail)
41843 ?? Is 0:00.02 sendmail: ./lADCcv7N041579 [172.19.1.23]: client DATA status (sendmail)
41856 ?? I 0:00.07 sendmail: lADCe5qd041856 [88.231.10.76]: DATA (sendmail)
41861 ?? S 0:00.05 sendmail: server [201.18.29.69] cmd read (sendmail)
41874 ?? I 0:00.05 sendmail: server cli-nw.224.161.helios-nw.ru [88.82.161.224] cmd read (sendmail)
41875 ?? S 0:00.07 sendmail: lADCeA4P041875 20158179054.user.veloxzone.com.br [201.58.179.54] (may be forged): DATA (sendmai
41902 ?? Ss 0:00.02 sendmail: ./lADCeDlD041888 [172.19.1.23]: client DATA status (sendmail)
41908 ?? Ss 0:00.02 sendmail: ./lADCdLBu041689 [172.19.1.23]: client DATA status (sendmail)
41927 ?? S 0:00.07 sendmail: lADCeLLY041927 [62.118.122.218]: DATA (sendmail)
41934 ?? S 0:00.05 sendmail: server 91-65-96-251-dynip.superkabel.de [91.65.96.251] (may be forged) cmd read (sendmail)
41935 ?? S 0:00.05 sendmail: server [124.53.221.66] cmd read (sendmail)
41941 ?? Ss 0:00.02 sendmail: ./lADCeHi6041898 [172.19.1.23]: client DATA status (sendmail)
41943 ?? S 0:00.05 sendmail: server mm-42-197-57-86.dynamic.pppoe.mgts.by [86.57.197.42] (may be forged) cmd read (sendmail)
41944 ?? S 0:00.07 sendmail: lADCePid041944 009.136.151.89.chtts.ru [89.151.136.9] (may be forged): DATA (sendmail)
41945 ?? S 0:00.05 sendmail: server c950046b.bhz.virtua.com.br [201.80.4.107] cmd read (sendmail)
41946 ?? S 0:00.07 sendmail: lADCeR07041946 CPE001478bea749-CM000a739b5699.cpe.net.cable.rogers.com [99.244.129.230]: DATA (
41947 ?? S 0:00.07 sendmail: lADCeRLv041947 CPE001478bea749-CM000a739b5699.cpe.net.cable.rogers.com [99.244.129.230]: DATA (
41949 ?? Ss 0:00.02 sendmail: ./lADCeOXM041936 [172.19.1.23]: client DATA 354 (sendmail)
41950 ?? S 0:00.05 sendmail: lADCeUmX041950 dsl88-233-45486.ttnet.net.tr [88.233.177.174] (may be forged): MAIL FROM (sendma
41952 ?? Ss 0:00.02 sendmail: ./lADCeRk5041942 [172.19.1.23]: client DATA status (sendmail)
41953 ?? S 0:00.05 sendmail: server 246-239.dial.mels.ru [89.184.246.239] (may be forged) cmd read (sendmail)
41955 ?? Ss 0:00.02 sendmail: ./lADCd7HO041626 [172.19.1.23]: client DATA status (sendmail)
41956 ?? S 0:00.05 sendmail: server c-68-82-138-185.hsd1.pa.comcast.net [68.82.138.185] cmd read (sendmail)
90590 ?? Is 0:00.21 sendmail: ./lAD8Bdsd090394 [172.19.1.23]: client DATA 354 (sendmail)
91199 ?? S 0:02.03 sendmail: ./lAC92ZqK022327 [172.19.1.23]: client DATA 354 (sendmail)
Вывод этой команды может занимать 3-4 экрана, что мне кажется совершенно неправильно
Если дать команду top можно увидеть load averages 0.54 0.28 0.24 , цифры эти меняются , максимальная нагрузка днем
Привожу файл mc
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
# The Regents of the University of California. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
# must display the following acknowledgement:
# This product includes software developed by the University of
# California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#
# This is a generic configuration file for FreeBSD 5.X and later systems.
# If you want to customize it, copy it to a name appropriate for your
# environment and do the modifications there.
#
# The best documentation for this .mc file is:
# /usr/share/sendmail/cf/README or
# /usr/src/contrib/sendmail/cf/README
#
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30 2005/06/14 02:25:17 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
#
VIRTUSER_DOMAIN_FILE(`virtuserdomain')
FEATURE(domaintable, `hash -o /etc/mail/domaintable')
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
FEATURE(masquerade_envelope)
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl --------------------------------
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl http://directory.google.com/Top/Computers/Internet/Abuse/Spam/Blacklists/
dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " $&{client_addr} " rejected, see http://mail-abuse.org/cgi-bin/look
up?" $&{client_addr}')
dnl Dialup users should uncomment and define this appropriately
dnl define(`SMART_HOST', `your.isp.mail.server')
dnl Uncomment the first line to change the location of the default
dnl /etc/mail/local-host-names and comment out the second line.
dnl define(`confCW_FILE', `-o /etc/mail/sendmail.cw')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
dnl Enable for both IPv4 and IPv6 (optional)
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)