Postfix. Не доходят оповещения от живосайта

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

Модератор: xM

Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
lovescan
рядовой
Сообщения: 10
Зарегистрирован: 2019-01-28 12:41:02

Postfix. Не доходят оповещения от живосайта

Непрочитанное сообщение lovescan » 2019-01-28 12:50:29

Добрый день!

Подскажите, пожалуйста, почему письма "оповещения" живосайта могут не доходить до ящика (Amavisd отключен):

Linux mail.----------.ru 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

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

Jan 27 10:20:07 mail postfix/smtpd[31513]: connect from a6-23.smtp-out.eu-west-1.amazonses.com[54.240.6.23]
Jan 27 10:20:07 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 27 10:20:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 27 10:20:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Jan 27 10:20:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 27 10:20:07 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 27 10:20:07 mail dovecot: auth: Debug: auth client connected (pid=31513)
Jan 27 10:20:07 mail postfix/smtpd[31513]: setting up TLS connection from a6-23.smtp-out.eu-west-1.amazonses.com[54.240.6.23]
Jan 27 10:20:07 mail postfix/smtpd[31513]: Anonymous TLS connection established from a6-23.smtp-out.eu-west-1.amazonses.com[54.240.6.23]: TLSv1.2 with cipher AES128-SHA256 (128/128 bits)
Jan 27 10:20:08 mail postfix/smtpd[31513]: 266E82A0BF2: client=a6-23.smtp-out.eu-west-1.amazonses.com[54.240.6.23]
Jan 27 10:20:08 mail postfix/cleanup[31520]: 266E82A0BF2: message-id=<010201688e2e0315-108d1831-f789-4dcb-8615-b8adf9050cd9-000000@eu-west-1.amazonses.com>
Jan 27 10:20:08 mail postfix/qmgr[14299]: 266E82A0BF2: from=<010201688e2e0315-108d1831-f789-4dcb-8615-b8adf9050cd9-000000@mailer.jivosite.com>, size=5618, nrcpt=1 (queue active)
Jan 27 10:20:08 mail dovecot: auth: Debug: master in: USER#0111#011admin@---------------.ru#011service=lda
Jan 27 10:20:08 mail dovecot: auth: Debug: userdb-cache(admin@---------------.ru): miss
Jan 27 10:20:08 mail dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
Jan 27 10:20:08 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so
Jan 27 10:20:08 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_mysql.so
Jan 27 10:20:08 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
Jan 27 10:20:08 mail dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so
Jan 27 10:20:08 mail dovecot: auth: mysql: Connected to localhost (mail)
Jan 27 10:20:08 mail dovecot: auth: Debug: sql(admin@---------------.ru): SELECT '/mnt/hd1/vmail/---------------.ru/admin' as home, 'maildir:/mnt/hd1/vmail/---------------.ru/admin'as mail, 1150 AS uid, 12 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = 'admin@---------------.ru' AND active = '1'
Jan 27 10:20:08 mail dovecot: lda: Debug: auth input: admin@---------------.ru home=/mnt/hd1/vmail/---------------.ru/admin mail=maildir:/mnt/hd1/vmail/---------------.ru/admin uid=1150 gid=12 quota=dirsize:storage=0
Jan 27 10:20:08 mail dovecot: auth: Debug: master out: USER#0111#011admin@---------------.ru#011home=/mnt/hd1/vmail/---------------.ru/admin#011mail=maildir:/mnt/hd1/vmail/---------------.ru/admin#011uid=1150#011gid=12#011quota=dirsize:storage=0
Jan 27 10:20:08 mail dovecot: lda: Debug: Added userdb setting: mail=maildir:/mnt/hd1/vmail/---------------.ru/admin
Jan 27 10:20:08 mail dovecot: lda: Debug: Unknown userdb setting: plugin/quota=dirsize:storage=0
Jan 27 10:20:08 mail dovecot: lda(admin@---------------.ru): Debug: Effective uid=1150, gid=12, home=/mnt/hd1/vmail/---------------.ru/admin
Jan 27 10:20:08 mail dovecot: lda(admin@---------------.ru): Debug: maildir++: root=/mnt/hd1/vmail/---------------.ru/admin, index=, control=, inbox=/mnt/hd1/vmail/---------------.ru/admin
Jan 27 10:20:08 mail dovecot: lda(admin@---------------.ru): Debug: none: root=, index=, control=, inbox=
Jan 27 10:20:08 mail dovecot: lda(admin@---------------.ru): msgid=<010201688e2e0315-108d1831-f789-4dcb-8615-b8adf9050cd9-000000@eu-west-1.amazonses.com>: saved mail to INBOX
Jan 27 10:20:08 mail postfix/pipe[31522]: 266E82A0BF2: to=<admin@---------------.ru>, relay=dovecot, delay=0.6, delays=0.42/0.01/0/0.17, dsn=2.0.0, status=sent (delivered via dovecot service)
[b]Jan 27 10:20:08 mail postfix/qmgr[14299]: 266E82A0BF2: removed[/b]
Jan 27 10:20:28 mail postfix/smtpd[31513]: disconnect from a6-23.smtp-out.eu-west-1.amazonses.com[54.240.6.23]
postfix.conf:

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

soft_bounce = no
queue_directory = /var/spool/postfix
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
inet_interfaces = all
myhostname = mail.--------.ru
mydomain = mail.--------.ru
myorigin = $mydomain
mydestination = $myhostname,localhost.$myhostname,localhost
local_recipient_maps = $virtual_mailbox_maps, $virtual_alias_maps, 
unknown_local_recipient_reject_code = 550
smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.crt
mynetworks = 192.168.1.0/24, 127.0.0.0/8
smtpd_delay_reject = yes
smtpd_helo_restrictions =
    # отсекаем кривые адреса
    # reject_invalid_hostname,
    # разрешаем "своим" почти все
    permit_mynetworks,
    # требуем отправителя представиться доменным именем,
    # имеющим полноценный IP-адрес
    # если все вышеперечисленное подошло, идем дальше
    permit
relay_domains = $transport_maps
alias_maps = hash:/etc/aliases
disable_vrfy_command = yes
smtpd_helo_required = yes
alias_database = hash:/etc/aliases
mail_spool_directory = /var/mail
mailbox_size_limit = 102400000
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
mailq_path = /usr/bin/mailq
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/local/man
config_directory = /etc/postfix
virtual_mailbox_domains = mysql:$config_directory/sql/vdomains.cf
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = mysql:$config_directory/sql/vmailbox.cf
virtual_alias_maps = mysql:$config_directory/sql/valias.cf
virtual_minimum_uid = 1150
virtual_uid_maps = static:1150
virtual_gid_maps = static:12
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
body_checks = pcre:/etc/postfix/body_checks
header_checks = regexp:/etc/postfix/header_checks
#header_checks = pcre:/etc/postfix/header_cheks
smtp_header_checks = pcre:/etc/postfix/header_checks

###################TLS######################
smtpd_use_tls = yes
smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
smtpd_tls_key_file = /etc/postfix/certs/key.pem
smtpd_tls_cert_file = /etc/postfix/certs/cert.pem
tls_random_source = dev:/dev/urandom
###################TLS######################

smtpd_sasl_auth_enable = yes
#smtpd_sasl_exceptions_networks = $mynetworks
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth
smtpd_recipient_restrictions = permit_mynetwork,
smtpd_sender_restrictions = permit_sasl_authenticated,
                            permit_mynetworks,
                            #check_sender_access hash:/etc/postfix/blacklist,
                            reject_unauth_destination,
                            reject_non_fqdn_recipient,
                            reject_unverified_recipient,
                            #reject_unknown_helo_hostname
                            reject_rbl_client cbl.abuseat.org,
                            reject_rbl_client dialups.mail-abuse.org,
smtpd_recipient_restrictions = permit_mynetworks,
                               permit_sasl_authenticated,
                               reject_unauth_destination,
                               #check_policy_service unix:/var/spool/postfix/postgrey/socket,
                               reject_non_fqdn_recipient,
                               reject_unverified_recipient,
                               reject_rbl_client cbl.abuseat.org,
                               reject_rbl_client dialups.mail-abuse.org
smtpd_data_restrictions = reject_unauth_pipelining,
                          reject_multi_recipient_bounce,
                          permit
smtpd_reject_unlisted_recipient = yes
#address_verify_sender = $double_bounce_sender
#content_filter = scan:127.0.0.1:10025
#content_filter=amavisfeed:[127.0.0.1]:10024
message_size_limit = 102400000
#DKIM
#milter_protocol = 2
#smtpd_milters           = inet:127.0.0.1:8891
#non_smtpd_milters       = $smtpd_milters
#milter_default_action   = accept
dovecot.conf

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

# 2.0.9: /etc/dovecot/dovecot.conf

auth_cache_size = 30 M

auth_cache_ttl = 1 days

auth_debug = yes

auth_debug_passwords = yes

auth_mechanisms = plain login cram-md5

auth_verbose = yes

base_dir = /var/run/dovecot/

disable_plaintext_auth = no

ssl = yes

ssl_cert = </etc/postfix/certs/cert.pem

ssl_key = </etc/postfix/certs/key.pem

first_valid_uid = 1150

last_valid_uid = 1150

log_timestamp = %Y-%m-%d %H:%M:%S

mail_debug = yes

mail_location = maildir:/mnt/hd1/vmail/%d/%u

passdb {

args = /etc/dovecot-sql.conf

driver = sql

}

protocols = imap pop3

service auth {

unix_listener /var/spool/postfix/private/dovecot-auth {

user = postfix

group = postfix

mode = 0660

}

unix_listener auth-master {

user = vmail

group = mail

mode = 0660

}

unix_listener auth-userdb {

user = vmail

group = mail

mode = 0660

}

#user=root

}

service imap-login {

executable = /usr/libexec/dovecot/imap-login

inet_listener imap {

address = *

port = 143

}

inet_listener imaps {

port = 993

ssl = yes

}

}

service imap {

executable = /usr/libexec/dovecot/imap

idle_kill = 600

}

service pop3-login {

executable = /usr/libexec/dovecot/pop3-login

inet_listener pop3 {

address = *

port = 110

}

}

service pop3 {

executable = /usr/libexec/dovecot/pop3

}

userdb {

args = /etc/dovecot-sql.conf

driver = sql

}

protocol lda {

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

postmaster_address = spam@--------.ru

}
Заранее признателен

Хостинговая компания 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/

lovescan
рядовой
Сообщения: 10
Зарегистрирован: 2019-01-28 12:41:02

Postfix. Не доходят оповещения от живосайта

Непрочитанное сообщение lovescan » 2019-02-07 10:29:45

Прекрасный мертвый посещаемый чайниками форум)

Решение оказалось глупым.
Труба лежала на столе и забирала сообщения в папку Spam))) Причем к себе в память. На сервере папки спам нет))

snorlov
подполковник
Сообщения: 3927
Зарегистрирован: 2008-09-04 11:51:25
Откуда: Санкт-Петербург

Postfix. Не доходят оповещения от живосайта

Непрочитанное сообщение snorlov » 2019-02-07 11:15:57

Я очень рад, что вы шевельнули извилинами...))))))