Всем привет!Решил настроить резервный mx сервер, и возникла неожиданная проблема: mail for mail2.kreine.com loops back to myself.
Поясню: mail.kreine.com - основной сервак
mail2.kreine.com - резервный сервак
Вырубаю mail.kreine.com и пытаюсь слать письмо с яндекса на мой домен. Оно возвращается тут же на яндекс с формулировкой mail for mail2.kreine.com loops back to myself.
В логах примерно следующее:
May 2 22:09:46 mail2 postfix/qmgr[8570]: 67141E0E6826: from=<m.kreine@yandex.ru>, size=7007, nrcpt=1 (queue active)
May 2 22:09:46 mail2 postfix/smtp[8600]: 8008BE0E68E0: to=<m.kreine@yandex.ru>, relay=none, delay=0.03, delays=0/0.02/0/0, dsn=4.3.5, status=deferred (mail for mail2.kreine.com loops back to myself)
May 2 22:10:26 mail2 postfix/qmgr[8764]: 316E6E0E6826: from=<m.kreine@yandex.ru>, size=6676, nrcpt=1 (queue active)
May 2 22:10:27 mail2 postfix/smtp[8791]: 42A15E0E68E1: to=<m.kreine@yandex.ru>, relay=mx.yandex.ru[87.250.250.89]:25, delay=0.77, delays=0/0.02/0.24/0.51, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued on mxfront1g.mail.yandex.net as 1462216227-ipEceRxnFA-AQCWdOFi)
May 2 22:11:03 mail2 postfix/qmgr[8952]: 3E04DE0E6826: from=<m.kreine@yandex.ru>, size=8510, nrcpt=1 (queue active)
May 2 22:11:04 mail2 postfix/smtp[8979]: 4DA78E0E68E1: to=<m.kreine@yandex.ru>, relay=mx.yandex.ru[77.88.21.89]:25, delay=0.85, delays=0/0.02/0.2/0.62, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued on mxfront6o.mail.yandex.net as 1462216264-fXggZ7NrYg-B3Mqevxq)
Вот это postconf -n резервного сервака.
postconf -n
alias_maps = hash:/etc/aliases
anvil_rate_time_unit = 60s
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
fallback_relay = mail2.kreine.com
inet_protocols = ipv4
local_recipient_maps =
mailbox_size_limit = 0
maximal_queue_lifetime = 1d
message_size_limit = 1572864000
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = mail2.kreine.com
myhostname = mail2.kreine.com
mynetworks = 192.168.0.0/16, 127.0.0.0/8, kreine.com
myorigin = $mydomain
non_smtpd_milters = inet:localhost:8891
relay_domains = mysql:/etc/postfix/mysql/relay_domains.cf
relay_transport = relay
relayhost = mail.kreine.com
smtp_bind_address = 212.24.101.131
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_connection_count_limit = 20
smtpd_client_connection_rate_limit = 30
smtpd_client_event_limit_exceptions = 127.0.0.0/8
smtpd_client_message_rate_limit = 30
smtpd_client_restrictions = reject_unknown_client_hostname
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, reject_multi_recipient_bounce,
smtpd_delay_reject = yes
smtpd_discard_ehlo_keywords = etrn, silent-discard
smtpd_error_sleep_time = 20
smtpd_forbidden_commands = CONNECT GET POST
smtpd_hard_error_limit = 15
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname, reject_invalid_helo_hostname, check_helo_access hash:/etc/postfix/helo_access
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = reject_unauth_destination, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_multi_recipient_bounce, permit_mynetworks, permit_sasl_authenticated, reject_invalid_hostname,check_recipient_access hash:/etc/postfix/recipient_access
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_sender_domain, reject_non_fqdn_sender, check_sender_access hash:/etc/postfix/sender_access
smtpd_soft_error_limit = 10
smtpd_tls_cert_file = /etc/postfix/certs/cert.pem
smtpd_tls_key_file = /etc/postfix/certs/key.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
soft_bounce = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql/virtual_alias_maps.cf,mysql:/etc/postfix/mysql/virtual_alias_domain_maps.cf
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 1001
virtual_transport = dovecot
virtual_uid_maps = static:1001
Уже переигрался со столькими вариантами, но.... что-то никак не могу понять, в чём проблема.
Адрес, на который шлю из яндекса, на резервном хосте НЕ создан, только домен в postfixadmin, в настройках которого отмечено, что данный mx является резервным.