LINUX.ORG.RU
решено ФорумAdmin

Postfix, dns и прочие чудеса


0

1

Приветствую всех!

Наблюдаю весьма странную проблему. С почтового сервера не доходит почта до некоторых доменов. На моем сервере крутится Postfix+dovecot. В ответ на отправку письма на ряд доменов либо не приходит в ответ ничего, и почта не доставляется, либо приходит сообщение следующего содержания:

This is the mail system at host ntmr.ru.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<spirit@icgamma.ru>: host mx1.timeweb.ru[92.53.116.10] said: 535 5.7.0 Your
    ip blocked (Disabled 178.236.241.138 - contact support@timeweb.ru (reason: invalid or absent ptr)) (in reply to RCPT TO command)

C PTR вроде как все в порядке:

$ host 178.236.241.138
138.241.236.178.in-addr.arpa domain name pointer ntmr.ru.

$ host -t MX ntmr.ru
ntmr.ru mail is handled by 10 webm.ntmr.ru.


$ dig ntmr.ru

; <<>> DiG 9.7.0-P1 <<>> ntmr.ru
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40526
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ntmr.ru.                       IN      A

;; ANSWER SECTION:
ntmr.ru.                10000   IN      A       178.236.241.138

;; Query time: 58 msec
;; SERVER: 169.254.1.1#53(169.254.1.1)
;; WHEN: Thu Nov 18 13:57:37 2010
;; MSG SIZE  rcvd: 41

С конфигами постфикса - тоже.

$ postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_queue_lifetime = 1d
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
disable_vrfy_command = yes
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mailbox_size_limit = 1024000000
maximal_queue_lifetime = 3d
message_size_limit = 20480000
minimal_backoff_time = 180s
mydestination = 127.0.0.1
myhostname = webm.ntmr.ru
mynetworks = 127.0.0.0/8
myorigin = ntmr.ru
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
smtp_always_send_ehlo = yes
smtp_helo_timeout = 15s
smtp_rcpt_timeout = 15s
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Suse)
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_etrn_restrictions = reject
smtpd_hard_error_limit = 5
smtpd_helo_required = yes
smtpd_recipient_limit = 200
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_timeout = 30s
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:901
virtual_mailbox_base = /srv/vmail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_transport = dovecot
virtual_uid_maps = static:901

Тем не менее, почта не ходит. Чудеса, товарищи. Самое забавное, что практически везде отправляется без проблем, но вот на ряд пакостных доменов - не уходит. С «пакостных» доменов почта принимается сервером на ура.

Поможите чем можите ! (с)

Заранее спасибо.

айпи должен указывать на имя MX записи а не на домен

178.236.241.138 IN PTR webm.ntmr.ru.

guyvernk
()

>В ответ на отправку письма на ряд доменов либо не приходит в ответ ничего, и почта не доставляется, либо приходит сообщение следующего содержания

Нужно различать 2 случая:
1) удалённый сервер не принял почту с твоего сервера. Это твоя проблема. Смотри логи на предмет того, что сказал удалёный сервер.

2) удалённый сервер приял почту; дальнейшая доставка - его проблема.

host mx1.timeweb.ru[92.53.116.10] said: 535 5.7.0 Your

ip blocked (Disabled 178.236.241.138 - contact support@timeweb.ru (reason: invalid or absent ptr)) (in reply to RCPT TO command)

Что здесь не понятно? Некорректный ptr

$ dig -t PTR +short 138.241.236.178.in-addr.arpa
ntmr.ru.
$ dig +short ntmr.ru.
89.111.176.101
$ dig -t PTR +short 101.176.111.89.in-addr.arpa
fe37-1.hc.ru.

router ★★★★★
()
Ответ на: комментарий от router

Отправил провайдеру заявку на изменение PTR. Будем ждать)

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