Не работает пересылка почты

EXIM, sendmail, postfix, Dovecot и прочие. Решение проблем связанных с работой электронной почты

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
mannerghaim
проходил мимо
Сообщения: 1
Зарегистрирован: 2011-11-25 9:08:48

Не работает пересылка почты

Непрочитанное сообщение mannerghaim » 2011-11-25 9:44:10

Привет всем. Столкнулся со следующим:
есть домен-контроллер на Windows Server 2003, есть Linux-Server (AltLinux) на котором установлен почтовый сервер (postfix+dovecot) + web-интерфейс Roundcube Webmail. Почта внутренняя, выхода в интернет не имеет. Пользователи заходят в почту через роундкуб под своими доменными учетными записями, созданными в Active Directory (с помощью Ldap). При отправке письма, письмо отправляется адресату, и роундкуб пишет что письмо отправлено, но до адресата письмо не доходит. В чем может быть сия причина ? Подскажите пожалуйста, проект горит :(

Логи:
maillog

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

Nov 25 11:39:56 mail1 postfix/smtpd[5698]: connect from mail1.npomash.dom[192.168.1.8]
Nov 25 11:39:57 mail1 postfix/smtpd[5698]: 071FC20F76: client=mail1.npomash.dom[192.168.1.8]
Nov 25 11:39:57 mail1 postfix/cleanup[5702]: 071FC20F76: message-id=<47ee2cc192b4c6b5057f37fc5cb6014c@npomash.dom>
Nov 25 11:39:57 mail1 postfix/qmgr[4235]: 071FC20F76: from=<12831@npomash.dom>, size=972, nrcpt=1 (queue active)
Nov 25 11:39:57 mail1 pipe[5705]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:39:57 mail1 postfix/pipe[5704]: 071FC20F76: to=<12787@npomash.dom>, relay=dovecot, delay=0.21, delays=0.11/0.03/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory )
Nov 25 11:39:57 mail1 postfix/smtpd[5698]: disconnect from mail1.npomash.dom[192.168.1.8]
mail/errors

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

ov 25 10:58:53 mail1 postfix/qmgr[5280]: fatal: /etc/postfix/main.cf, line 121: missing '=' after attribute name: "delivery loops"
Nov 25 10:59:31 mail1 postfix/trivial-rewrite[5320]: fatal: /etc/postfix/main.cf, line 121: missing '=' after attribute name: "delivery loops"
Nov 25 10:59:38 mail1 postfix[5487]: fatal: /etc/postfix/main.cf, line 121: missing '=' after attribute name: "delivery loops"
Nov 25 10:59:54 mail1 postfix/qmgr[6218]: fatal: /etc/postfix/main.cf, line 121: missing '=' after attribute name: "delivery loops"
Nov 25 11:02:27 mail1 postfix/postfix-script[3975]: fatal: the Postfix mail system is not running
Nov 25 11:02:30 mail1 pipe[4240]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4243]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4245]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4247]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4248]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4249]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4250]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4253]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4251]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4255]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4257]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:02:30 mail1 pipe[4258]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:03:14 mail1 pipe[4292]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:07:30 mail1 pipe[4558]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:07:30 mail1 pipe[4560]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:12:30 mail1 pipe[4739]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:12:30 mail1 pipe[4740]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:12:30 mail1 pipe[4743]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:12:30 mail1 pipe[4746]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:12:30 mail1 pipe[4749]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:22:30 mail1 pipe[5081]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
Nov 25 11:39:57 mail1 pipe[5705]: fatal: pipe_command: execvp /usr/lib/dovecot/deliver: No such file or directory
КОНФИГИ
Postfix. Main.cf

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

]
myhostname = mail1.npomash.dom
mydomain = npomash.dom
myorigin = $mydomain
inet_interfaces = all
mydestination = $nyhostname, localhost, localhost.localdomain,localhost.$myhostname
unknown_local_recipient_reject_code = 550
mynetworks = 192.168.1.0/24
relay_domains =
relayhost =
virtual_mailbox_base = /var/vmail/
virtual_alias_maps = ldap:/etc/postfix/ad_virtual_group_maps.cf
virtual_mailbox_domains = npomash.dom
virtual_mailbox_maps = ldap:/etc/postfix/ad_virtual_mailbox_maps.cf
smtpd_sender_login_maps = ldap:/etc/postfix/ad_sender_login_maps.cf
virtual_transport =  dovecot
transport_maps = hash:/etc/postfix/transport
recipient_delimiter = +
home_mailbox = Maildir/
mailbox_command = /usr/libexec/dovecot/deliver
mailbox_transport = dovecot
smtpd_banner = $myhostname ESMTP $mail_name (AltLinux)
message_size_limit = 15728640
mailbox_size_limit = 0
master.cf

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

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
#pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
	-o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       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/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix	-	n	n	-	2	pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

# Bypass checks for internally generated mail.
pickup    fifo  n       -       n       60      1       pickup
  -o content_filter=
submission inet n       -       n       -       -       smtpd
  -o smtpd_enforce_tls=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026

smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026
# Use dovecot deliver program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain}
smtp-amavis unix -  -   -   -   2  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
DOVECOT
dovecot.conf

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

protocols = imap pop3 lmtp
base_dir = /var/run/dovecot/
login_greeting = Dovecot ready.
dict {
  #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  expire = db:/var/lib/dovecot/expire/expire.db
include conf.d/*.conf
conf.d/10-auth.conf

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

disable_plaintext_auth = no
#auth_realms =
auth_default_realm = npomash.dom
auth_username_chars = abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890.-_@
#auth_master_user_separator =
#auth_anonymous_username = anonymous
#auth_worker_max_count = 30
auth_gssapi_hostname ="$ALL"
# ntlm_auth helper. <doc/wiki/Authentication/Mechanisms/Winbind.txt>
#auth_use_winbind = no
#auth_winbind_helper_path = /usr/bin/ntlm_auth
#auth_failure_delay = 2 secs
#auth_ssl_require_client_cert = no
#auth_ssl_username_from_cert = no
auth_mechanisms = plain gssapi
#!include auth-deny.conf.ext
#!include auth-master.conf.ext
!include auth-gssapi.conf.ext
!include auth-system.conf.ext
!include auth-ldap.conf.ext
auth-ldap.conf.ext

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

# Authentication for LDAP users. Included from auth.conf.
passdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap.conf.ext
}
userdb {
  driver = ldap
  args = /etc/dovecot/dovecot-ldap-userdb.conf.ext
}
dovecot-ldap.conf.ext

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

hosts           = dc2011.npomash.dom:389
ldap_version    = 3
auth_bind       = yes
dn              = vmail
dnpass          = anti90180eB
base            = cn=users,dc=npomash,dc=dom
scope           = subtree
deref           = never
user_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_filter     = (&(userPrincipalName=%u)(objectClass=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
pass_attrs      = userPassword=password
default_pass_scheme = CRYPT
user_attrs      = =home=/var/vmail/vmail1/%Ld/%Ln/Maildir/,=mail=Maildir:/var/vmail/vmail1/%Ld/%Ln/Maildir/
10-mail.conf

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

## Mailbox locations and namespaces
namespace {
	type = private
	separator = /
	prefix = 
	inbox = yes
	}
namespace {
	type = shared
	separator = /
	prefix = Shared/%%u/
	location = maildir:/%%Lh/Maildir/:INDEX=/%%Lh/Maildir/Shared/%%u
	subscriptions = yes
	list = children
	}


mail_uid = 502
mail_gid = 502
mail_privileged_group = vmail
mail_access_groups = vmail
mail_fsync = optimized
mail_nfs_storage = no
mail_nfs_index = no
mail_temp_dir = /tmp

first_valid_uid = 502
last_valid_uid = 502

mail_max_keyword_length = 50
auth_socket_path = /var/run/dovecot/auth-master

plugin {
	autocreate = INBOX
	autocreate2 = sent
	autocreate3 = Drafts
	autocreate4 = Trash

	autosubscribe = INBOX
	autosubscribe2 = Sent
	autosubscribe3 = Drafts
	autosubscribe4 = Trash
}


mail_attachment_min_size = 50 M
Помогите пожалуйста, кто чем может. Сроки горят :(

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

mak_v_
проходил мимо

Re: Не работает пересылка почты

Непрочитанное сообщение mak_v_ » 2011-11-26 1:46:29

Из первого лога - ругня на транспорты - ковыряйте конфы постфикса

Аватара пользователя
Prince71
рядовой
Сообщения: 17
Зарегистрирован: 2011-07-02 14:08:51

Re: Не работает пересылка почты

Непрочитанное сообщение Prince71 » 2011-11-29 0:25:59

mak_v_ писал(а):Из первого лога - ругня на транспорты - ковыряйте конфы постфикса
+1

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

/usr/lib/dovecot/deliver: No such file or directory
PS: а он вообще запускается? В логах-то

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

Nov 25 10:59:54 mail1 postfix/qmgr[6218]: fatal: /etc/postfix/main.cf, line 121: missing '=' after attribute name: "delivery loops"
Nov 25 11:02:27 mail1 postfix/postfix-script[3975]: fatal: the Postfix mail system is not running
You don't know the Power of the Dark Side...