LINUX.ORG.RU
ФорумAdmin

Postfix: ошибки в /var/log/maillog


0

0

Slackware 8, 2.4.18, Postfix 2.0.12 (13 не почему-то не запускается).

Несколько недель Postfix работал нормально и его никто не трогал.

Сейчас выдает

------------------/var/log/maillog--------------
Aug 8 04:40:06 seven postfix/postdrop[21853]: warning:

mail_queue_enter: create file maildrop/804651.21853: Permission denied

Aug 8 04:40:36 seven last message repeated 3 times

Aug 8 04:41:36 seven last message repeated 6 times

Aug 8 04:42:36 seven last message repeated 6 times

Aug 8 04:43:37 seven last message repeated 6 times

Aug 8 04:44:37 seven last message repeated 6 times

Aug 8 04:45:37 seven last message repeated 6 times

Aug 8 04:46:37 seven last message repeated 6 times

Aug 8 04:47:37 seven last message repeated 6 times

Aug 8 04:48:37 seven last message repeated 6 times

Aug 8 04:48:47 seven postfix/postdrop[21853]: warning:
mail_queue_enter: create file maildrop/804651.21853: Permission denied

Aug 8 04:48:50 seven postfix/smtpd[21872]: connect from intergate2.sdcoe.k12.ca.us[198.133.204.4]

Aug 8 04:48:51 seven postfix/smtpd[21872]: 2C9E547929: client=intergate2.sdcoe.k12.ca.us[198.133.204.4]

Aug 8 04:48:51 seven postfix/smtpd[21872]: 2C9E547929: reject: RCPT from intergate2.sdcoe.k12.ca.us[198.133.204.4]: 450
<oxygen@unilans.ru>: User unknown in local recipient table; from=<dttwrm@mtu-net.ru> to=<oxygen@111.ru> proto=ESMTP helo=<luisa2.sdcoe.k12.ca.us>

Aug 8 04:48:57 seven postfix/postdrop[21853]: warning: mail_queue_enter: create file maildrop/804651.21853: Permission denied

----------------end of maillog-----------------

Каталог /var/spool/postfix существует

drwx------ 18 postfix root 4096 Jun 28 22:06 active

drwx------ 18 postfix root 4096 Jul 8 00:28 bounce

drwx------ 2 postfix root 4096 Jun 11 18:32 corrupt

drwx------ 18 postfix root 4096 Jul 10 18:31 defer

drwx------ 18 postfix root 4096 Jul 10 18:31 deferred

drwx------ 2 postfix root 4096 Jun 11 18:32 flush

drwx------ 2 postfix root 4096 Jun 11 18:32 hold

drwx------ 18 postfix root 4096 Aug 10 17:53 incoming

drwx-wx--- 2 postfix postdrop 4096 Aug 10 16:14 maildrop

drwxr-xr-x 2 root root 4096 Jul 10 18:54 pid

drwx------ 2 postfix root 4096 Aug 10 16:16 private

drwx--x--- 2 postfix postdrop 4096 Aug 10 16:16 public


После этого сделать postfix restart недостаточно, будет тоже самое. Я делаю postfix stop, вручную убиваю все процессы postdrop и sendmail, потом postfix start. Система работает часов 5 потом все повторяется. Т.е. вначале письма приходят и уходят, ошибки появляются не сразу.


Сегодня появились новые ошибки.

---------------------------/var/log/maillog-----------------------

Aug 10 00:13:40 seven postfix/smtpd[24226]: connect from unknown[10.10.20.26]

Aug 10 00:13:40 seven postfix/smtpd[24226]: C0BEA474DC: client=unknown[10.10.20.26]

Aug 10 00:14:38 seven postfix/cleanup[23285]: warning: timeout on cleanup socket while reading input attribute name

Aug 10 00:14:38 seven postfix/cleanup[23285]: warning: 2BE0B474D3: read timeout on cleanup socket

Aug 10 00:14:38 seven postfix/smtpd[23882]: warning: timeout on private/rewrite socket while reading input attribute name

Aug 10 00:14:38 seven postfix/smtpd[23882]: warning: rewrite_clnt: bad read: Connection timed out

Aug 10 00:14:44 seven postfix/smtpd[23283]: warning: timeout on private/rewrite socket while reading input attribute name

Aug 10 00:14:44 seven postfix/smtpd[23283]: warning: rewrite_clnt: bad read: Connection timed out

Aug 10 00:15:17 seven postfix/smtpd[24250]: connect from unknown[10.10.20.45]

Aug 10 00:15:18 seven postfix/smtpd[24250]: E3B38474D3: client=unknown[10.10.20.45]

Aug 10 00:16:13 seven postfix/qmgr[24138]: fatal: watchdog timeout

Aug 10 00:16:14 seven postfix/master[20030]: warning: process /usr/libexec/postfix/qmgr pid 24138 exit status 1

Aug 10 00:16:14 seven postfix/master[20030]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling

Aug 10 00:16:32 seven postfix/smtpd[24280]: connect from unknown[10.10.20.26]

Aug 10 00:16:32 seven postfix/smtpd[24280]: 2C02C474DD: client=unknown[10.10.20.26]

Aug 10 00:17:14 seven postfix/qmgr[24292]: ED80C47981: from=<>, size=3728, nrcpt=1 (queue active)

----------------------------end of /var/log/maillog-------------------
На этот раз достаточно сделать postfix restart. Работает несколько часов нормально и потом по новой эти же ошибки.
Места на диске - 2 Gb. Где копать?

Вот мои конфиги (все по-умолчанию, свои только имена доменов и сетей)

-----------main.cf----------------
queue_directory = /var/spool/postfix

command_directory = /usr/sbin

daemon_directory = /usr/libexec/postfix

mail_owner = postfix

myhostname = seven.111.ru

mydomain = 111.ru

myorigin = $mydomain

mydestination = $myhostname, localhost.$mydomain, $mydomain

unknown_local_recipient_reject_code = 450

smtpd_client_restrictions = hash:/etc/postfix/access,

permit_mynetworks, reject_unknown_client

mynetworks = $config_directory/mynetworks

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

newaliases_path = /usr/bin/newaliases

mailq_path = /usr/bin/mailq

setgid_group = postdrop

manpage_directory = /usr/local/man

sample_directory = /etc/postfix

readme_directory = no

--------------------end of main.cf----------------------



----------------master.cf----------------
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#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 nqmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - 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 ($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
---------------------------end of master.cf-----------------------

anonymous

И что, работало-работало, никто ничо не трогал, и вдруг -- бац! 1) Юзер vmail имеет доступ в каталог maildrop? 2) Ну подумаешь, посканили тебя с локального адреса 10.10.20.45. Не рассыпется. Скорее всего, тоже где-то с правами недокручено.

anonymous
()

Не знаю, что за юзер vmail. Postfix вроде работает от имени юзера postfix (и группы postdrop). У них доступ к maildrop есть.

anonymous
()

maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

Типа.

anonymous
()

что это за строка?

maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

anonymous
()

нашел строку в master.cf в INSTALL ничего не сказано про юзера vmail. с какими параметрами он должен быть? шелл нужен?

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.