Postfix + ubuntu 10.10
Локально все работает, отсылает на почтовые ящики внешнего мира, но не получает.

Если для настройки я смотрел логи, то сейчас просто в ступоре не знаю куда даже смотреть ?

2

Также логи... как минимум, проверить, доходит ли до постфикса почта вообще

3

Да как бы логи молчат ?
Куда копать ?

4

в смысле молчат? если Вам кто-то отправляет письмо, то до постфикса не доходит совсем и в логах никак не отражается?

5

если да, проверяем сначала банальные вещи: открыт ли 25 порт на вход, проверяет записи ДНс, касающиеся настроек почты

6

host xxx.org
xxx.org has address A.B.C.D
xxx.org mail is handled by 10 MAIL.xxx.org.

пингуется ?
iptables не настраивал сервак девственный и кроме постфикса апачи и дэковера нечего нет.

да логи молчат

7

покажите хоть правила iptables

iptables -L -n -v

и да...
покажите нормальный вывод записей днс, а не огрызки

8

iptables -L -n -v

 Консоль:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination   

Как вывести нормальный вывод DNS ?

9

CyberTramp пишет:

Как вывести нормальный вывод DNS ?

у Вас было указано

host xxx.org
xxx.org has address A.B.C.D
xxx.org mail is handled by 10 MAIL.xxx.org.

отлично... а куда указывает mail.xxx.org из этого вывода не понятно

10

dig домен.org any

 Консоль:

; <<>> DiG 9.7.1-P2 <<>> домен.org any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16418
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 6, ADDITIONAL: 12

;; QUESTION SECTION:
;домен.org.            IN    ANY

;; ANSWER SECTION:
домен.org.        16177    IN    MX    10 MAIL.домен.org.
домен.org.        16177    IN    A    192.168.2.3

;; AUTHORITY SECTION:
org.            2908    IN    NS    b2.org.afilias-nst.org.
org.            2908    IN    NS    a0.org.afilias-nst.info.
org.            2908    IN    NS    b0.org.afilias-nst.org.
org.            2908    IN    NS    d0.org.afilias-nst.org.
org.            2908    IN    NS    a2.org.afilias-nst.info.
org.            2908    IN    NS    c0.org.afilias-nst.info.

;; ADDITIONAL SECTION:
a0.org.afilias-nst.info. 42655    IN    A    199.19.56.1
a0.org.afilias-nst.info. 41409    IN    AAAA    2001:500:e::1
a2.org.afilias-nst.info. 42262    IN    A    199.249.112.1
a2.org.afilias-nst.info. 41886    IN    AAAA    2001:500:40::1
b0.org.afilias-nst.org.    41425    IN    A    199.19.54.1
b0.org.afilias-nst.org.    42146    IN    AAAA    2001:500:c::1
b2.org.afilias-nst.org.    42601    IN    A    199.249.120.1
b2.org.afilias-nst.org.    42596    IN    AAAA    2001:500:48::1
c0.org.afilias-nst.info. 42497    IN    A    199.19.53.1
c0.org.afilias-nst.info. 41886    IN    AAAA    2001:500:b::1
d0.org.afilias-nst.org.    41634    IN    A    199.19.57.1
d0.org.afilias-nst.org.    41972    IN    AAAA    2001:500:f::1

;; Query time: 11 msec
;; SERVER: 213.140.211.226#53(213.140.211.226)
;; WHEN: Tue May 17 09:58:46 2011
;; MSG SIZE  rcvd: 469

11

Ок, из Вашего вывода я вижу, что почтовые сообщения должны идти на mail.домен.org, который и указан в MX, но вот что такое вообще mail.домен.org и какой у него айпишник я не вижу, т.е. почта просто идет никуда... точнее, ей некуда идти

12

Это связано с DNS настройками, но не догоняю что именно гуглить и править ?

13

нужно как минимум указать, где расположен mail.домен.org

14

nslookup домен.org

 Консоль:
Server:        ььь.яяя.211.226
Address:    ььь.яяя.226#53

Non-authoritative answer:
Name:    домен.org
Address: 192.168.2.3

IP мне не знаком ((

делал по ману http://leolik.blogspot.com/2009/01/dns.html

как только добовляю сраку в /etc/bind/named.conf

include "/etc/bind/myzones.conf";

bind9 не запускается

15

айпи того сервера, где стоит постфикс

16

Нет у сервера другой IP я не догоняю откуда берется этот ((((

17

что значит, откуда берется? днс кто настраивал?

18 (17.05.2011 18:26:36 отредактировано osorkon)

CyberTramp пишет:

Нет у сервера другой IP я не догоняю откуда берется этот ((((

у вас в описании зоны есть

 Консоль:
домен.org.        16177    IN    A    192.168.2.3

это для всех означает что нужно домен.org искать по такому то ip
к почте это не относится. для почты в описании зоны должна присутствовать МХ запись. для того что бы выяснить есть ли МХ запись необходимо (пардон пользуюсь nslookup ибо привычко)
 Консоль:
# nslookup
> set q=mx
> polyserv.dp.ua
Server:        195.248.191.67
Address:    195.248.191.67#53

Non-authoritative answer:
polyserv.dp.ua    mail exchanger = 5 kronus.polyserv.dp.ua.


таким не хитрым образом выясняем что МХ есть
теперь необходимо выяснить ip этого МХа
 Консоль:
> set q=a
> kronus.polyserv.dp.ua
Server:        195.248.191.67
Address:    195.248.191.67#53

Non-authoritative answer:
Name:    kronus.polyserv.dp.ua
Address: 195.248.168.186


другими словами ваша зона кроме существующих должна содержать еще А запись для вашего почтового сервера
вот как это описано у меня (т.е у моего провайдера относительно моего домена)
 Консоль:

;описание домена
polyserv.dp.ua.        3060    IN    A    80.91.176.135
;описание МХа для домена
polyserv.dp.ua.        863    IN    MX    5 kronus.polyserv.dp.ua.
...
;где МХ
kronus.polyserv.dp.ua.    2320    IN    A    195.248.168.186

Heresy grow from the idleness

19 (17.05.2011 18:54:00 отредактировано CyberTramp)

Спасибо ОГРМОНОЕ   oO ag   oO

 Консоль:
kronus.polyserv.dp.ua.    2320    IN    A    195.248.168.186

Именно это я и не знал и не мог догнать в чем проблема  ag
поправил буду рыть дальше  ag

Сообщение не получаю но логи пошли ag

Простите за наглость но може кто знает )))

 Консоль:

warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
connect from mail-ew0-f42.google.com[209.85.215.44]
fatal: non-null host address bits in "192.168.2.1/24", perhaps you should use "192.168.2.0/24" instead
warning: process /usr/lib/postfix/smtpd pid 6921 exit status 1

20

CyberTramp пишет:

Спасибо ОГРМОНОЕ

 Консоль:
fatal: non-null host address bits in "192.168.2.1/24", perhaps you should use "192.168.2.0/24" instead

логически неверная запись гдето в конфиге постфикса. должно быть либо 192.168.2.1/32 либо 192.168.2.0/24
смотрите конфиг. возможно это в параметре mynetworks?

Heresy grow from the idleness

21

Спасибо еще раз, уже кипели мозги  oO   :o  не соображал  ag
Все работает osorkon СПАСИБО я неделю бился  wink

22

CyberTramp, на будущее. Начальный метод поиска глюков с "недоходит почта"- перво наперво резолвится МХ запись, смотрится соответсвие А-записи. Далее ходим телнетом по днс-имени и айпишнику. Если все ок- организуем сессию ручками, анализируем полученый отлуп.

Black-metal ist krieg!
Hochlast ist krieg!

23

Hrafn пишет:

если да, проверяем сначала банальные вещи: открыт ли 25 порт на вход, проверяет записи ДНс, касающиеся настроек почты

Тоже банально - "tcpdump | grep :25" покажет а приходит ли вообще что либо на порт из внешнего мира.
Далее - проверить интернетный DNS. Определена ли в нем MX запись на этот хост. И определен ли он сам в Интернете.

24

Denlookh пишет:

CyberTramp, на будущее. Начальный метод поиска глюков с "недоходит почта"- перво наперво резолвится МХ запись, смотрится соответсвие А-записи. Далее ходим телнетом по днс-имени и айпишнику. Если все ок- организуем сессию ручками, анализируем полученый отлуп.

Добавлю - крайне желательно иметь не только прямую А-запись на свой почтарь, но и обратную PTR-запись. Ибо у корреспондента может быть настроен антиспамфильтр на предмет проверки соответствия этих записей. Это раз. Второе - крайне желательно в DNS определить правильно "свойство" spf. То есть заблокировать удаленным почтарям принимать почту от якобы твоего имени. От твоего имени должен отправлять почту только твой почтовый сервер. И никакой иной. Ну и неплохо завести DKIM-подпись. Всё это повышает шансы прохождения твоей почты в почтарях твоих корреспондентов. Меньше шансов попасть в спам на спамфильтрах.

25

Postfix не принимает почту извне, локальную почту и phpmail принимает а из интернета не хочет. При этом отлупы на адрес отправителя не отправляет.

tcpdump | grep :25

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
12:00:38.269256 IP crawl-66-249-79-74.googlebot.com.39917 > 188.226.171.64.http: Flags [P.], seq 1:254, ack 1, win 671, options [nop,nop,TS val 1465715042 ecr 2195161], length 253

12:01:20.220455 IP 188.226.171.64.smtp > mail-lb0-f196.google.com.61950: Flags [P.], seq 221:251, ack 42, win 57, options [nop,nop,TS val 2205693 ecr 1511568554], length 30
12:01:25.853776 ARP, Reply 188.226.169.1 is-at 00:00:5e:00:01:65 (oui Unknown), length 46
12:01:53.032826 IP 188.226.171.64.imaps > 91.210.111.9.61646: Flags [P.], seq 2164:2542, ack 620, win 65, options [nop,nop,TS val 2213896 ecr 4982950], length 378
12:02:25.545980 ARP, Reply 188.226.169.1 is-at 00:00:5e:00:01:65 (oui Unknown), length 46
12:02:42.503641 IP crawl-66-249-79-226.googlebot.com.49128 > 188.226.171.64.http: Flags [P.], seq 1:259, ack 1, win 671, options [nop,nop,TS val 1509239233 ecr 2226221], length 258
12:03:25.429116 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46
12:03:25.500217 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46
12:03:25.509339 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46
12:03:25.634476 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46
12:03:25.688977 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46
12:03:25.690518 ARP, Reply 188.226.170.1 is-at 00:00:5e:00:01:66 (oui Unknown), length 46

nslookup:

> set q=mx
> libreportal.net
Server:        195.95.171.2
Address:    195.95.171.2#53

Non-authoritative answer:
libreportal.net    mail exchanger = 5 libreportal.net.

Authoritative answers can be found from:
libreportal.net    nameserver = ns1.digitalocean.com.
libreportal.net    nameserver = ns2.digitalocean.com.
libreportal.net    internet address = 188.226.171.64
ns1.digitalocean.com    internet address = 198.199.120.125
ns2.digitalocean.com    internet address = 141.0.170.89
> set q=a
> libreportal.net
Server:        195.95.171.2
Address:    195.95.171.2#53

Non-authoritative answer:
Name:    libreportal.net
Address: 188.226.171.64
> 

host -t MX libreportal.net
libreportal.net mail is handled by 5 libreportal.net.

Настройки Postfix:

/etc/postfix/main.cf
+ открыть спойлер
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = libreportal.net
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = libreportal
mydestination = libreportal.net localhost
relayhost = 
mynetworks = 127.0.0.1/8 188.226.171.64/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
virtual_alias_domains = 
allow_percent_hack = no
swap_bangpath = no
mydomain = libreportal.net
mynetworks_style = host
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtp_tls_security_level = may
smtp_tls_CAfile = $smtpd_tls_CAfile
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
maximal_queue_lifetime = 4h
bounce_queue_lifetime = 4h
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
smtpd_tls_security_level = may
smtpd_tls_loglevel = 0
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
mailbox_command = /usr/lib/dovecot/deliver
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = ./dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024
smtp-amavis_destination_recipient_limit = 1
/etc/postfix/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
#smtp      inet  n       -       -       -       1       postscreen
#smtpd     pass  -       -       -       -       -       smtpd
#dnsblog   unix  -       -       -       -       0       dnsblog
#tlsproxy  unix  -       -       -       -       0       tlsproxy
#submission inet n       -       -       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -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 syslog_name=postfix/smtps
#  -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       -       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
relay     unix  -       -       -       -       -       smtp
#       -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}

submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -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

# 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} -m ${extension}

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_tls_security_level=none
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -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

26

Посмотрите логи:

grep -E -e 'warning|critical|error' /var/log/mail.log

27

AlfaStriker пишет:

Посмотрите логи:
grep -E -e 'warning|critical|error' /var/log/mail.log

Я устанавливал iRedmail в песочницу, после первой установки сообщения не принимались и я почему-то решил установить его без awstats. Установил без awstats и сервер начал принимать сообщения.

Из mail.ru сообщения приходят почти мгновенно, а от yandex через пол часа.

grep -E -e 'warning|critical|error' /var/log/mail.log
Mar 10 13:04:35 libreportal postfix/smtpd[22372]: warning: SASL: Connect to ./dovecot-auth failed: No such file or directory
Mar 10 13:04:36 libreportal postfix/master[16105]: warning: process /usr/lib/postfix/smtpd pid 22372 exit status 1
Mar 10 13:04:36 libreportal postfix/master[16105]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling





Пользуйтесь тегами форматирования http://linuxforum.ru/help.php?section=bbcode
verg

28

У вас проблема, не правильно указан сокет dovecot в файле - /etc/postfix/main.cf
Я не знаю где в Debian он должен быть, но в строчке main.cf должен быть правильно указан сокет Dovecot:

smtpd_sasl_path = /var/spool/postfix/private/dovecot-auth