Страница 1 из 2

Postfix - проблема получения почты!..

Добавлено: 2007-05-29 13:58:01
iTango
Всем привет!

поднят почтовый сервер на основе POSTFIX

...работал без проблем, но вот сегодня стало невозможным получать письма!

вот что выводит на экран комманда:

tail -f /var/log/maillog | ccze -A :


May 29 13:48:27 www postfix/smtpd[3071]: connect from unknown[193.109.144.250]
May 29 13:48:28 www postfix/smtpd[3071]: 0AD802BD820: client=unknown[193.109.144.250]
May 29 13:48:29 www postfix/cleanup[3073]: 0AD802BD820: message-id=<956592141.20070529134205@ukr.net>
May 29 13:48:29 www postfix/qmgr[2940]: 0AD802BD820: from=<TRA-TA-TA@ukr.net>, size=928, nrcpt=1 (queue active)
May 29 13:48:29 www spamd[584] spamd: connection from localhost [127.0.0.1] at port 56227
May 29 13:48:29 www spamd[584] spamd: processing message <956592141.20070529134205@ukr.net> for root:58
May 29 13:48:30 www postfix/smtpd[3071]: disconnect from unknown[193.109.144.250]
May 29 13:48:33 www spamd[584] spamd: clean message (-0.6/5.0) for root:58 in 3.5 seconds, 1044 bytes.
May 29 13:48:33 www spamd[584] spamd: result: . 0 - AWL,BAYES_00,SUBJ_HAS_UNIQ_ID scantime=3.5,size=1044,user=root,uid=58,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=56227,mid=<956592141.20070529134205@ukr.net>,bayes=0.00211447029231726,autolearn=ham
May 29 13:48:33 www postfix/local[3075]: 0AD802BD820: to=<TRA-TA-TA@gTRA-TA-TA.com>, orig_to=<info@gerbor.com.ua>, relay=local, delay=6.1, delays=2/0.11/0/3.9, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/procmail -a "$EXTENSION")
May 29 13:48:33 www postfix/qmgr[2940]: 0AD802BD820: removed
May 29 13:48:33 www spamd[454] prefork: child states: II
May 29 13:48:35 www pop3d: chdir Maildir: No such file or directory



что означает последняя строка "May 29 13:48:35 www pop3d: chdir Maildir: No such file or directory" ???

...помогите разобраться, плиззззз!...

Добавлено: 2007-05-29 14:05:28
schizoid
ну а посмотреть, есть ли та директория?

Добавлено: 2007-05-29 14:29:34
iTango
"Maildir" - такой вообще нет в системе!.. а что это за директория? и где она должна быть? (сорррррри за ламерские вопросы! - почтовый сервер подымал не я...)

Добавлено: 2007-05-29 14:33:59
Dolphin_BSD
Конф блесни, и какую связку используешь ?

Добавлено: 2007-05-29 14:46:24
iTango
ещё раз сори, что морочу голову, но почтовый сервер подымал не я... к сожалению я в этом вопросе - нулевой!.. :twisted: начал разбираться, но запутался...

в /usr/local/etc/postfix

LICENSE dist makedefs.out relocated
TLS_LICENSE generic master.cf transport
access header_checks master.cf~ virtual
aliases main.cf post-install virtual.db
bounce.cf.default main.cf.default postfix-files
canonical main.cf~ postfix-script

какой конфиг показать???

Добавлено: 2007-05-29 14:58:10
Dolphin_BSD
main.cf. transport. -- для начала !?

Добавлено: 2007-05-29 15:14:49
iTango
transport - весь закоментирован

main.conf :

queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
mail_owner = postfix
myhostname = mail.TRA-TA-TA.com
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
local_recipient_maps = unix:passwd.byname $alias_maps
unknown_local_recipient_reject_code = 550
mynetworks_style = host
smtpd_recipient_restrictions=
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
smtpd_client_restrictions = permit_mynetworks
permit_sasl_authenticated

alias_maps = hash:/etc/aliases

home_mailbox = Mailbox # - вот грабли???

mail_spool_directory = /var/spool/mail
mailbox_command = /usr/local/bin/procmail -a "$EXTENSION"
smtpd_banner = $myhostname ESMTP
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = no

Добавлено: 2007-05-29 15:25:42
Dolphin_BSD
Аська есть ?

Добавлено: 2007-05-29 15:28:29
iTango
231746633

Добавлено: 2007-05-29 15:32:47
dikens3

Код: Выделить всё

May 29 13:48:35 www pop3d: chdir Maildir: No such file or directory"
Чё то я не догоняю, как это к postfix относится? Cтоит Courier-imap?

Добавлено: 2007-05-29 15:38:38
iTango
Courier-imap не установлен..

Добавлено: 2007-05-29 15:39:24
dikens3
Кто тогда 110 порт слушает?

Добавлено: 2007-05-29 15:47:31
iTango
млин...

root couriertcp 565 3 tcp6 *:110 *:*

Добавлено: 2007-05-29 16:02:52
iTango
так как всё-же поправить ситуацию???? :(

Добавлено: 2007-05-29 16:53:34
schizoid
конфиг поп-сервера тада давай

Добавлено: 2007-05-29 20:24:54
dikens3
Вроде Courier-Imap работает только с Maildir форматом?
У тебя постфикс настроен на Maildir?

P.S. конфиг courier'а будет нужен наверное.

Добавлено: 2007-05-30 9:47:58
iTango
pop3d:

##VERSION: $Id: pop3d.dist.in,v 1.16 2005/07/05 12:42:51 mrsam Exp $
#
# pop3d created from pop3d.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# Copyright 1998 - 2004 Double Precision, Inc. See COPYING for
# distribution information.
#
# Courier POP3 daemon configuration
#
##NAME: PIDFILE:0
#

PIDFILE=/var/run/pop3d.pid

##NAME: MAXDAEMONS:0
#
# Maximum number of POP3 servers started
#

MAXDAEMONS=40

##NAME: MAXPERIP:4
#
# Maximum number of connections to accept from the same IP address

MAXPERIP=4

##NAME: POP3AUTH:1
#
# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH
# variable:
#
# POP3AUTH="LOGIN"
#
# If you have configured the CRAM-MD5, CRAM-SHA1 or CRAM-SHA256, set POP3AUTH
# to something like this:
#
# POP3AUTH="LOGIN CRAM-MD5 CRAM-SHA1"

POP3AUTH=""

##NAME: POP3AUTH_ORIG:1
#
# For use by webadmin

POP3AUTH_ORIG="PLAIN LOGIN CRAM-MD5 CRAM-SHA1 CRAM-SHA256"

##NAME: POP3AUTH_TLS:1
#
# To also advertise SASL PLAIN if SSL is enabled, uncomment the
# POP3AUTH_TLS environment variable:
#
# POP3AUTH_TLS="LOGIN PLAIN"

POP3AUTH_TLS=""

##NAME: POP3AUTH_TLS_ORIG:0
#
# For use by webadmin

POP3AUTH_TLS_ORIG="LOGIN PLAIN"

##NAME: POP3_PROXY:0
#
# Enable proxying. See README.proxy

POP3_PROXY=0

##NAME: PROXY_HOSTNAME:0
#
# Override value from gethostname() when checking if a proxy connection is
# required.

# PROXY_HOSTNAME=

##NAME: PORT:1
#
# Port to listen on for connections. The default is port 110.
#
# Multiple port numbers can be separated by commas. When multiple port
# numbers are used it is possibly to select a specific IP address for a
# given port as "ip.port". For example, "127.0.0.1.900,192.68.0.1.900"
# accepts connections on port 900 on IP addresses 127.0.0.1 and 192.68.0.1
# The ADDRESS setting is a default for ports that do not have a specified
# IP address.

PORT=110

##NAME: ADDRESS:0
#
# IP address to listen on. 0 means all IP addresses.

ADDRESS=0

##NAME: TCPDOPTS:0
#
# Other couriertcpd(1) options. The following defaults should be fine.
#

TCPDOPTS="-nodnslookup -noidentlookup"

##NAME: LOGGEROPTS:0
#
# courierlogger(1) options.
#

LOGGEROPTS="-name=pop3d"

##NAME: DEFDOMAIN:0
#
# Optional default domain. If the username does not contain the
# first character of DEFDOMAIN, then it is appended to the username.
# If DEFDOMAIN and DOMAINSEP are both set, then DEFDOMAIN is appended
# only if the username does not contain any character from DOMAINSEP.
# You can set different default domains based on the the interface IP
# address using the -access and -accesslocal options of couriertcpd(1).

#DEFDOMAIN="@example.com"

##NAME: POP3DSTART:0
#
# POP3DSTART is not referenced anywhere in the standard Courier programs
# or scripts. Rather, this is a convenient flag to be read by your system
# startup script in /etc/rc.d, like this:
#
# . /usr/local/etc/courier-imap/pop3d
# case x$POP3DSTART in
# x[yY]*)
# /usr/local/libexec/courier-imap/pop3d.rc start
# ;;
# esac
#
# The default setting is going to be NO, until Courier is shipped by default
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.

POP3DSTART=NO

##NAME: MAILDIRPATH:0
#
# MAILDIRPATH - directory name of the maildir directory.
#
#MAILDIRPATH=Maildir



imapd:

# _all_ of your lusers, until every one of them is aware of this. Otherwise if
# OUTBOX is left at its default setting - a folder name that might be used
# accidentally - some people may be in for a rude surprise. You can redefine
# the name of the magic folder by changing OUTBOX, above. You should do that
# and pick a less-obvious name. Perhaps brand it with your organizational
# name ( OUTBOX=.WidgetsAndSonsOutbox )

HEADERFROM=X-IMAP-Sender

##NAME: OUTBOX_MULTIPLE_SEND:0
#
# Remove the following comment to allow a COPY of more than one message to
# the Outbox, at a time.
#
# OUTBOX_MULTIPLE_SEND=1

##NAME: IMAPDSTART:0
#
# IMAPDSTART is not used directly. Rather, this is a convenient flag to
# be read by your system startup script in /etc/rc.d, like this:
#
# . /usr/local/etc/courier-imap/imapd
#
# case x$IMAPDSTART in
# x[yY]*)
# /usr/local/libexec/courier-imap/imapd.rc start
# ;;
# esac
#
# The default setting is going to be NO, so you'll have to manually flip
# it to yes.

IMAPDSTART=NO

##NAME: MAILDIRPATH:0
#
# MAILDIRPATH - directory name of the maildir directory.
#
MAILDIRPATH=Maildir

Добавлено: 2007-05-30 11:09:07
Alex Keda

Добавлено: 2007-05-30 12:38:05
dikens3
Показывай authdaemonrc и прилагающиеся.

Добавлено: 2007-05-30 13:44:53
iTango
/usr/local/etc/authlib/authdaemonrc

##VERSION: $Id: authdaemonrc.in,v 1.13 2005/10/05 00:07:32 mrsam Exp $
#
# Copyright 2000-2005 Double Precision, Inc. See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored. Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited. Multiline variable contents,
# with the \ continuation character, are not allowed. Everything must
# fit on one line. Do not use any additional whitespace for indentation,
# or anything else.

##NAME: authmodulelist:2
#
# The authentication modules that are linked into authdaemond. The
# default list is installed. You may selectively disable modules simply
"/usr/local/etc/authlib/authdaemonrc" 139 lines, 4346 characters
##VERSION: $Id: authdaemonrc.in,v 1.13 2005/10/05 00:07:32 mrsam Exp $
#
# Copyright 2000-2005 Double Precision, Inc. See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored. Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited. Multiline variable contents,
# with the \ continuation character, are not allowed. Everything must
# fit on one line. Do not use any additional whitespace for indentation,
# or anything else.

##NAME: authmodulelist:2
#
# The authentication modules that are linked into authdaemond. The
# default list is installed. You may selectively disable modules simply
# by removing them from the following list. The available modules you
# can use are: authuserdb authvchkpw authpam authldap authmysql authpgsql

authmodulelist="authuserdb authvchkpw authpam authldap authmysql authpgsql"

##NAME: authmodulelistorig:3
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authuserdb authvchkpw authpam authldap authmysql authpgsql"

##NAME: daemons:0
#
# The number of daemon processes that are started. authdaemon is typically
# installed where authentication modules are relatively expensive: such
# as authldap, or authmysql, so it's better to have a number of them running.
# PLEASE NOTE: Some platforms may experience a problem if there's more than
# one daemon. Specifically, SystemV derived platforms that use TLI with
# socket emulation. I'm suspicious of TLI's ability to handle multiple
# processes accepting connections on the same filesystem domain socket.
#
# You may need to increase daemons if as your system load increases. Symptoms
# include sporadic authentication failures. If you start getting
# authentication failures, increase daemons. However, the default of 5
# SHOULD be sufficient. Bumping up daemon count is only a short-term
# solution. The permanent solution is to add more resources: RAM, faster
# disks, faster CPUs...

daemons=5

##NAME: authdaemonvar:2
#
# authdaemonvar is here, but is not used directly by authdaemond. It's
# used by various configuration and build scripts, so don't touch it!
##NAME: DEFAULTOPTIONS:0
#
# A comma-separated list of option=value pairs. Each option is applied
# to an account if the account does not have its own specific value for
# that option. So for example, you can set
# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
# and then enable webmail and/or imap on individual accounts by setting
# disablewebmail=0 and/or disableimap=0 on the account.

DEFAULTOPTIONS="wbnodsn=1"

##NAME: LOGGEROPTS:0
#
# courierlogger(1) options, e.g. to set syslog facility
#

LOGGEROPTS=""

##NAME: LDAP_TLS_OPTIONS:0
#
# Options documented in ldap.conf(5) can be set here, prefixed with 'LDAP'.
# Examples:
#
#LDAPTLS_CACERT=/path/to/cacert.pem
#LDAPTLS_REQCERT=demand
#LDAPTLS_CERT=/path/to/clientcert.pem
#LDAPTLS_CERT=/path/to/clientcert.pem
#LDAPTLS_KEY=/path/to/clientkey.pem

Добавлено: 2007-05-30 14:26:48
dikens3
У тебя пользователи/пароли где хранятся? Системные/mysql и т.п. ?

Добавлено: 2007-05-30 15:37:53
iTango
человек, который подымал почтовый сервер, организовал так, что пользователей нужно создавать так:

Юзеры:

adduser -g mail -s nologin :idea:

...и так далее

Добавлено: 2007-05-30 16:37:08
dikens3
Блин, не делал с системными. Может народ что подскажет.

Перезапускать сервак пробовал?

Проверяй authdaemond как работает.
Не работает со всеми пользователями?

Добавлено: 2007-05-30 17:11:33
iTango
перезапускал - НИФИГА!.. глюк у всех юзеров!..

в логах нашел точное время, когда pop3d начал выдавать ошибку:

...

May 29 09:57:04 www spamd[474]: prefork: child states: BI
May 29 09:57:05 www spamd[595]: spamd: identified spam (11.6/5.0) for root:58 in 6.1 seconds, 3184 bytes.
May 29 09:57:05 www spamd[595]: spamd: result: Y 11 - BAYES_99,HTML_MESSAGE,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E8_51_100,RAZOR2_CHECK,RCVD_IN_BL_SPAMCOP_NET,URIBL_JP_SURBL scantime=6.1,size=3184,user=root,uid=58,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=50208,mid=<060060884.80043372033731@thhebat.net>,bayes=1,autolearn=no
May 29 09:57:05 www postfix/local[695]: A4E812BD857: to=<neli@gerbor.com.ua>, orig_to=<nelja@gerbor.com.ua>, relay=local, delay=6.5, delays=0.12/0.13/0/6.2, dsn=2.0.0, status=sent (delivered to command: /usr/local/bin/procmail -a "$EXTENSION")
May 29 09:57:05 www postfix/qmgr[567]: A4E812BD857: removed
May 29 09:57:05 www spamd[474]: prefork: child states: II
May 29 09:57:19 www pop3d: chdir Maildir: No such file or directory
May 29 09:58:06 www postfix/smtpd[690]: connect from cp48.agava.net[89.108.66.177]
May 29 09:58:06 www postfix/smtpd[690]: NOQUEUE: reject: RCPT from cp48.agava.net[89.108.66.177]: 550 5.1.1 <airzena@gerbor.com.ua>: Recipient address rejected: User unknown in local recipient table; from=<> to=<airzena@gerbor.com.ua> proto=ESMTP helo=<cp48.agava.net>
May 29 09:58:06 www postfix/smtpd[690]: disconnect from cp48.agava.net[89.108.66.177]
May 29 09:58:17 www pop3d: chdir Maildir: No such file or directory

...

а толку?.. :(

может послушать совета lissyara и поставить вот это:

http://www.lissyara.su/?id=1187

...но там на Мускуле завязано, а это для меня проблемка!..

Чего посоветуете?..

Добавлено: 2007-05-30 22:50:21
Alex Keda
в том же разделе есть с системными пользователями.
соседняя тема в этом же форуме.