Автор Тема: Внешняя почта не доходит [решено]  (Прочитано 2496 раз)

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Здравствуйте! Ситуация такая: установил 5 ковчег из коробки, обновил его. Настроил почту. Внутреняя работает на ура. А вот внешняя поста не доходит. домен arktur.vbg.ru  
[root@SERVER postfix]# host arktur.vbg.ru
arktur.vbg.ru has address 194.190.99.155
Здесь всё моё! Чую что фигня какая то не настроина, но где не пойму. Помогите пожалуйста!
« Последнее редактирование: 11.04.2011 15:54:25 от Skull »

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: Внешня почта не доходит
« Ответ #1 : 05.04.2011 11:37:09 »
Может быть тут
$dig MX arktur.vbg.ru

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешня почта не доходит
« Ответ #2 : 05.04.2011 11:43:36 »
Может быть тут
$dig MX arktur.vbg.ru

# dig MX arktur.vbg.ru

; <<>> DiG 9.3.6-P1 <<>> MX arktur.vbg.ru
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54151
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;arktur.vbg.ru.                 IN      MX

;; AUTHORITY SECTION:
vbg.ru.                 7200    IN      SOA     ns.vyborg.net. hostmaster.vyborg.net. 2008122001 7200 3600 1209600 10800

;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Apr  5 11:42:44 2011
;; MSG SIZE  rcvd: 91
И как это понять?

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешня почта не доходит
« Ответ #3 : 05.04.2011 14:59:08 »
Вот что приходит отправителю:

SMTP error from remote mailer after RCPT TO:<1111@arktur.vbg.ru>:
    host arktur.vbg.ru [194.190.99.155]: 554 5.7.1 <1111@arktur.vbg.ru>:
    Relay access denied

------ This is a copy of the message, including all the headers. ------
« Последнее редактирование: 11.04.2011 18:35:33 от sseerr »

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешня почта не доходит
« Ответ #5 : 09.04.2011 19:36:06 »
http://dedic.ru/node/104
http://lists.altlinux.org/pipermail/sysadmins/2007-August/022351.html

Спасибо, но это не то. Я с mail.ru отправляю почту, и туда причем сразу приходит такой ответ:

This is the mail system at host fallback4.mail.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

<1111@arktur.vbg.ru>: host arktur.vbg.ru[194.190.99.155] said: 554 5.7.1
    <1111@arktur.vbg.ru>: Relay access denied (in reply to RCPT TO command)

А вот что пишется в журнал:
SERVER postfix/smtpd[15540]: NOQUEUE: reject: RCPT from f92.mail.ru[217.69.129.115]:
554 5.7.1 <1111@arktur.vbg.ru>: Relay access denied; from=<22222@mail.ru>
to=<1111@arktur.vbg.ru> proto=ESMTP helo=<f92.mail.ru>
Не могу понять где что запрещено
« Последнее редактирование: 09.04.2011 19:50:30 от sseerr »

Оффлайн ruslandh

  • Поспешай не торопясь !
  • Модератор глобальный
  • *****
  • Сообщений: 32 361
  • Учиться .... Телепатами не рождаются, ими ....
Re: Внешня почта не доходит
« Ответ #6 : 09.04.2011 20:05:23 »
А mail.ru считает ваш сервер доверенным?

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: Внешня почта не доходит
« Ответ #7 : 10.04.2011 11:40:52 »
А mail.ru считает ваш сервер доверенным?
Могу конечно ошибаться, но mail.ru  считает доверенным всех у кого правильно прописан MX, о чем я выше и писал. Что делать автору? Думать о ДНС. Или прально настраивать свой почтовик.

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешня почта не доходит
« Ответ #8 : 11.04.2011 14:41:58 »
Решил проблему следующим образом: Скопировал  в надёжное место  /etc/postfix/main.cf
потом удалил его
Затем  apt-get reinstall postfix
Настроил почту через Альтератор
и добавил ещё вот такую строчку в /etc/postfix/main.cf
mynetworks = localhost, $myhostname, $config_directory/mynetworksЭто чтоб могли из локалки отправлять без авторизации
Всё работает!

/etc/postfix/main.cf
# Global Postfix configuration file.  This file lists only a small subset
# of all parameters.  For the syntax, and for a complete parameter list,
# see the postconf(5) manual page.  For a commented and more complete
# version of this file see /etc/postfix/main.cf.dist


mynetworks = localhost, $myhostname, $config_directory/mynetworks
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
relayhost = vyborg.net
message_size_limit = 31457280
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, rej
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions =.
smtpd_client_restrictions =.
smtpd_helo_restrictions =.
Всё работает! :)
« Последнее редактирование: 11.04.2011 14:48:43 от sseerr »

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: Внешняя почта не доходит [решено]
« Ответ #9 : 11.04.2011 16:20:20 »
Цитировать
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, rej
Ой смотрите логи... вылезет где нибудь косяк.

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешняя почта не доходит [решено]
« Ответ #10 : 11.04.2011 18:34:32 »
Цитировать
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, rej
Ой смотрите логи... вылезет где нибудь косяк.
Просто не докопировал на самом деле там так:
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

Оффлайн Andrey

  • Участник
  • *
  • Сообщений: 734
Re: Внешняя почта не доходит [решено]
« Ответ #11 : 11.04.2011 18:52:47 »
А старый main.cf можете показать?

Оффлайн sseerr

  • Участник
  • *
  • Сообщений: 109
Re: Внешняя почта не доходит [решено]
« Ответ #12 : 13.04.2011 08:25:59 »
А старый main.cf можете показать?
# Global Postfix configuration file.  This file lists only a small subset
# of all parameters.  For the syntax, and for a complete parameter list,
# see the postconf(5) manual page.  For a commented and more complete
# version of this file see /etc/postfix/main.cf.dist

mynetworks = localhost, arktur.vbg.ru, $myhostname, $config_directory/mynetworks,

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes

smtpd_use_tls = yes
smtpd_tls_key_file = /var/lib/ssl/private/postfix.key
smtpd_tls_cert_file = /var/lib/ssl/certs/postfix.cert

smtpd_helo_required = yes
smtpd_helo_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_helo_access cdb:/etc/postfix/helo_access, permit

smtpd_client_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_client_access cdb:/etc/postfix/client_access, permit
.
smtpd_sender_restrictions = check_recipient_access cdb:/etc/postfix/whitelist, permit_mynetworks, permit_sasl_authenticated, check_sender_access cdb:/etc/postfix/sender_access, permit

smtpd_recipient_restrictions = check_recipient_access cdb:/etc/postfix/recipient_access, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, permit

virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, ldap:/etc/postfix/ldap-users.cf
local_recipient_maps = proxy:unix:passwd.byname $alias_maps ldap:/etc/postfix/ldap-users.cf
#myhostname = arktur.vbg.ru
#mydomain = arktur.vbg.ru

mailbox_unpriv_delivery = yes
relayhost = vyborg.net
message_size_limit = 20971520
#smtpd_sasl_tls_security_options = noanonymous
#smtpd_sasl_security_options = noanonymous