Автор: kovaroman
Дата сообщения: 26.10.2012 12:30
Помогите пожалуйста разобраться с таким вот делом:
Стоит Kerio Connect 7.4.2 на Ubuntu Server (эта же машина у меня через сквид раздает инет в сеть), почтовик-инетшлюз(если так можно назвать то, что у меня на одной машине) подключен в инет через роутер, в роутере почтовик добавил в DMZ зону, входящий канал на почтовик с роутера имеет ІР 192.168.0.2 соответственно шлюз для выхода почтовика в инет - 192.168.0.1
Локальная сеть с почтовика-шлюза идет 192.168.1.0/24
Настроил все DNS,PTR и SPF записи. Почта пошла, все заработало, но со временем мне начали жалеться сотруднники, что не все письма доходят, и действительно, есть проблема, у меня после комманды DATA при приеме почты сервер начинает искать DNS и PTR записи локальних пользователей по локальных ІР.
Больше всего искало запись 192.168.0.1. Добавил на почтовике в /etc/hosts -> 192.168.0.1 mail.xxxx.com (адрес свого почтовика внешний), запись находит но снова ищет, клиент висит в ожидании, потом по таймауту рвет соединение. Письма не приходят.
Такая ситуация не со всеми письмами! Особо не приходят письма сгенерированные Sendmail с хостинга для доставки сообщений с сайта.
Вот пример лога Debug со включенными сообщениями SMTP server, POP3 server, SMTP Client, Mailing list processing, Sieve filters, Spam Filter, SPF Record lookup, Spam Assassin, DNS ressolver, Configuration connections, Domain rename, Connection pool:
Код: [26/Oct/2012 11:46:15][3045] {smtps} Task 672 handler BEGIN
[26/Oct/2012 11:46:15][3045] {dns} Searching DNS for PTR records for IP address 77.87.192.129
[26/Oct/2012 11:46:15][3045] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:15][3045] {dns} Got answer
[26/Oct/2012 11:46:15][3045] {dns} Valid answer arrived
[26/Oct/2012 11:46:15][3045] {dns} PTR record: IP=77.87.192.129, name=nvh35.mirohost.net
[26/Oct/2012 11:46:15][3045] {smtps} Task 672 handler starting
[26/Oct/2012 11:46:15][3045] {smtps} SMTP server session begin; client connected from nvh35.mirohost.net:49415
[26/Oct/2012 11:46:15][3045] {smtps} Sent SMTP greeting to nvh35.mirohost.net:49415
[26/Oct/2012 11:46:15][3045] {smtps} Command EHLO nvh35.mirohost.net
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to EHLO: 250 mail.мой домен.com ...
[26/Oct/2012 11:46:15][3045] {smtps} Command STARTTLS
[26/Oct/2012 11:46:15][3045] {smtps} Successfully switched to TLS mode
[26/Oct/2012 11:46:15][3045] {smtps} Command EHLO nvh35.mirohost.net
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to EHLO: 250 mail.мой домен.com ...
[26/Oct/2012 11:46:15][3045] {smtps} Command MAIL FROM:<php-sender@undeliver.mirohost.net>
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to MAIL: 250 2.1.0 Sender <php-sender@undeliver.mirohost.net> ok
[26/Oct/2012 11:46:15][3045] {smtps} Command RCPT TO:<ххххх@мой домен.com>
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to RCPT: 250 2.1.5 Recipient <ххххх@мой домен.com> ok (local)
[26/Oct/2012 11:46:15][3045] {smtps} Command RCPT TO:<ууууу@мой домен.com>
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to RCPT: 250 2.1.5 Recipient <ууууу@мой домен.com> ok (local)
[26/Oct/2012 11:46:15][3045] {smtps} Command RCPT TO:<ввввв@мой домен.com>
[26/Oct/2012 11:46:15][3045] {smtps} Sent reply to RCPT: 250 2.1.5 Recipient <ввввв@мой домен.com> ok (local)
[26/Oct/2012 11:46:15][3045] {smtps} Command DATA
[26/Oct/2012 11:46:19][2626] {dns} Searching DNS for PTR records for IP address 95.103.120.173
[26/Oct/2012 11:46:19][2626] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:19][2626] {dns} Got answer
[26/Oct/2012 11:46:19][2626] {dns} Valid answer arrived
[26/Oct/2012 11:46:19][2626] {dns} PTR record: IP=95.103.120.173, name=bband-dyn173.95-103-120.t-com.sk
[26/Oct/2012 11:46:35][2054] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:46:35][2054] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:35][2054] {dns} Got answer
[26/Oct/2012 11:46:35][2054] {dns} Valid answer arrived
[26/Oct/2012 11:46:35][2054] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:46:40][3869] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:46:40][3869] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:40][3869] {dns} Got answer
[26/Oct/2012 11:46:40][3869] {dns} Valid answer arrived
[26/Oct/2012 11:46:40][3869] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:46:40][2966] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:46:40][2966] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:40][2966] {dns} Got answer
[26/Oct/2012 11:46:40][2966] {dns} Valid answer arrived
[26/Oct/2012 11:46:40][2966] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:46:40][3613] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:46:40][3613] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:40][3613] {dns} Got answer
[26/Oct/2012 11:46:40][3613] {dns} Valid answer arrived
[26/Oct/2012 11:46:40][3613] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:46:40][2626] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:46:40][2626] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:40][2626] {dns} Got answer
[26/Oct/2012 11:46:40][2626] {dns} Valid answer arrived
[26/Oct/2012 11:46:40][2626] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:46:55][4010] {dns} Searching DNS for PTR records for IP address 192.168.1.80
[26/Oct/2012 11:46:55][4010] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:46:55][4010] {dns} Got answer
[26/Oct/2012 11:46:55][4010] {dns} Host not found
[26/Oct/2012 11:47:05][4009] {dns} Searching DNS for PTR records for IP address 192.168.1.80
[26/Oct/2012 11:47:05][4009] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:05][4009] {dns} Got answer
[26/Oct/2012 11:47:05][4009] {dns} Host not found
[26/Oct/2012 11:47:05][4010] {dns} Searching DNS for PTR records for IP address 192.168.1.80
[26/Oct/2012 11:47:05][4010] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:05][4010] {dns} Got answer
[26/Oct/2012 11:47:05][4010] {dns} Host not found
[26/Oct/2012 11:47:15][3869] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:15][3869] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:15][3869] {dns} Got answer
[26/Oct/2012 11:47:15][3869] {dns} Valid answer arrived
[26/Oct/2012 11:47:15][3869] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:15][2966] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:15][2966] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:15][2966] {dns} Got answer
[26/Oct/2012 11:47:15][2966] {dns} Valid answer arrived
[26/Oct/2012 11:47:15][2966] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:43][2054] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:43][2054] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:43][2054] {dns} Got answer
[26/Oct/2012 11:47:43][2054] {dns} Valid answer arrived
[26/Oct/2012 11:47:43][2054] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:43][3613] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:43][3613] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:43][3613] {dns} Got answer
[26/Oct/2012 11:47:43][3613] {dns} Valid answer arrived
[26/Oct/2012 11:47:43][3613] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:52][2626] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:52][3869] {dns} Searching DNS for PTR records for IP address 192.168.0.1
[26/Oct/2012 11:47:52][2626] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:52][3869] {dns} Querying server no. 1, address 127.0.0.1
[26/Oct/2012 11:47:52][2626] {dns} Got answer
[26/Oct/2012 11:47:52][3869] {dns} Got answer
[26/Oct/2012 11:47:52][3869] {dns} Valid answer arrived
[26/Oct/2012 11:47:52][2626] {dns} Valid answer arrived
[26/Oct/2012 11:47:52][2626] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:52][3869] {dns} PTR record: IP=192.168.0.1, name=mail.мой домен.com
[26/Oct/2012 11:47:52][2966] {dns} Searching DNS for PTR records for IP address 192.168.0.1
и так пока не отвальтся.....